DataAnalyticsEngineering / FANS

FANS: an open-source, efficient, and parallel FFT-based homogenization solver designed to solve microscale multiphysics problems.
GNU Lesser General Public License v3.0
8 stars 2 forks source link

Add support for MacOS with ARM CPUs (CMake + GitHub Action) #25

Open siggmo opened 1 month ago

siggmo commented 1 month ago

Closes #21

Add support for macOS.

Changes in CMakeLists.txt:

New GitHub Actions workflow file for building and testing on macOS:

siggmo commented 1 month ago

So far I got it to compile, so I guess the depencies are fine now. But running the tests raises some HDF5 related errors. I've never worked with HDF5 in C++, so maybe @sanathkeshav could you please have a look at the errors?

The tests fail with both hdf5 and hdf5-mpi brew packages. They can't be installed at the same time:

Error: Cannot install hdf5-mpi because conflicting formulae are installed.
  hdf5: because hdf5-mpi is a variant of hdf5, one can only use one or the other