73 assert(ti.
get_etat() != ETATNONDEF) ;
85 for (
int i=0 ; i<taille ; i++) {
86 to.
t[i] =
sin(ti.
t[i]) ;
104 assert(ti.
get_etat() != ETATNONDEF) ;
118 for (
int i=0 ; i<taille ; i++) {
119 to.
t[i] =
cos(ti.
t[i]) ;
137 assert(ti.
get_etat() != ETATNONDEF) ;
149 for (
int i=0 ; i<taille ; i++) {
150 to.
t[i] =
tan(ti.
t[i]) ;
168 assert(ti.
get_etat() != ETATNONDEF) ;
180 for (
int i=0 ; i<taille ; i++) {
200 assert(ti.
get_etat() != ETATNONDEF) ;
214 for (
int i=0 ; i<taille ; i++) {
233 assert(ti.
get_etat() != ETATNONDEF) ;
245 for (
int i=0 ; i<taille ; i++) {
264 assert(ti.
get_etat() != ETATNONDEF) ;
276 for (
int i=0 ; i<taille ; i++) {
295 assert(ti.
get_etat() != ETATNONDEF) ;
309 for (
int i=0 ; i<taille ; i++) {
310 to.
t[i] =
exp(ti.
t[i]) ;
328 assert(ti.
get_etat() != ETATNONDEF) ;
332 cout <<
"Tbl_val log: log(ETATZERO) !" << endl ;
341 for (
int i=0 ; i<taille ; i++) {
342 to.
t[i] =
log(ti.
t[i]) ;
360 assert(ti.
get_etat() != ETATNONDEF) ;
364 cout <<
"Tbl_val log10: log10(ETATZERO) !" << endl ;
373 for (
int i=0 ; i<taille ; i++) {
392 assert(ti.
get_etat() != ETATNONDEF) ;
400 cout <<
"Tbl_val pow: ETATZERO^n avec n<=0 ! "<< endl ;
411 for (
int i=0 ; i<taille ; i++) {
412 to.
t[i] =
pow(ti.
t[i],
x) ;
430 assert(ti.
get_etat() != ETATNONDEF) ;
438 cout <<
"Tbl_val pow: ETATZERO^x avec x<=0 !" << endl ;
448 for (
int i=0 ; i<taille ; i++) {
449 to.
t[i] =
pow(ti.
t[i],
x) ;
467 assert(ti.
get_etat() != ETATNONDEF) ;
480 const double* xi = ti.
t ;
484 for (
int i=0 ; i<taille ; i++) {
485 xo[i] = fabs( xi[i] ) ;
503 assert(ti.
get_etat() != ETATNONDEF) ;
520 if (ti.
tzri[i] < 0) res.
tzri[i] *= -1 ;
522 if (ti.
txti[i] < 0) res.
txti[i] *= -1 ;
524 if (ti.
typi[i] < 0) res.
typi[i] *= -1 ;
536 assert(ti.
get_etat() != ETATNONDEF) ;
546 const double*
x = ti.
t ;
549 if (
x[i] > resu ) resu =
x[i] ;
562 assert(ti.
get_etat() != ETATNONDEF) ;
572 const double*
x = ti.
t ;
575 if (
x[i] < resu ) resu =
x[i] ;
588 assert(ti.
get_etat() != ETATNONDEF) ;
595 const double*
x = ti.
t ;
597 resu += fabs(
x[i] ) ;
612 assert(t1.
get_etat() != ETATNONDEF) ;
613 assert(t2.
get_etat() != ETATNONDEF) ;
615 double norm2 =
norme(t2) ;
616 double normdiff =
norme(t1-t2) ;
618 if ( norm2 ==
double(0) ) {
622 resu = normdiff / norm2 ;
636 assert(t1.
get_etat() != ETATNONDEF) ;
637 assert(t2.
get_etat() != ETATNONDEF) ;
639 double max2 =
max(
abs(t2)) ;
640 double maxdiff =
max(
abs(t1-t2)) ;
642 if ( max2 ==
double(0) ) {
646 resu = maxdiff / max2 ;
Finite-difference array intended to store field values.
const Grille_val * get_grille() const
Returns a pointer on the grid on which the Tbl_val is defined.
int get_taille_i(int i) const
Gives the size of the interface arrays (including the hidden cells).
double * txti
The array at x (or ) interfaces.
double * tzri
The array at z (or r) interfaces.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
double * t
The array of double at the nodes.
int get_etat() const
Gives the logical state.
double * typi
The array at y (or ) interfaces.
int get_taille() const
Gives the size of the node array (including the hidden cells).
Cmp atan(const Cmp &)
Arctangent.
Cmp sqrt(const Cmp &)
Square root.
Cmp log10(const Cmp &)
Basis 10 logarithm.
Cmp exp(const Cmp &)
Exponential.
Cmp sin(const Cmp &)
Sine.
Tbl diffrel(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (norme version).
Tbl norme(const Cmp &)
Sums of the absolute values of all the values of the Cmp in each domain.
Cmp acos(const Cmp &)
Arccosine.
Cmp asin(const Cmp &)
Arcsine.
Cmp racine_cubique(const Cmp &)
Cube root.
Tbl min(const Cmp &)
Minimum values of a Cmp in each domain.
Tbl max(const Cmp &)
Maximum values of a Cmp in each domain.
Cmp pow(const Cmp &, int)
Power .
Cmp cos(const Cmp &)
Cosine.
Cmp abs(const Cmp &)
Absolute value.
Tbl diffrelmax(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (max version).
Cmp tan(const Cmp &)
Tangent.
Cmp log(const Cmp &)
Neperian logarithm.
Coord x
x coordinate centered on the grid