20 #include "headcpp.hpp"
21 #include "polar_periodic.hpp"
23 #include "array_math.hpp"
25 #include "tensor_impl.hpp"
50 cerr <<
"Unknown time basis in Domain_polar_periodic_shell_export_tau_val_domain" << endl ;
54 for (
int k=mink ; k<maxk ; k++) {
78 cerr <<
"Unknown theta basis in Domain_polar_periodic_shell_export_tau_val_domain" << endl ;
83 for (
int j=minj ; j<maxj ; j++) {
88 for (
int i=0 ; i<
nbr_coefs(0)-order ; i++) {
92 sec.
set(pos_sec) = (*so.
cf)(pos_cf) ;
114 else for (
int i=0 ; i<n_cmp ; i++) {
115 if ((*p_cmp[i])(0)==1)
117 if ((*p_cmp[i])(0)==2)
119 if ((*p_cmp[i])(0)==3)
133 else for (
int i=0 ; i<n_cmp ; i++) {
134 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
136 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
138 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
140 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
142 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
144 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_periodicshell::export_tau" << endl ;
reference set(const Index &pos)
Read/write of an element.
Bases_container bases_1d
Arrays containing the various basis of decomposition.
virtual void export_tau(const Tensor &, int, int, Array< double > &, int &, const Array< int > &, int n_cmp=-1, Array< int > **p_cmp=0x0) const
Exports all the residual equations corresponding to a tensorial one in the bulk.
void export_tau_val_domain(const Val_domain &eq, int order, Array< double > &res, int &pos_res, int ncond) const
Exports a residual equation in the bulk.
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.
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...
bool check_if_zero() const
Check whether the logical state is zero or not.
Array< double > * cf
Pointer on the Array of the values in the coefficients space.
void coef() const
Computes the coefficients.
const Base_spectral & get_base() const
Returns the basis of decomposition.