-
Notifications
You must be signed in to change notification settings - Fork 53
Add MpasClimatologyTask and RemapMpasClimatologySubtask #258
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
Conversation
|
@milenaveneziani and @pwolfram, stand by on this PR for now. I think I will break it into 2, since it's quite large and includes a lot of changes. Also, I seem to need to fix CI... |
|
This PR should not be merged until #259 has been merged. |
32afb66 to
ab2cbf9
Compare
|
Ok @xylar, I will wait until you split this into two PRs |
|
@pwolfram, I've done so already. #259 is the other PR. I can split it into a 3rd one for subtasks but there's no way for anyone to test subtasks until I implement a use for them, so I think it wouldn't be very useful to split any further. Let me know if you disagree. In any case, #259 does need to be reviewed before this PR. |
|
Yes, the subtasks and prerequisites are from #209. Then I made a prerequisite and a subtask to actually use the functionality here. |
ab2cbf9 to
1d10c24
Compare
5961ea1 to
36a8a65
Compare
36a8a65 to
ed9177e
Compare
ed9177e to
51a75c8
Compare
MpasClimatologyTask computes climatologies for all requested variables and for all requested seasons. All analysis tasks that were previously computing climatologies using ncclimo now simply add the required variables and seasons to this task and all climatologies are computed simultaneously. RemapMpasClimatologySubtask masks and then remaps MPAS climatologies produced by MpasClimatologyTask to the desired comparison grid. This task operates as a subtask whichever analysis task will plot the remapped climatology.
8ba5ff7 to
184a6d6
Compare
TestingRuns successfully with:
I'm having trouble with the |
A few stub examples are included to show the user how to define and add subtasks to a task.
Adds a check that ensures that all requested variables are in an existing climatology before skipping climatology computation.
184a6d6 to
9fdf843
Compare
|
@milenaveneziani, this is ready for further testing if you have a chance. I'll try to test on theta and anvil tomorrow. |
|
@milenaveneziani, do you have time to test these today or tomorrow? Maybe on one or more of IC, Edison or OLCF, which I have not yet tested? |
|
I've been wanting to get to this in the past 2 days.. I can test on edison for sure between later today and tomorrow. I could also test at Oak Ridge, but perhaps I shouldn't promise it. Do you test both in batch and on the login node? |
|
I tested in batch mode on Anvil and on the login node on Theta (my batch job didn't finish in the allotted hour, seemingly because theta is slow for this stuff...) |
|
First test on edison, on the login node, passed. Results here: |
|
Second test on edison in batch mode also passed. I am now running tests on titan, where I have beta2 data that I have transferred recently to test a-prime, and I am having a weird problem there. These are the messages I get when running on the login node: So, for some reason, the sea-ice climatology tasks are not recognizing that there is an mpas restart file available, but the ocean climatology tasks do. Do you understand this @xylar? |
|
@milenaveneziani, I think one of the changes I made may have removed the ability to use an ocean restart file in lieu of a sea-ice restart file. Is that an important capability? I had the impression it was kind of a sloppy way of handling cases where we hadn't transferred a sea-ice restart file, as opposed to something we wanted to be using in that way. I'll look into it as I have time tomorrow. |
|
Hi @xylar, I personally don't see it that way, but rather as our solution to the fact that mesh information is not part of a static run-specific file that contains mesh and vertical coordinate details, among other things. Unless we were envisioning a near future where mpas-seaice had different mesh characteristics than mpas-o, I don't see why we should increase the data requirement to add a mpas-seaice restart file at the moment. That's just my opinion; we can discuss further if you feel strongly the other way. |
|
@milenaveneziani, okay, so looking into it further, the issue isn't that I eliminated code on the sea-ice side. Rather, when I added the remapping task, I had it assume there was a restart file available for each component to avoid special logic for the sea-ice component. I can pretty easily add in a special case in that task if the component is sea ice. I'll let you know later today as soon as I've done that. |
|
hmm, I see. Don't know, I don't like special cases either.. Maybe we should just leave it as is. |
|
@xylar: all went well on titan when I added the mpas-cice restart file. Seems to me this is enough testing, what do you think? I realized we don't mention what files are needed by MPAS-Analysis to run in the documentation (we do that in a-prime). So, what about adding this piece to the README file: |
|
I'll add that right away. Thanks for testing! |
4d88ddd to
fbce1cb
Compare
milenaveneziani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is good to go, @xylar. Thanks for your patience in the last couple of weeks.
fbce1cb to
8d0bd67
Compare
8d0bd67 to
0907943
Compare
MpasClimatologyTaskcomputes climatologies for all requestedvariables and for all requested seasons. All analysis tasks
that were previously computing climatologies using ncclimo now
simply add the required variables and seasons to this task and
all climatologies are computed simultaneously.
RemapMpasClimatologySubtaskmasks and then remaps MPASclimatologies produced by
MpasClimatologyTaskto the desiredcomparison grid. This task operates as a subtask whichever
analysis task will plot the remapped climatology.
subtasks
Support has been added for each analysis task to have one or more
subtasks. Each subtask has the same task name as the "parent" task
but also has a subtask name. The full name of the subtask when it
is printed is
taskName: subtaskName, while the name in log files, etc.is
taskName_subtaskName.Currently, the only subtask is
RemapMpasClimatologySubtask, butfuture subtasks will allow several seasons, depths, etc. to be plotted
simultaneously (in parallel) within a given master task.
prerequisite tasks
Support has been added for prerequisite tasks that must run before
a given task. Currently, the only prerequisite tasks are
MpasClimatologyTaskandRemapMpasClimatologySubtask.MpasClimatologyTaskmust run before any task that uses aclimatology computed with
ncclimo, as this task computes allclimatologies simultaneously. All
RemapMpasClimatologySubtaskswait until the corresponding
MpasClimatologyTaskhas finishedbefore proceeding. All tasks with a
RemapMpasClimatologySubtaskwait until that subtask has finished before making their plots.