20 #include "headcpp.hpp"
21 #include "spheric_symphi.hpp"
22 #include "array_math.hpp"
24 #include "tensor_impl.hpp"
49 if ((pos(2)==0) || (pos(2)==
nbr_coefs(2)-1))
59 cerr <<
"Unknow phi basis in Domain_nucleus_symphi::nbr_unknowns_val_domain" << endl ;
70 if ((pos(1)==0) && (mquant>0))
75 if ((pos(1)==
nbr_coefs(1)-1) || ((pos(1)==0) && (mquant>0)))
80 if (((pos(1)==1) && (mquant>1)) || (pos(1)==0) || (pos(1)==
nbr_coefs(1)-1))
85 if (((pos(1)==0) && (mquant>1)) || (pos(1)==
nbr_coefs(1)-1))
90 cerr <<
"Unknow theta basis in Domain_nucleus_symphi::nbr_unknowns_val_domain" << endl ;
100 if ((lquant>0) && (pos(0)==0))
104 if ((lquant>0) && (pos(0)==0))
108 if (((lquant>1) && (pos(0)==0)) || (pos(0)==
nbr_coefs(0)-1))
112 if (((lquant>1) && (pos(0)==0)) || (pos(0)==
nbr_coefs(0)-1))
116 cerr <<
"Unknow radial basis in Domain_nucleus_symphi::nbr_unknowns_val_domain" << endl ;
150 cerr <<
"Unknown type of vector Domain_nucleus_symphi::nbr_unknowns" << endl ;
169 for (
int i=1 ; i<=3 ; i++)
170 for (
int j=1 ; j<=3 ; j++)
176 cerr <<
"Unknown type of 2-tensor Domain_nucleus_symphi::nbr_unknowns" << endl ;
182 cerr <<
"Valence " << val <<
" not implemented in Domain_nucleus_symphi::nbr_unknowns" << endl ;
Bases_container bases_1d
Arrays containing the various basis of decomposition.
int get_basis(int nd) const
Read only the basis in a given domain.
int nbr_unknowns_val_domain(const Val_domain &so) 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.
const Domain * get_domain(int i) const
returns a pointer on the domain.
const Base_tensor & get_basis() const
Returns the vectorial basis (triad) on which the components are defined.
int get_n_comp() const
Returns the number of stored components.
int get_valence() const
Returns the valence.
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.