20 #include "headcpp.hpp"
21 #include "spheric_symphi.hpp"
22 #include "array_math.hpp"
24 #include "tensor_impl.hpp"
59 cerr <<
"Unknow phi basis in Domain_compact_symphi::affecte_tau_val_domain" << endl ;
66 for (
int k=kmin ; k<=kmax ; k++) {
85 cerr <<
"Unknow phi basis in Domain_compact_symphi::affecte_tau_val_domain" << endl ;
101 so.
cf->
set(pos_cf) += values(conte) ;
107 pos_gal_t.
set(1) = 0 ;
109 so.
cf->
set(pos_cf) += values(conte) ;
110 so.
cf->
set(pos_gal_t) += fact_t*values(conte) ;
117 so.
cf->
set(pos_cf) += values(conte) ;
123 pos_gal_t.
set(1) = 0 ;
125 so.
cf->
set(pos_cf) += values(conte) ;
126 so.
cf->
set(pos_gal_t) += fact_t*values(conte) ;
134 so.
cf->
set(pos_cf) += values(conte) ;
140 pos_gal_t.
set(1) = 1 ;
142 so.
cf->
set(pos_cf) += values(conte) ;
143 so.
cf->
set(pos_gal_t) += fact_t*values(conte) ;
151 so.
cf->
set(pos_cf) += values(conte) ;
157 pos_gal_t.
set(1) = 0 ;
159 so.
cf->
set(pos_cf) += values(conte) ;
160 so.
cf->
set(pos_gal_t) += fact_t*values(conte) ;
166 cerr <<
"Unknow theta basis in Domain_compact_symphi::affecte_tau_val_domain" << endl ;
195 cerr <<
"Unknown type of vector Domain_compact_symphi::affecte_tau" << endl ;
226 cerr <<
"Unknown type of 2-tensor Domain_compact_symphi::affecte_tau" << endl ;
232 cerr <<
"Valence " << val <<
" not implemented in Domain_compact_symphi::affecte_tau" << endl ;
reference set(const Index &pos)
Read/write of an element.
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.
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, 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.
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.
Scalar & set(const Array< int > &ind)
Returns the value of a component (read/write version).
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...
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.