nextsimhub / nextsimdg

neXtSIM_DG : next generation sea-ice model with DG
https://nextsim-dg.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
10 stars 13 forks source link

Static linking #688

Open einola opened 2 months ago

einola commented 2 months ago

The model is compiled by first compiling a library and then linking this with the main program and all the tests. The main program (at least) should be linked statically, not dynamically, as seems to be the case now.

The reason for this is that some HPC setups require you to copy the executable from a login node to the compute node. In such a setup, it is annoying to have to make sure that the shared object file is copied as well and that the LD_LIBRARY_PATH (or similar) is correctly set on the compute node.