Improve shutdown of pFUnit tests in MAPL #3155
Labels
0 Diff
The changes in this pull request have verified to be zero-diff with the target branch.
📈 MAPL3
MAPL 3 Related
🎁 New Feature
This is a new feature
pFUnit supports EXTRA_INITIALIZE and EXTRA_FINALIZE for global resources that will be used in the tests.
Currently MAPL/pfunit/MAPL_Initialize.F90 starts up a few global resources:
But there really should be a corresponding finalize that shuts these down (esp ESMF).
The task is to (1) create that routine and (2) modify the cmake macros that use MAPL_Initialize to also use the new finalize.
One option is to rename the host module for MAPL_initialize to be init/final and then put both routines in there. Easier to keep symmetric. Alternatively create a new module, but then the EXTRA_USE argument also needs to know the new module.
The text was updated successfully, but these errors were encountered: