22 #include "tensor_impl.hpp"
39 cerr <<
"Ope_sqrt_anti only defined with respect for a scalar" << endl ;
58 if (target.
der_t!=0x0) {
80 if (target.
der_d==0x0) {
91 cerr <<
"Unknown storage in Term_eq..." << endl ;
95 cerr <<
"Warning should not be here in Ope_sqrt_anti::action..." << endl ;
Abstract class that describes the various operators that can appear in the equations.
MMPtr_array< Ope_eq > parts
Pointers of the various parts of the current operator.
int dom
Index of the Domain where the operator is defined.
~Ope_sqrt_anti() override
Destructor.
Ope_sqrt_anti(const System_of_eqs *syst, Ope_eq *so)
Constructor.
Term_eq action() const override
Computes the action of the current Ope_eq using its various parts.
Val_domain & set_domain(int)
Read/write of a particular Val_domain.
Class used to describe and solve a system of equations.
Scalar & set(const Array< int > &ind)
Returns the value of a component (read/write version).
int get_n_comp() const
Returns the number of stored components.
virtual Array< int > indices(int pos) const
Gives the values of the indices corresponding to a location in the array used for storage of the comp...
int get_valence() const
Returns the valence.
This class is intended to describe the manage objects appearing in the equations.
Tensor * der_t
Pointer on the variation, if the Term_eq is a Tensor.
const int type_data
Flag describing the type of data :
double * val_d
Pointer on the value, if the Term_eq is a double.
double * der_d
Pointer on the variation if the Term_eq is a double.
Tensor * val_t
Pointer on the value, if the Term_eq is a Tensor.
Class for storing the basis of decompositions of a field and its values on both the configuration and...
void set_zero()
Sets the Val_domain to zero (logical state to zero and arrays destroyed).
bool check_if_zero() const
Check whether the logical state is zero or not.
void std_anti_base()
Sets the standard, anti-symetric, basis of decomposition.