Flow123d
JB_transport-112d700
|
Go to the documentation of this file.
20 #ifndef FIELD_PYTHON_HH_
21 #define FIELD_PYTHON_HH_
34 namespace py = pybind11;
37 #pragma GCC visibility push(hidden)
51 template <
int spacedim,
class Value>
62 DECLARE_EXCEPTION( ExcInvalidCompNumber, <<
"Field " << EI_FuncName::qval <<
" from the python module: " << EI_PModule::val
63 <<
" returns " << EI_Size::val <<
" components but should return " << EI_ValueSize::val <<
" components.\n" );
75 void set_python_field_from_class(
const string &file_name,
const string &class_name);
128 #pragma GCC visibility pop
std::vector< const FieldCommon * > required_fields_
List of fields on which this field depends.
const FieldCommon * self_field_ptr_
Pointer to FieldCommon that holds this fields (stores in set_dependency and uses in cache_reinit)
py::object user_class_instance_
Holds python instance of user class.
Directing class of FieldValueCache.
static constexpr bool value
Space< spacedim >::Point Point
std::string field_name_
Field name is necessary for set result.
Helper struct stores data for initizalize descentants of FieldAlgorithmBase.
Input::Record in_rec_
Accessor to Input::Record.
Common abstract parent of all Field<...> classes.
Container for various descendants of FieldCommonBase.
static const int registrar
Registrar of class to factory.
#define TYPEDEF_ERR_INFO(EI_Type, Type)
Macro to simplify declaration of error_info types.
FieldAlgorithmBase< spacedim, Value > FactoryBaseType
#define DECLARE_EXCEPTION(ExcName, Format)
Macro for simple definition of exceptions.
FieldAlgorithmBase< spacedim, Value >::Point Point