Generalize single cycle script to also work for hofx#44
Conversation
|
Automated Pull Request Testing Results: |
|
General comment: When I see |
@RussTreadon-NOAA do you have a suggestion on an alternative name? Perhaps just |
|
@CoryMartin-NOAA , |
|
The |
|
@RussTreadon-NOAA which is a better 'medium-term' solution:
I would say the former is 'better' but I worry about users having too many things to configure by default. |
|
@CoryMartin-NOAA , will issue #45 will add |
|
@RussTreadon-NOAA I was thinking the opposite, actually. |
|
@CoryMartin-NOAA. Got it. This make sense. #45 is a ctest. It should be fast. Therefore, fewer iterations. We can punt and leave |
|
@RussTreadon-NOAA ok that works for me if it works for you, and I'll make sure to choose an appropriate wall clock time when I add the YAML file that will be used by the regression test. I will say that I am imagining something a bit more akin to the GSI |
|
Sounds good, @CoryMartin-NOAA . Here are run times I'm currently seeing for the On a different note, I still see at the top of Something odd happens when |
RussTreadon-NOAA
left a comment
There was a problem hiding this comment.
Changes look good. Installed feature/hofx on orion. Exercised branch in both hofx and variational modes. Both configurations ran to completion.
|
@RussTreadon-NOAA I'm actually thinking we hold off on merging until I can investigate the subprocess vs shell submission differences (I looked at the beginning of my log files and I see them too, so it's not just an issue on your end). I will do some digging on Monday and see what I can find. Have a nice weekend! |
|
Some observations regarding the message in the
The above to be generated following
at the top of In all cases Do we need to examine |
|
@CoryMartin-NOAA , some additional information. If I manually Does this indicate an issue with either the conda |
|
@RussTreadon-NOAA in fact, I know the issue is coming from the conda env, but not immediately sure why. So this is a problem with the conda env modulefile and not with the script added in this PR. Let me do some digging to see why this message appears. |
|
@RussTreadon-NOAA I know what the problem is. module When then there is no error. I'm not sure if we can modify the modulefile to account for this behavior or not. In the meantime, we could add a |
|
@RussTreadon-NOAA I have a solution that (perhaps) is sufficient. I've modified the modulefile on Orion: to The warning goes away because it will only run |
|
@CoryMartin-NOAA , your fix works for me. I executed |
Does the same thing as jcb-algorithms PR [#8](NOAA-EMC/jcb-algorithms#8)
Does the same thing as jcb-algorithms PR [#8](NOAA-EMC/jcb-algorithms#8)
Closes #43
This PR generalizes the work done in #42 to allow for a user to run just H(x) instead of the entire variational application.
It also simplifies the SLURM batch script generation to use multi-line strings where appropriate.
The sample YAML changes slightly from #42, see:
Note that some entries are optional for hofx compared to var, and there is now a
GDASApp mode, it is nowexecutable optionsinstead ofanalysis options, andyaml_templateinstead ofvar_yaml, andexe_pathis new to point to the exe to use at runtime.