Alsvinn  0.5.3
The fast FVM simulator with UQ support
Macros
register_functional.hpp File Reference
#include "alsfvm/functional/FunctionalFactory.hpp"
#include <boost/preprocessor.hpp>

Go to the source code of this file.

Macros

#define REGISTER_FUNCTIONAL(platform, name, classname)
 

Macro Definition Documentation

◆ REGISTER_FUNCTIONAL

#define REGISTER_FUNCTIONAL (   platform,
  name,
  classname 
)
Value:
namespace { \
static struct BOOST_PP_CAT(RegisterStruct, BOOST_PP_CAT(platform, name)) { \
BOOST_PP_CAT(RegisterStruct, BOOST_PP_CAT(platform, name))() { \
std::shared_ptr<alsfvm::functional::Functional> functional; \
functional.reset(new classname(params)); \
return functional; \
});\
} \
} BOOST_PP_CAT(BOOST_PP_CAT(registerObject, platform),name); \
}
Holds general parameters based on a boost::property tree.
Definition: Parameters.hpp:24
static void registerFunctional(const std::string &platform, const std::string &name, FunctionalFactory::FunctionalCreator maker)
Definition: FunctionalFactory.cpp:38
std::string name
Definition: EquationParameterFactory.cpp:39
functional
Definition: FunctionalStatistics.cpp:76