Assistance with changing writing file to working directory rather than COMOUT #655
Closed
PerryShafran-NOAA
started this conversation in
Issues
Replies: 1 comment 22 replies
-
You can change the path passed to mesoscale_util.mark_job_completed to somewhere in DATA. |
Beta Was this translation helpful? Give feedback.
22 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As instructed in PR #652 , I need to make updates so that a file is not written directly to COMOUT, but rather to the working directory and then copied to COMOUT.
The file is the completed_jobs.txt file. A job that completes is written out to this file. This file is needed so in case a job fails and needs restart, this file tells you which jobs were completed. I believe this file is read by the restart job to know which jobs already completed. This section was originally written by @MarcelCaron-NOAA.
The job is written directly to COMOUT, as written in this line in
mesoscale_stats_grid2obs_create_job_script.py
like this:where RESTART_DIR is part of the COMOUT directory.
Marcel had mentioned that the fix should be within the
mark_job_completed
routine in themesoscale_util.py
in the ush directory. That block of code looks like this:I am not sure how to fix this so that the file is written to the DATA directory. Additionally, this file would need to be copied to COMOUT each time there is a write to it, so that the updated file continually is seen in the COMOUT directory, as it is being done now when it's written directly to COMOUT.
I am requesting assistance to code all of this, as I am very unsure as to how to do it.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions