28char diff_dsdx2_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Diff/diff_dsdx2.C,v 1.3 2014/10/13 08:52:50 j_novak Exp $" ;
96 if (nr_done[indice] ==
npoints) {
100 if (nr_done[indice] == -1)
105 cerr <<
"Diff_dsdx2::get_matrice() : no space left!!" <<
'\n'
106 <<
"The value of Diff.max_points must be increased..." << endl ;
114 double* vect =
new double[
npoints] ;
115 for (
int i=0; i<
npoints; i++) {
121 resu.
set(j,i) = vect[j] ;
131 ost <<
" d2 / dx2 " << endl ;
Class for the elementary differential operator (see the base class Diff ).
void operator=(const Diff_dsdx2 &)
Assignment to another Diff_dsdx2.
void initialize()
Initializes arrays.
Diff_dsdx2(int base_r, int nr)
Standard constructor.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
virtual ~Diff_dsdx2()
Destructor.
virtual const Matrice & get_matrice() const
Returns the matrix associated with the operator.
Base (abstract) class for 1D spectral differential operators in one domain.
int npoints
Number of coefficients.
void operator=(const Diff &)
Assignment to another Diff.
static const int max_points
Maximal number of matrices stored per base.
int base
Base in radial direction.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
double & set(int j, int i)
Read/write of a particuliar element.
#define MAX_BASE
Nombre max. de bases differentes.
#define TRA_R
Translation en R, used for a bitwise shift (in hex)