20 #include "headcpp.hpp"
23 #include "array_math.hpp"
25 #include "tensor_impl.hpp"
48 for (
int i=0 ; i<
nbr_coefs(0)-imax ; i++) {
53 sec.
set(pos_sec) = (*so.
cf)(pos_cf) ;
58 pos_galerkin = pos_cf ;
59 pos_galerkin.
set(1) = 0 ;
60 sec.
set(pos_sec) = (*so.
cf)(pos_cf)
61 -2*(*so.
cf)(pos_galerkin) ;
68 sec.
set(pos_sec) = (*so.
cf)(pos_cf) ;
73 pos_galerkin = pos_cf ;
74 pos_galerkin.
set(1) = 0 ;
75 sec.
set(pos_sec) = (*so.
cf)(pos_cf)
76 -(*so.
cf)(pos_galerkin) ;
84 sec.
set(pos_sec) = (*so.
cf)(pos_cf) ;
89 pos_galerkin = pos_cf ;
90 pos_galerkin.
set(1) = 1 ;
91 sec.
set(pos_sec) = (*so.
cf)(pos_cf)
92 - j*(*so.
cf)(pos_galerkin) ;
100 sec.
set(pos_sec) = (*so.
cf)(pos_cf) ;
105 pos_galerkin = pos_cf ;
106 pos_galerkin.
set(1) = 0 ;
107 sec.
set(pos_sec) = (*so.
cf)(pos_cf)
108 - (2*j+1)*(*so.
cf)(pos_galerkin) ;
114 cerr <<
"Unknow theta basis in Domain_polar_compact::export_tau_val_domain" << endl ;
136 cerr <<
"Valence " << val <<
" not implemented in Domain_polar_compact::export_tau" << endl ;
reference set(const Index &pos)
Read/write of an element.
Bases_container bases_1d
Arrays containing the various basis of decomposition.
void export_tau_val_domain(const Val_domain &eq, int mquant, int order, Array< double > &res, int &pos_res, int ncond) const
Exports a residual equation in the bulk.
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.
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_m_quant() const
Returns .
const Param_tensor & get_parameters() const
Returns a pointer on the possible additional parameter.
int get_valence() const
Returns the valence.
bool is_m_quant_affected() const
Checks whether the additional parameter is affected (used for boson stars for instance).
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.