Skip to content

Fix stale error handling calls in Submodules/Noah-MP and code clean up #3446

Open
akashdhruv wants to merge 7 commits into
erf-model:developmentfrom
AIEADA:noahmp-reinforce-abi
Open

Fix stale error handling calls in Submodules/Noah-MP and code clean up #3446
akashdhruv wants to merge 7 commits into
erf-model:developmentfrom
AIEADA:noahmp-reinforce-abi

Conversation

@akashdhruv

@akashdhruv akashdhruv commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

TODO:

  • Check-in WPS regression test for Noah-MP.
  • Investigate and fix issues with transparent restart.

@akashdhruv akashdhruv changed the title Fix stale error handling calls in Submodules/Noah-MP and minor code clean up Fix stale error handling calls in Submodules/Noah-MP and code clean up Jul 14, 2026
// land-free ranks never block land-owning ones.
const int color = noahmpio_vect.empty() ? MPI_UNDEFINED : 1;
MPI_Comm land_comm = MPI_COMM_NULL;
MPI_Comm_split(ParallelDescriptor::Communicator(), color,

@akashdhruv akashdhruv Jul 14, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@AMLattanzi @demetresfytanides

Restart and plotting now uses a communicator split to make sure that land-free ranks don't call the restart routines.

@AMLattanzi AMLattanzi Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Restart on GPU on Perlmutter for the Joplin tornado ran 901 steps with the comparison done restarting from chk00900:

alattanz@nid001992:/pscratch/sd/a/alattanz/Tornado_Modeling/LargeDomain> /global/homes/a/alattanz/gitcode/amrex/Tools/Plotfile/fcompare.gnu.x86-milan.ex plt00901 plt00901.old.0041678/

            variable name            absolute error            relative error
                                        (||A - B||)         (||A - B||/||A||)
 ----------------------------------------------------------------------------
 level = 0
 density                            9.320100247e-11           7.593404996e-11
 rhotheta                           2.790500275e-08           8.089002137e-11
 rhoQ1                              2.935495978e-10           1.359912433e-08
 x_velocity                          2.76200774e-07           4.952383759e-09
 y_velocity                         1.386038129e-07           4.101337157e-09
 z_velocity                         1.350622876e-08           7.911571706e-09
 temp                               4.997571068e-08           1.649234272e-10
 theta                              1.356227131e-09           2.664268442e-12
 KE                                               0                         0
 reflectivity                       1.765698698e-12           4.769183266e-14
 max_reflectivity                   1.749711487e-13           4.726001526e-15
 precipitable                       9.482278074e-09           2.022764498e-10
 vorticity_x                         1.84163771e-09           1.267172822e-08
 vorticity_y                        4.277757693e-09           3.739945877e-08
 vorticity_z                        4.644061736e-10           2.397279276e-08
 helicity                           9.563219661e-11           8.066633911e-11
 local_helicity                      1.74490858e-12           1.231683283e-09
 pres_hse                                         0                         0
 pressure                           5.733368744e-05           5.639808047e-10
 pres_hse_x                                       0                         0
 pres_hse_y                                       0                         0
 z_phys                                           0                         0
 lat_m                                            0                         0
 lon_m                                            0                         0
 Kmv                                              0                         0
 Kmh                                0.0001669565554           7.896923137e-08
 Khv                                              0                         0
 Khh                                0.0005008696661           7.896923137e-08
 qv                                 2.649125676e-10           1.372818724e-08
 qc                                               0                         0
 qrain                               3.98719915e-18           8.103696072e-15
 qsnow                              2.109112039e-19           7.930226988e-16
 qgraup                                           0                         0
 qt                                 2.649125676e-10           1.372818724e-08
 qp                                  3.98719915e-18           8.103696072e-15

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Oh no!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Is the development branch producing correct restart?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same test with development. I confirmed hard 0 when I turn off radiation and Noah. I can toggle just radiation now.

alattanz@nid001280:/pscratch/sd/a/alattanz/Tornado_Modeling/LargeDomain> /global/homes/a/alattanz/gitcode/amrex/Tools/Plotfile/fcompare.gnu.x86-milan.ex plt00901 plt00901.old.0634534/

            variable name            absolute error            relative error
                                        (||A - B||)         (||A - B||/||A||)
 ----------------------------------------------------------------------------
 level = 0
 density                            1.257569604e-10           1.024585045e-10
 rhotheta                           3.752279554e-08           1.087697484e-10
 rhoQ1                              1.357159003e-10             6.2872422e-09
 x_velocity                           2.0856674e-07           3.739680181e-09
 y_velocity                         1.025461351e-07           3.034377377e-09
 z_velocity                         2.002397652e-08           1.172948674e-08
 temp                               2.578838121e-08           8.510347465e-11
 theta                              6.146478881e-10           1.207457759e-12
 KE                                               0                         0
 reflectivity                       1.907807246e-12           5.153020725e-14
 max_reflectivity                   1.243449788e-13           3.358579616e-15
 precipitable                       6.989388623e-09           1.490979075e-10
 vorticity_x                        1.225795816e-09           8.434361404e-09
 vorticity_y                        2.554708116e-09            2.23352255e-08
 vorticity_z                        3.512208996e-10           1.813012695e-08
 helicity                           1.918038619e-10           1.617885191e-10
 local_helicity                     1.829069754e-12           1.291091948e-09
 pres_hse                                         0                         0
 pressure                           2.937897807e-05           2.889955379e-10
 pres_hse_x                                       0                         0
 pres_hse_y                                       0                         0
 z_phys                                           0                         0
 lat_m                                            0                         0
 lon_m                                            0                         0
 Kmv                                              0                         0
 Kmh                                0.0001616945089           7.648074721e-08
 Khv                                              0                         0
 Khh                                0.0004850835266           7.648074721e-08
 qv                                  1.22662238e-10           6.356548603e-09
 qc                                               0                         0
 qrain                              9.204647481e-18           1.870778282e-14
 qsnow                              2.332516979e-19           8.770223192e-16
 qgraup                                           0                         0
 qt                                  1.22662238e-10           6.356548603e-09
 qp                                 9.204647481e-18           1.870778282e-14

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Development with all the physics EXCEPT Noah:

alattanz@nid001280:/pscratch/sd/a/alattanz/Tornado_Modeling/LargeDomain> /global/homes/a/alattanz/gitcode/amrex/Tools/Plotfile/fcompare.gnu.x86-milan.ex plt00896 plt00896.old.9497947/

            variable name            absolute error            relative error
                                        (||A - B||)         (||A - B||/||A||)
 ----------------------------------------------------------------------------
 level = 0
 density                                          0                         0
 rhotheta                                         0                         0
 rhoQ1                                            0                         0
 x_velocity                                       0                         0
 y_velocity                                       0                         0
 z_velocity                                       0                         0
 temp                                             0                         0
 theta                                            0                         0
 reflectivity                                     0                         0
 max_reflectivity                                 0                         0
 vorticity_x                                      0                         0
 vorticity_y                                      0                         0
 vorticity_z                                      0                         0
 pres_hse                                         0                         0
 pressure                                         0                         0
 z_phys                                           0                         0
 lat_m                                            0                         0
 lon_m                                            0                         0
 qv                                               0                         0
 qc                                               0                         0
 qrain                                            0                         0
 qsnow                                            0                         0
 qgraup                                           0                         0
 qt                                               0                         0
 qp                                               0                         0
 PLOTFILE AGREE

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thank you. This is very helpful.

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.

2 participants