20 #include "headcpp.hpp"
23 #include "array_math.hpp"
24 #include "val_domain.hpp"
31 other_bound = INNER_BC ;
34 cerr <<
"Unknown boundary case in Domain_critic_inner::find_other_dom" << endl ;
47 Index copie_pos (pos_cf) ;
53 if ((base_r==CHEB_EVEN) || (base_r==LEG_EVEN)) {
55 copie_pos.
set(0) = i ;
62 fact *= - double(i-1)/double(i) ;
65 cerr <<
"Unknown basis type in Domain_critic_inner::val_boundary" << endl ;
73 copie_pos.
set(0) = i ;
78 cerr <<
"Unknown boundary type in Domain_critic_inner::val_boundary" << endl ;
88 if ((bound!=INNER_BC) && (bound!=OUTER_BC)) {
89 cerr <<
"Unknown boundary in Domain_critic_inner::nbr_points_boundary" << endl ;
94 if ((base_t!=COSSIN_EVEN) && (base_t!=COSSIN_ODD)) {
95 cerr <<
"Unknown base in Domain_critic_inner::nbr_conditions_val_domain_boundary" << endl ;
103 int pos_which = start ;
114 cerr <<
"Unknown boundary in Domain_critic_inner::do_which_points_boundary" << endl ;
120 which_coef[pos_which] =
new Index(pos) ;
Class for storing the basis of decompositions of a field.
Bases_container bases_1d
Arrays containing the various basis of decomposition.
virtual void do_which_points_boundary(int, const Base_spectral &, Index **, int) const
Lists all the indices corresponding to true collocation points on a boundary.
virtual void find_other_dom(int, int, int &, int &) const
Gives the informations corresponding the a touching neighboring domain.
virtual int nbr_points_boundary(int, const Base_spectral &) const
Computes the number of relevant collocation points on a boundary.
virtual double val_boundary(int, const Val_domain &, const Index &) const
Computes the value of a field at a boundary.
Dim_array nbr_coefs
Number of coefficients.
Dim_array nbr_points
Number of colocation points.
Class that gives the position inside a multi-dimensional Array.
int & set(int i)
Read/write of the position in a given dimension.
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.
void coef() const
Computes the coefficients.
Array< double > get_coef() const
const Base_spectral & get_base() const
Returns the basis of decomposition.