20 #include "headcpp.hpp"
23 #include "array_math.hpp"
25 #include "tensor_impl.hpp"
40 if ((pos(1)==0) && (mquant!=0))
45 if ((pos(1)==
nbr_coefs(1)-1) || ((pos(1)==0) && (mquant!=0)))
50 if (((pos(1)==1) && (mquant>1)) || (pos(1)==0) || (pos(1)==
nbr_coefs(1)-1))
55 if (((pos(1)==0) && (mquant>1)) || (pos(1)==
nbr_coefs(1)-1))
60 cerr <<
"Unknow theta basis in Domain_polar_nucleus::nbr_unknowns_val_domain" << endl ;
72 if ((pos(0)==0) && ((lquant>llim) || (mquant!=0)))
80 cerr <<
"Strange base in Domain_polar_nucleus::nbr_conditions_val_domain" << endl ;
88 if ((pos(0)==0) && ((lquant>llim) || (mquant!=0)))
96 cerr <<
"Strange base in Domain_polar_nucleus::nbr_conditions_val_domain" << endl ;
104 if ((pos(0)==
nbr_coefs(0)-1) || ((pos(0)==0) && (lquant>llim+1)))
108 if ((pos(0)==
nbr_coefs(0)-1) || ((pos(0)==0) && (lquant>llim+1)))
112 cerr <<
"Strange base in Domain_polar_nucleus::nbr_conditions_val_domain" << endl ;
120 if ((pos(0)==
nbr_coefs(0)-1) || ((pos(0)==0) && (lquant>llim+1)))
124 if ((pos(0)==
nbr_coefs(0)-1) || ((pos(0)==0) && (lquant>llim+1)))
128 cerr <<
"Strange base in Domain_polar_nucleus::nbr_conditions_val_domain" << endl ;
134 cerr <<
"Unknown base in Domain_polar_nucleus::nbr_conditions_val_domain" << endl ;
156 cerr <<
"Unknown case in Domain_polar_nucleus_nbr_conditions" << endl ;
173 int size = (n_cmp==-1) ? tt.
get_n_comp() : n_cmp ;
184 cerr <<
"Valence " << val <<
" not implemented in Domain_polar_nucleus::nbr_conditions" << endl ;
reference set(const Index &pos)
Read/write of an element.
Bases_container bases_1d
Arrays containing the various basis of decomposition.
int nbr_conditions_val_domain(const Val_domain &so, int mquant, int llim, int order) const
Computes number of discretized equations associated with a given tensorial equation in the bulk.
virtual Array< int > nbr_conditions(const Tensor &, int, int, int n_cmp=-1, Array< int > **p_cmp=0x0) const
Computes number of discretized equations associated with a given tensorial equation in the bulk.
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 Param_tensor & get_parameters() const
Returns a pointer on the possible additional parameter.
int get_n_comp() const
Returns the number of stored components.
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).
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.