20 #include "headcpp.hpp"
22 #include "bispheric.hpp"
24 #include "tensor_impl.hpp"
46 cerr <<
"Unknown order in Domain_bispheric_eta_first::nbr_conditions_val_domain" << endl ;
56 bool true_other = true ;
61 if ((k%2==1) && (i==
nbr_coefs(0)-1-forgot_chi))
64 if ((k!=0) && (k%2==0) && (i==0))
74 if ((k%2==1) && (i==
nbr_coefs(0)-1-forgot_chi))
77 if ((k%2==0) && (i==0))
83 cerr <<
"Unknwon phi basis in Domain_bispheric_eta_first:nbr_conditions_val_domain" << endl ;
95 int size = (n_cmp==-1) ? tt.
get_n_comp() : n_cmp ;
111 else for (
int i=0 ; i<n_cmp ; i++) {
112 if ((*p_cmp[i])(0)==1)
114 if ((*p_cmp[i])(0)==2)
116 if ((*p_cmp[i])(0)==3)
122 cerr <<
"Unknown type of vector Domain_bispheric_eta_first::nbr_conditions" << endl ;
139 else for (
int i=0 ; i<n_cmp ; i++) {
140 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
142 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
144 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
146 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
148 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
150 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
168 else for (
int i=0 ; i<n_cmp ; i++) {
169 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
171 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
173 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
175 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==1))
177 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
179 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
181 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==1))
183 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==2))
185 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
191 cerr <<
"Unknown type of 2-tensor Domain_bispheric_eta_first::nbr_conditions" << endl ;
197 cerr <<
"Valence " << val <<
" not implemented in Domain_bispheric_eta_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.