28 char diff_id_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Diff/diff_id.C,v 1.3 2014/10/13 08:52:50 j_novak Exp $" ;
78 tab[j*max_points+i] = 0x0 ;
96 if (nr_done[indice] ==
npoints) {
97 if (tab[
base*max_points + indice] != 0x0) done = true ;
100 if (nr_done[indice] == -1)
104 if (indice == max_points) {
105 cerr <<
"Diff_id::get_matrice() : no space left!!" <<
'\n' 106 <<
"The value of Diff.max_points must be increased..." << endl ;
114 for (
int i=0; i<
npoints; i++) {
120 return *tab[
base*max_points + indice] ;
125 ost <<
" Identity " << endl ;
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Base (abstract) class for 1D spectral differential operators in one domain.
static const int max_points
Maximal number of matrices stored per base.
virtual ~Diff_id()
Destructor.
int npoints
Number of coefficients.
Class for the elementary differential operator Identity (see the base class Diff ).
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.
Diff_id(int base_r, int nr)
Standard constructor.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
virtual const Matrice & get_matrice() const
Returns the matrix associated with the operator.
void operator=(const Diff_id &)
Assignment to another Diff_id.
#define MAX_BASE
Nombre max. de bases differentes.