Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent install_bins folder location behaviour in esm_runscripts #1260

Open
JanStreffing opened this issue Dec 27, 2024 · 1 comment
Open
Assignees

Comments

@JanStreffing
Copy link
Contributor

JanStreffing commented Dec 27, 2024

I'm on branch: https://github.com/esm-tools/esm_tools/tree/feat/awiesm3-v3.4, currently on commit: 37d3b08

In esm_master for setups the install_bins variable is used to copy binaries from various component models into model_codes/$setup_name/bin/.

For lpj_guess within awiesm3 we configure like this:

        model_dir: ${general.model_dir}/sources/LPJ-GUESS-lpjg_v4p1/
        destination: lpj_guess
        install_bins: sources/LPJ-GUESS-lpjg_v4p1/build/guess_T159
        executable: guess_T159

My expectoration would be, that esm_runscripts tries to copy the executable from model_codes/$setup_name/bin/ to the work run bin dir. However, the error messages I get for awiesm3 suggests overwise:

================================================================================
STARTING SIMULATION JOB!
Experiment ID = test8
Setup = awiesm3
This setup consists of:
- fesom
- oifs
- rnfmap
- lpj_guess
- oasis3mct
- xios
Experiment is installed in:
       /work/ab0246/a270092/runtime/awiesm3-v3.4//test8
================================================================================
File not found: /work/ab0246/a270092/model_codes/awiesm3-v3.4/sources/LPJ-GUESS-lpjg_v4p1/build/guess_T159

Working paths would have been the one that the binary is originally installed in by cmake:
/work/ab0246/a270092/model_codes/awiesm3-v3.4/lpj_guess/sources/LPJ-GUESS-lpjg_v4p1/build/guess_T159
and the one that esm_master copies it to:
/work/ab0246/a270092/model_codes/awiesm3-v3.4/bin/guess_T159

Instead, esm_runscript seems to be relying on the model make/cmake setups installing binaries in the bin/$executable format/path. Only in this case, does esm_runscripts pick them up from the right location relative to the model_codes/$setup_name/bin dir.

My current workaround is to just copy the binary to where esm_runscripts is looking for it, but a fix is needed. Let me know if I configured anything wrong here.

@JanStreffing
Copy link
Contributor Author

Also adding @hajlaci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants