Skip to content

Bugfix: Address an issue related to initialization of Noah-MP groundwater#463

Merged
barlage merged 2 commits intowrf-model:masterfrom
barlage:barlage_gwinitfix
May 4, 2018
Merged

Bugfix: Address an issue related to initialization of Noah-MP groundwater#463
barlage merged 2 commits intowrf-model:masterfrom
barlage:barlage_gwinitfix

Conversation

@barlage
Copy link
Contributor

@barlage barlage commented Apr 26, 2018

TYPE: bug fix

KEYWORDS: Noah-MP, groundwater model

SOURCE: Michael Barlage (NCAR), Gonzalo Miguez-Macho (Spain)

DESCRIPTION OF CHANGES:

Address an issue related to initialization of the groundwater code:

When generic datasets were added in v3.9 there is an internal spin-up required. Previously there was no patch-to-patch communication needed; with the generic datasets, there is communication between patches at initialization. To do this, the groundwater_init subroutine call needed to be pulled out to start_em and also wrapped in a restart flag.

LIST OF MODIFIED FILES:

M Registry/registry.noahmp
M dyn_em/start_em.F
M phys/module_sf_noahmpdrv.F

TESTS CONDUCTED:

  1. Regression test with WTF-4.06 (running)
  2. Six month May-Oct 4km simulation over the central US

Copy link
Contributor

@davegill davegill left a comment

Choose a reason for hiding this comment

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

Approved - solves all problems

DO NITER=1,500

#ifdef DM_PARALLEL
# include "HALO_EM_HYDRO_NOAHMP.inc"
Copy link
Contributor

Choose a reason for hiding this comment

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

@barlage @dudhia @weiwangncar
Mike,
This is an EM halo. This needs to be in a EM_CORE ifdef. That means that this code does not work with NMM.
Dave

Copy link
Contributor

Choose a reason for hiding this comment

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

Mike,
So, can we assume that NoahMP is now EM only? If there is a need for NMM support, then we have some NMM changes (such as that halo) that need to go into their registry.

Copy link
Contributor

Choose a reason for hiding this comment

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

When the halo is inside of first_rk_step, that is an EM only scenario. Once the halo moves into the physics code, then it becomes visible to EM and NMM.

@barlage
Copy link
Contributor Author

barlage commented Apr 30, 2018 via email

@barlage
Copy link
Contributor Author

barlage commented Apr 30, 2018 via email

@davegill
Copy link
Contributor

davegill commented May 2, 2018

@barlage @dudhia @weiwangncar
Mike,

  1. Put a wrapping EM-only ifdef around the em_halo call(s) that are in the physics directory.
  2. In check_a_mundo, within a wrapping NMM_CORE ifdef, test for NoahMP + the ground water option. If these are both true, just throw an error that will eventually stop the code.

@barlage
Copy link
Contributor Author

barlage commented May 3, 2018

@davegill I'm compiling NMM now to see if the ifdefs I've added to module_sf_noahmpdrv are sufficient. I've also been laughing hysterically for the last few minutes while addressing your 2. since apparently Noah-MP does not run with NMM according to Line 384 in check_a_mundo. Good to know the time I've spent maintaining the compatibility with NMM over the last few years has been well spent. :)

…th EM_CORE == 1 to prevent NMM compile failure
@barlage barlage merged commit 46ef4c6 into wrf-model:master May 4, 2018
@barlage barlage deleted the barlage_gwinitfix branch September 24, 2018 19:59
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