28char diff_sx2_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Diff/diff_sx2.C,v 1.4 2014/10/13 08:52:51 j_novak Exp $" ;
59void sxp12_1d(
int,
double**,
int) ;
102 for (indice =0; indice<
max_points; indice++) {
103 if (nr_done[indice] ==
npoints) {
107 if (nr_done[indice] == -1)
112 cerr <<
"Diff_sx2::get_matrice() : no space left!!" <<
'\n'
113 <<
"The value of Diff.max_points must be increased..." << endl ;
121 double* vect =
new double[
npoints] ;
122 for (
int i=0; i<
npoints; i++) {
129 resu.
set(j,i) = vect[j] ;
134 resu.
set(j,i) = vect[j] ;
145 ost <<
" Division by x^2 " << endl ;
Class for the elementary differential operator division by (see the base class Diff ).
Diff_sx2(int base_r, int nr)
Standard constructor.
void initialize()
Initializes arrays.
void operator=(const Diff_sx2 &)
Assignment to another Diff_sx2.
virtual const Matrice & get_matrice() const
Returns the matrix associated with the operator.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
virtual ~Diff_sx2()
Destructor.
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 R_JACO02
base de Jacobi(0,2) ordinaire (finjac)
#define TRA_R
Translation en R, used for a bitwise shift (in hex)
#define R_CHEB
base de Chebychev ordinaire (fin)