14 #if !defined(KRATOS_INDIRECT_SCALAR_H_INCLUDED)
15 #define KRATOS_INDIRECT_SCALAR_H_INCLUDED
43 template <
class T,
typename S>
91 std::ostream&
print(std::ostream& os)
const
97 std::function<void(T)> set;
98 std::function<T()> get;
119 template <
class TVariableType>
121 const TVariableType& rVariable)
123 auto fset = [&rNode, &rVariable](
typename TVariableType::Type s) {
127 auto fget = [&rNode, &rVariable]() ->
typename TVariableType::Type {
134 template <
class TVariableType>
136 const TVariableType& rVariable,
146 auto fset = [&rNode, &rVariable](
typename TVariableType::Type s) {
149 auto fget = [&rNode, &rVariable]() ->
typename TVariableType::Type {
156 auto fset = [&rNode, &rVariable](
typename TVariableType::Type s) {
159 auto fget = [&rNode, &rVariable]() ->
typename TVariableType::Type {
Wrapper for a function which behaves like an arithmetic type.
Definition: indirect_scalar.h:45
IndirectScalar< T, S > & operator=(const T value)
Definition: indirect_scalar.h:56
IndirectScalar(std::function< void(T)> set, std::function< T()> get)
Definition: indirect_scalar.h:51
IndirectScalar()
Definition: indirect_scalar.h:47
std::ostream & print(std::ostream &os) const
Definition: indirect_scalar.h:91
IndirectScalar< T, S > & operator/=(const T value)
Definition: indirect_scalar.h:80
IndirectScalar< T, S > & operator-=(const T value)
Definition: indirect_scalar.h:68
IndirectScalar< T, S > & operator*=(const T value)
Definition: indirect_scalar.h:74
IndirectScalar< T, S > & operator+=(const T value)
Definition: indirect_scalar.h:62
This class defines the node.
Definition: node.h:65
TVariableType::Type & FastGetSolutionStepValue(const TVariableType &rThisVariable)
Definition: node.h:435
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
#define KRATOS_ERROR
Definition: exception.h:161
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
IndirectScalar< typename TVariableType::Type > MakeIndirectScalar(Node &rNode, const TVariableType &rVariable)
Definition: indirect_scalar.h:120
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307