20 #include "headcpp.hpp"
23 #include "array_math.hpp"
25 #include "tensor_impl.hpp"
41 if ((pos(1)==0) && (mquant!=0))
46 if ((pos(1)==
nbr_coefs(1)-1) || ((pos(1)==0) && (mquant!=0)))
51 if (((pos(1)==1) && (mquant>1)) || (pos(1)==0) || (pos(1)==
nbr_coefs(1)-1))
56 if (((pos(1)==0) && (mquant>1)) || (pos(1)==
nbr_coefs(1)-1))
61 cerr <<
"Unknow theta basis in Domain_polar_nucleus::nbr_unknowns_val_domain" << endl ;
73 if ((pos(0)==0) && ((lquant>llim) || (mquant!=0)))
81 cerr <<
"Strange base in Domain_polar_nucleus::br_unknowns_val_domain" << endl ;
88 if ((pos(0)==0) && ((lquant>llim) || (mquant!=0)))
96 cerr <<
"Strange base in Domain_polar_nucleus::br_unknowns_val_domain" << endl ;
103 if ((pos(0)==
nbr_coefs(0)-1) || ((pos(0)==0) && (lquant>llim+1)))
107 if ((pos(0)==
nbr_coefs(0)-1) || ((pos(0)==0) && (lquant>llim+1)))
111 cerr <<
"Strange base in Domain_polar_nucleus::br_unknowns_val_domain" << endl ;
118 if ((pos(0)==
nbr_coefs(0)-1) || ((pos(0)==0) && (lquant>llim+1)))
122 if ((pos(0)==
nbr_coefs(0)-1) || ((pos(0)==0) && (lquant>llim+1)))
126 cerr <<
"Strange base in Domain_polar_nucleus::br_unknowns_val_domain" << endl ;
131 cerr <<
"Unknown base in Domain_polar_nucleus::br_unknowns_val_domain" << endl ;
159 cerr <<
"Valence " << val <<
" not implemented in Domain_polar_nucleus::nbr_unknowns" << endl ;
Bases_container bases_1d
Arrays containing the various basis of decomposition.
int nbr_unknowns_val_domain(const Val_domain &so, int mquant, int llim) const
Computes the number of true unknowns of a Val_domain.
virtual int nbr_unknowns(const Tensor &, int) const
Computes the number of true unknowns of a Tensor, in a given domain.
Dim_array nbr_coefs
Number of coefficients.
Class that gives the position inside a multi-dimensional Array.
bool inc(int increm, int var=0)
Increments the position of the Index.
int get_m_quant() const
Returns .
const Domain * get_domain(int i) const
returns a pointer on the domain.
const Param_tensor & get_parameters() const
Returns a pointer on the possible additional parameter.
int get_valence() const
Returns the valence.
bool is_m_quant_affected() const
Checks whether the additional parameter is affected (used for boson stars for instance).
const Space & get_space() const
Returns the Space.
Class for storing the basis of decompositions of a field and its values on both the configuration and...
const Base_spectral & get_base() const
Returns the basis of decomposition.