20 #include "headcpp.hpp"
21 #include "adapted_polar.hpp"
23 #include "array_math.hpp"
25 #include "tensor_impl.hpp"
40 bool true_tet = true ;
43 if ((j==0) && (mquant!=0))
47 if ((j==
nbr_coefs(1)-1) || ((j==0) && (mquant!=0)))
51 if (((j==1) && (mquant>1)) || (j==0) || (j==
nbr_coefs(1)-1))
55 if (((j==0) && (mquant>1)) || (j==
nbr_coefs(1)-1))
59 cerr <<
"Unknow theta basis in Domain_polar_shell_outer_adapted::affecte_tau_val_domain" << endl ;
66 so.
cf->
set(pos_cf) += values(conte);
81 sum += (*so.
cf)(pos_cf) ;
84 so.
cf->
set(pos_cf) = -sum ;
89 sum += (*so.
cf)(pos_cf) ;
92 so.
cf->
set(pos_cf) = -sum ;
97 sum += j*(*so.
cf)(pos_cf) ;
100 so.
cf->
set(pos_cf) = -sum ;
105 sum += (2*j+1)*(*so.
cf)(pos_cf) ;
108 so.
cf->
set(pos_cf) = -sum ;
111 cerr <<
"Unknow theta basis in Domain_polar_shell_outer_adapted::affecte_tau_val_domain" << endl ;
132 cerr <<
"Valence " << val <<
" not implemented in Domain_polar_shell_outer_adapted::affecte_tau" << endl ;
reference set(const Index &pos)
Read/write of an element.
Bases_container bases_1d
Arrays containing the various basis of decomposition.
virtual void affecte_tau(Tensor &, int, const Array< double > &, int &) const
Affects some coefficients to a Tensor.
void affecte_tau_val_domain(Val_domain &so, int mquant, const Array< double > &cf, int &pos_cf) const
Affects some coefficients to a Val_domain.
Dim_array nbr_coefs
Number of coefficients.
Class that gives the position inside a multi-dimensional Array.
int & set(int i)
Read/write of the position in a given dimension.
int get_m_quant() const
Returns .
Val_domain & set_domain(int)
Read/write of a particular Val_domain.
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.
Scalar & set(const Array< int > &ind)
Returns the value of a component (read/write version).
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...
void allocate_coef()
Allocates the values in the coefficient space and destroys the values in the configuration space.
Array< double > * cf
Pointer on the Array of the values in the coefficients space.
const Base_spectral & get_base() const
Returns the basis of decomposition.