Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+Add CPP macro _USE_OCEAN_BGC_PR20 to avoid bug
Added the new CPP macro _USE_OCEAN_BGC_PR20 to deal with the fact that the recently added element runoff_added_to_stf does not yet exist within the ocean_BGC version of the g_tracer_type, although it was added to the version in confic_src/external/GFDL_ocean_BGC/generic_tracer_utils.F90 as a part of PR#246. This caused the latest version of MOM6 to be unable to compile with the ocean_BGC code. With this new CPP macro, the code will once again compile, and these bits of code can be enabled once the ocean_BGC code has this new element in its version of the g_tracer_type. Once there is sufficiently widespread adoption of newer versions of the ocean_BGC code, these newly added macros can be eliminated altogether. This commit should address the issued documented under github.com/NOAA-GFDL/issues/278. Note that the use of CPP macros in this way is generally strongly discouraged in MOM6, but it does seem like a viable solution for addressing an interface change across two separately managed code repositories.
- Loading branch information