Skip to content

Conversation

@suvarchal
Copy link
Collaborator

Some of old features lost in my branches that didn't make it into main, part 1.

  • clean and exit model with par_ex instead of abort, this avoids a few annoying model hanging in ifs_interface.
  • checks for namelists exist and show line where error happens and abort cleanly.

TODO in another PR:

  • model stop with par_ex should also be used consistently in checks should also be used in cvmix routines and ib routines.
  • add namelist checks in all other modules in style similar to this PR

@JanStreffing JanStreffing self-assigned this Jan 13, 2025
Copy link
Collaborator

@JanStreffing JanStreffing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent changes. This should make missing namelists etc. easier to catch. I have just a few small changes requested.

! TODO logic below is also convoluted really not really for standalone
#else !
! TODO logic below is convoluted, COMM that is passed should be used for MPI_ABORT
! changes are easy but need to be tested with coupled configurations
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that mean changes are were easy to make or would be easy?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It handles core parts and there are other parts like ice modules, blowup that may need more inspection on aborts, clean kind to stop normally vs really abort kind. this can be easy to do once we go through those parts, but i would leave it here for now, going into all those parts to me is another issue. @JanStreffing thanks for confirming communicator in oifs-fesom case, then nothing about that configuration to worry about with these changes.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i want to do one small test with OpenIFS-FESOM2 before I merge.

@JanStreffing JanStreffing merged commit cd45e66 into main Jan 15, 2025
4 checks passed
@JanStreffing JanStreffing deleted the suvi_fixes_clean_aborts branch January 15, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants