20 #include "headcpp.hpp"
22 #include "bispheric.hpp"
24 #include "tensor_impl.hpp"
42 cerr <<
"Unknown order in Domain_bispheric_chi_first::nbr_conditons_val_domain" << endl ;
53 bool true_other = true ;
58 if ((k%2==1) && (j==
nbr_coefs(1)-1-forgot_chi))
61 if ((k!=0) && (k%2==0) && (j==0))
71 if ((k%2==1) && (j==
nbr_coefs(1)-1-forgot_chi))
74 if ((k%2==0) && (j==0))
80 cerr <<
"Unknwon phi basis in Domain_bispheric_chi_first:nbr_conditions_val_domain" << endl ;
92 int size = (n_cmp==-1) ? tt.
get_n_comp() : n_cmp ;
108 else for (
int i=0 ; i<n_cmp ; i++) {
109 if ((*p_cmp[i])(0)==1)
111 if ((*p_cmp[i])(0)==2)
113 if ((*p_cmp[i])(0)==3)
119 cerr <<
"Unknown type of vector Domain_bispheric_chi_first::nbr_conditions" << endl ;
136 else for (
int i=0 ; i<n_cmp ; i++) {
137 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
139 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
141 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
143 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
145 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
147 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
165 else for (
int i=0 ; i<n_cmp ; i++) {
166 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
168 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
170 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
172 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==1))
174 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
176 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
178 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==1))
180 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==2))
182 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
188 cerr <<
"Unknown type of 2-tensor Domain_bispheric_chi_first::nbr_conditions" << endl ;
194 cerr <<
"Valence " << val <<
" not implemented in Domain_bispheric_chi_first::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 get_basis(int nd) const
Read only the basis in a given domain.
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.
int nbr_conditions_val_domain(const Val_domain &eq, int order) const
Computes number of discretized equations associated with a given tensorial equation in the bulk.
Dim_array nbr_coefs
Number of coefficients.
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.
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.