20 #include "headcpp.hpp"
21 #include "polar_periodic.hpp"
23 #include "array_math.hpp"
25 #include "tensor_impl.hpp"
42 if ((pos(2)==0) || (pos(2)==
nbr_coefs(2)-1))
46 cerr <<
"Unknow time basis in Domain_polar_polar_shell::nbr_conditions_val_domain" << endl ;
62 if ((pos(1)==0) || (pos(1)==
nbr_coefs(1)-1))
70 cerr <<
"Unknow theta basis in Domain_polar_periodic_shell::nbr_conditions_val_domain" << endl ;
84 cerr <<
"Unknown case in Domain_polar_periodic_shell_nbr_conditions" << endl ;
102 int size = (n_cmp==-1) ? tt.
get_n_comp() : n_cmp ;
115 else for (
int i=0 ; i<n_cmp ; i++) {
116 if ((*p_cmp[i])(0)==1)
118 if ((*p_cmp[i])(0)==2)
120 if ((*p_cmp[i])(0)==3)
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))
162 else for (
int i=0 ; i<n_cmp ; i++) {
163 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
165 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
167 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
169 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==1))
171 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
173 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
175 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==1))
177 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==2))
179 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
185 cerr <<
"Valence " << val <<
" not implemented in Domain_polar_periodic_shell::nbr_conditions" << endl ;
reference set(const Index &pos)
Read/write of an element.
Bases_container bases_1d
Arrays containing the various basis of decomposition.
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 &so, int order) const
Computes number of discretized equations associated with a given tensorial equation in the bulk.
Dim_array nbr_coefs
Number of coefficients.
Class that gives the position inside a multi-dimensional Array.
bool inc(int increm, int var=0)
Increments the position of the Index.
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.