-
Notifications
You must be signed in to change notification settings - Fork 49
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
multi_run_gmtb_scm.py failing silently #135
Comments
I ran into this too. I'm pretty sure that multi_run_gmtb_scm.py checks the exit status of run_gmtb_scm.py and reports non-zero statuses, but perhaps run_gmtb_scm.py is still returning a zero error code for this failure? I will try to look into this. |
If I remove the CIRES namelist bugfix and run via run_gmtb_scm.py, I get the following error message: input.nml GW-namelist file Error termination. Backtrace: Somehow, the python subprocess is still returning a zero exit code when this error occurs. Other common errors like seg faults do return nonzero exit codes, however, and multi_run_gmtb_scm.py will correctly notify the user. One clunky solution is to search the terminal output of the subprocess for terms that might indicate an error has occurred (despite a zero exit status). For example, if p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) (output, err) = p.communicate() p_status = p.wait() executes the subprocess and the terminal output is captured in the 'output' variable, one could simply add |
If this can wait until when I am back (and you remind me), then I can take a look! |
Needs fix for the UFS release. |
Duplicate of #278 |
For certain errors
multi_run_gmtb_scm.py
is failing silently. I tried to run gmtb_scm after merging the GFSv16 changes but without the CIRES UGWP namelist bugfix (NCAR/ccpp-physics#343). The error reported from the model was that the namelist file input.nml cannot be found when running the model for a specific setup usingHowever, when I used
multi_run_gmtb_scm.py
it reported that all runs finished successfully. I got suspicious because the model run finished so quickly even though I forgot to copy the Thompson MP lookup tables.The text was updated successfully, but these errors were encountered: