Skip to content

Run GEOS from install dir in experiment - #890

Draft
mathomp4 wants to merge 5 commits into
developfrom
feature/experiment-install
Draft

Run GEOS from install dir in experiment#890
mathomp4 wants to merge 5 commits into
developfrom
feature/experiment-install

Conversation

@mathomp4

@mathomp4 mathomp4 commented Jun 23, 2026

Copy link
Copy Markdown
Member

This is part of a suite of PRs to try and change how we handle GEOSgcm.x in GEOS. The issue is that more and more of GEOS subcomponents are becoming shared object libraries instead of static.

Overall Problem

That means the old trick of "copy someone else's GEOSgcm.x to my experiment" might not work. Why? Well, in GEOSgcm v11.10+, the Moist GridComp (for example) is now a shared object library and so just copying GEOSgcm.x isn't enough to actually use that other person's Moist GC code.

What we change here

What we do now is copy into experiments a new install/bin and install/lib directory. The former has GEOSgcm.x as well as binarytile.x and rs_numtiles.x (as they are the main executables in the run scripts) and then all the .so into install/lib. We then update the scripts to use those executables.

Since CMake encodes in the executable's RUNPATH, $ORIGIN/../lib then if you run:

mpirun -np 6 $EXPDIR/install/bin/GEOSgcm.x

it will look for libraries it needs in $ORIGIN/../lib and that is just the lib/ dir at the same level as EXPDIR/install/bin.

@mathomp4 mathomp4 self-assigned this Jun 23, 2026
@mathomp4 mathomp4 added the 0 diff The changes in this pull request have verified to be zero-diff with the target branch. label Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 diff The changes in this pull request have verified to be zero-diff with the target branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant