20 #include "headcpp.hpp"
22 #include "bispheric.hpp"
24 #include "tensor_impl.hpp"
33 if ((bound==ETA_MINUS_BC) || (bound==ETA_PLUS_BC)) {
39 bool true_other = true ;
47 if ((k!=0) && (k%2==0) && (i==0))
60 if ((k%2==0) && (i==0))
66 cerr <<
"Unknwon phi basis in Domain_bispheric_eta_first:nbr_conditions_tau_boundary" << endl ;
85 if ((bound!=ETA_MINUS_BC) && (bound!=ETA_PLUS_BC) && (bound!=OUTER_BC)) {
86 cerr <<
"Unknown boundary in Domain_bispheric_eta_first::nbr_conditions_boundary_one_side" << endl ;
90 int size = (n_cmp==-1) ? tt.
get_n_comp() : n_cmp ;
106 else for (
int i=0 ; i<n_cmp ; i++) {
107 if ((*p_cmp[i])(0)==1)
109 if ((*p_cmp[i])(0)==2)
111 if ((*p_cmp[i])(0)==3)
117 cerr <<
"Unknown type of vector Domain_bispheric_eta_first::nbr_conditions_boundary_one_side" << endl ;
134 else for (
int i=0 ; i<n_cmp ; i++) {
135 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
137 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
139 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
141 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
143 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
145 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
163 else for (
int i=0 ; i<n_cmp ; i++) {
164 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
166 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
168 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
170 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
172 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
174 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
176 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==1))
178 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==2))
180 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
186 cerr <<
"Unknown type of 2-tensor Domain_bispheric_eta_first::nbr_conditions_boundary_one_side" << endl ;
192 cerr <<
"Valence " << val <<
" not implemented in Domain_bispheric_eta_first::nbr_conditions_boundary_one_side" << 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_boundary_one_side(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 on a boundary.
int nbr_conditions_val_domain_boundary_one_side(const Val_domain &eq, int bound) const
Computes number of discretized equations associated with a given equation on a boundary,...
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.