KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
A class for calling a functor on a variable specified by it's registered name. More...
#include <registered_component_lookup.h>
Public Member Functions | |
RegisteredComponentLookup (std::string const &rName) | |
template<template< typename T > class TFunctor, typename ... Targs> | |
void | Execute (Targs &... args) |
A class for calling a functor on a variable specified by it's registered name.
Example:
template <typename TVariable> class CopyVariableFunctor { public: void operator()(TVariable const& rVariable, DataValueContainer const& rSrc) DataValueContainer& rDest) { rDest[rVariable] = rSrc[rVariable]; } };
RegisteredComponentLookup<Variable<double>>("PRESSURE").Execute<CopyVariableFunctor>(rSrc, rDest);
|
inlineexplicit |
|
inline |