92 if ( (
dzpuis == 0) || (tmax(nzm1) ==
double(0)) ) {
94 double s_max =
max( tmax ) ;
96 for (
int l=0; l<nz; l++) {
97 trel.
set(l) = tdiff(l) / s_max ;
104 for (
int l=0; l<nzm1; l++) {
105 s_max = (tmax(l) > s_max) ? tmax(l) : s_max ;
108 for (
int l=0; l<nzm1; l++) {
109 trel.
set(l) = tdiff(l) / s_max ;
112 trel.
set(nzm1) = tdiff(nzm1) / tmax(nzm1) ;
123 for(
int l=0; l<nz; l++) {
124 err.
set(0, l) = trel(l) ;
125 err.
set(1, l) = tdiff(l) ;
126 err.
set(2, l) = tmax(l) ;
133 ostr <<
"Max. source :" ;
134 for (
int l=0; l<nz; l++) {
135 ostr <<
" " << err(2, l) ;
138 ostr << endl <<
"Abs. error : " ;
139 for (
int l=0; l<nz; l++) {
140 ostr <<
" " << err(1, l) ;
144 ostr << endl <<
"Rel. error : " ;
145 for (
int l=0; l<nz; l++) {
146 ostr <<
" " << err(0, l) ;
const Map * get_mp() const
Returns the mapping.
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
double & set(int i)
Read/write of a particular element (index i) (1D case)
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
int dzpuis
Power of r by which the quantity represented by this must be divided in the external compactified zo...
int get_nzone() const
Returns the number of domains.
Tbl max(const Cmp &)
Maximum values of a Cmp in each domain.
Tbl test_poisson(const Cmp &uu, ostream &ostr, bool detail=false) const
Checks if a Poisson equation with *this as a source has been correctly solved.
const Map * mp
Reference mapping.
Cmp abs(const Cmp &)
Absolute value.
bool check_dzpuis(int dzi) const
Returns false if the last domain is compactified and *this is not zero in this domain and dzpuis is n...
const Cmp & laplacien(int zec_mult_r=4) const
Returns the Laplacian of *this.