Skip to content

Improve shutdown of pFUnit tests in MAPL #3155

@tclune

Description

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:

  • ESMF
  • pflogger
  • udunits

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.

Metadata

Assignees

Labels

0 DiffThe changes in this pull request have verified to be zero-diff with the target branch.📈 MAPL3MAPL 3 Related🎁 New FeatureThis is a new feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions