SINTEF-AppliedCompSci / MRST

Official GitHub mirror of MRST
http://www.mrst.no
GNU General Public License v3.0
55 stars 20 forks source link

Issues with VEmex solver in CO2-lab legacy #4

Open sabbaghr opened 3 months ago

sabbaghr commented 3 months ago

Hi,

I am trying to run the runJohansenVE.m script. But I am having issues creating the Mex file. I followed the steps in the README file. But I had an error after running the make command.

      ...
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libVETransportCPU.dylib] Error 1
make[1]: *** [mexInterface/CMakeFiles/VETransportCPU.dir/all] Error 2
make: *** [all] Error 2

I am using a Mac with M2 chip. Any ideas why this is happening and how can I fix this?

Thanks, Reinaldo

moyner commented 3 months ago

Hi,

I think we have not tested the building of these scripts for Mac ARM/M2 CPUs. This code for C++ acceleration is a bit old and was written before Macs ran on ARM. I think the example itself should run without acceleration, though. I am not sure if this C++ acceleration is the best option to speed up CO2 simulations in MRST today, as we now have many options in terms of accelerators for standard simulations.

Best regards, Olav