101 for (indice =0; indice<
max_points; indice++) {
102 if (nr_done[indice] ==
npoints) {
106 if (nr_done[indice] == -1)
111 cerr <<
"Diff_dsdx::get_matrice() : no space left!!" <<
'\n' 112 <<
"The value of Diff.max_points must be increased..." << endl ;
120 double* vect =
new double[
npoints] ;
121 for (
int i=0; i<
npoints; i++) {
127 resu.
set(j,i) = vect[j] ;
136 ost <<
" d / dx " << endl ;
virtual ~Diff_dsdx()
Destructor.
Base (abstract) class for 1D spectral differential operators in one domain.
static const int max_points
Maximal number of matrices stored per base.
virtual const Matrice & get_matrice() const
Returns the matrix associated with the operator.
Class for the elementary differential operator (see the base class Diff ).
void operator=(const Diff_dsdx &)
Assignment to another Diff_dsdx.
int npoints
Number of coefficients.
#define TRA_R
Translation en R, used for a bitwise shift (in hex)
int base
Base in radial direction.
void operator=(const Diff &)
Assignment to another Diff.
double & set(int j, int i)
Read/write of a particuliar element.
void initialize()
Initializes arrays.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
Diff_dsdx(int base_r, int nr)
Standard constructor, the base is that of the functions the operator is acting on (starting base)...
#define MAX_BASE
Nombre max. de bases differentes.