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++) {
181 to.t[i] =
asin(ti.
t[i]) ;
200 assert(ti.
get_etat() != ETATNONDEF) ;
214 for (
int i=0 ; i<taille ; i++) {
215 to.t[i] =
acos(ti.
t[i]) ;
233 assert(ti.
get_etat() != ETATNONDEF) ;
245 for (
int i=0 ; i<taille ; i++) {
246 to.t[i] =
atan(ti.
t[i]) ;
264 assert(ti.
get_etat() != ETATNONDEF) ;
276 for (
int i=0 ; i<taille ; i++) {
277 to.t[i] =
sqrt(ti.
t[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++) {
374 to.t[i] =
log10(ti.
t[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) ;
415 to.tzri[i] =
pow(ti.
tzri[i], x) ;
417 to.txti[i] =
pow(ti.
txti[i], x) ;
419 to.typi[i] =
pow(ti.
typi[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) ;
452 to.tzri[i] =
pow(ti.
tzri[i], x) ;
454 to.txti[i] =
pow(ti.
txti[i], x) ;
456 to.typi[i] =
pow(ti.
typi[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] ) ;
488 to.tzri[i] = fabs(ti.
tzri[i]) ;
490 to.txti[i] = fabs(ti.
txti[i]) ;
492 to.typi[i] = fabs(ti.
typi[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 ;
Cmp log(const Cmp &)
Neperian logarithm.
Cmp asin(const Cmp &)
Arcsine.
Cmp exp(const Cmp &)
Exponential.
Cmp sqrt(const Cmp &)
Square root.
Cmp racine_cubique(const Cmp &)
Cube root.
Tbl min(const Cmp &)
Minimum values of a Cmp in each domain.
Cmp cos(const Cmp &)
Cosine.
Tbl diffrel(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (norme version).
Cmp tan(const Cmp &)
Tangent.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
int get_taille_i(int i) const
Gives the size of the interface arrays (including the hidden cells)
Tbl norme(const Cmp &)
Sums of the absolute values of all the values of the Cmp in each domain.
Cmp atan(const Cmp &)
Arctangent.
int get_etat() const
Gives the logical state.
Tbl max(const Cmp &)
Maximum values of a Cmp in each domain.
double * tzri
The array at z (or r) interfaces.
Finite-difference array intended to store field values.
Cmp pow(const Cmp &, int)
Power .
double * typi
The array at y (or ) interfaces.
Cmp log10(const Cmp &)
Basis 10 logarithm.
Cmp acos(const Cmp &)
Arccosine.
Cmp abs(const Cmp &)
Absolute value.
double * t
The array of double at the nodes.
int get_taille() const
Gives the size of the node array (including the hidden cells)
Cmp sin(const Cmp &)
Sine.
double * txti
The array at x (or ) interfaces.
Tbl diffrelmax(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (max version).
const Grille_val * get_grille() const
Returns a pointer on the grid on which the Tbl_val is defined.