ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_SurfaceEngineRegistry.H File Reference

The registry behind ERF_REGISTER_FIRE_ENGINE and ERF_REGISTER_FLOOD_ENGINE. More...

#include <ERF_SurfaceCouplingNames.H>
#include <AMReX.H>
#include <functional>
#include <map>
#include <memory>
#include <string>
#include <vector>
Include dependency graph for ERF_SurfaceEngineRegistry.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SurfaceEngineRegistry< Engine, Params >
 

Detailed Description

The registry behind ERF_REGISTER_FIRE_ENGINE and ERF_REGISTER_FLOOD_ENGINE.

One registry per engine base class: SurfaceEngineRegistry<FireEngine, FireCouplingParams> holds the fire engines, SurfaceEngineRegistry<FloodEngine, FloodCouplingParams> the flood engines. Each coupling instantiates its registry in one .cpp (ERF_FireEngineRegistry.cpp, ERF_FloodEngineRegistry.cpp) behind its own functions (register_fire_engine, fire_engine_names, make_fire_engine, and the flood ones), so the map lives in that translation unit and the registration macros are unchanged.