Adding new environment variables to rocoto/job card? #3048
-
There is a set of environment variables that I need to add to batch scripts on Frontera to run successfully. So far in my testing I have been adding them manually to the .xml file after setup_expt runs, but I would like to have them automatically included. Where should I add them so that they will be picked up and included in the task information in the .xml? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
@benjamin-cash If they are settings for compute/runtime and are not configuration variables then they should go in the respective env file for the machine (e.g. |
Beta Was this translation helpful? Give feedback.
-
Ah I see, yeah, the env file isn't sourced until after modules are loaded and configs have been sourced. Question: do you need these variables for all jobs or just some? Will the values always be the same or will they change from cycle to cycle or job to job? |
Beta Was this translation helpful? Give feedback.
-
Gotcha. Given the modules need them I suggest adding them to the |
Beta Was this translation helpful? Give feedback.
Gotcha. Given the modules need them I suggest adding them to the
module_base
for Frontera. Add them near the top so they are set before the modules load. Set them likesetenv("BASH_COMPLETION","VALUE_FOR_BASH_COMPLETION")
.