Hi @justinquinn:
The plot thickens.
I also wanted to try ISSM with MATLAB. I am running MATLAB 2024b and got some MEX compilation error when I tried building natively. I am not sure if 2024b is fully compatible with Apple Silicon. Nevertheless, I tried the old approach to get up and running on a silicon chip (compile without wrappers and add in binaries).
ISSM built successfully, and the ISSM development path loaded correctly etc. ISSM functionality looks good with MATLAB when running the SquareIceShelf
tutorial, until I try to solve()
. This is what my output looks like:
>> md=solve(md,'Stressbalance');
creating thickness
creating drag
initial velocity
creating flow law parameter
creating boundary conditions
boundary conditions for stressbalance model: spc set as zero
no smb.mass_balance specified: values set as zero
no basalforcings.groundedice_melting_rate specified: values set as zero
no basalforcings.floatingice_melting_rate specified: values set as zero
no balancethickness.thickening_rate specified: values set as zero
no thermal boundary conditions created: no observed temperature found
checking model consistency
marshalling file Square.bin
uploading input file and queuing script
launching solution sequence on remote cluster
dyld[11387]: Library not loaded: /Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib
Referenced from: <EDC654BF-D709-3908-9C25-3569E6898078> /Users/lawrence.bird/ISSM/bin/issm.exe
Reason: tried: '/Users/lawrence.bird/ISSM/externalpackages/triangle/install/lib/libscalapack.2.2.dylib' (no such file), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib'), '/System/Volumes/Preboot/Cryptexes/OS/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib' (no such file), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib'), '/Users/lawrence.bird/ISSM/externalpackages/triangle/install/lib/libscalapack.2.2.1.dylib' (no such file), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.1.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib'), '/System/Volumes/Preboot/Cryptexes/OS/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.1.dylib' (no such file), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.1.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib')
dyld[11386]: Library not loaded: /Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib
Referenced from: <EDC654BF-D709-3908-9C25-3569E6898078> /Users/lawrence.bird/ISSM/bin/issm.exe
Reason: tried: '/Users/lawrence.bird/ISSM/externalpackages/triangle/install/lib/libscalapack.2.2.dylib' (no such file), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib'), '/System/Volumes/Preboot/Cryptexes/OS/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib' (no such file), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib'), '/Users/lawrence.bird/ISSM/externalpackages/triangle/install/lib/libscalapack.2.2.1.dylib' (no such file), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.1.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib'), '/System/Volumes/Preboot/Cryptexes/OS/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.1.dylib' (no such file), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.1.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib')
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 11386 RUNNING AT nri-088478
= EXIT CODE: 6
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Abort trap: 6 (signal 6)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions
loading results from cluster
cp: /Users/lawrence.bird/ISSM//execution/Square-05-23-2025-12-05-24-4061//Square.outbin: No such file or directory
Warning:
============================================================
Binary file Square.outbin not found!
This typically happens when the run crashed.
Please check for error messages above or in the outlog
============================================================
> In loadresultsfromdisk (line 16)
In loadresultsfromcluster (line 50)
In solve (line 180)
The error is similar to that I get in python, relating to the libscalapack.2.2.dylib
. The ONLY thing that I changed when installing external packages was when installing cmake
, I had to add this line to comment out fdopen
because it was clashing with something in the updated CLT.
# Fix fdopen compatability with MacOS SDKs
sed -i.bak '/ifndef fdopen/,/# *endif/ s/^/\/\//g' src/Utilities/cmzlib/zutil.h
Other than that, all external packages are installed using the standard install scripts.