96 assert(t1.
get_etat() != ETATNONDEF) ;
108 assert(t1.
get_etat() != ETATNONDEF) ;
119 for (
int i=0 ; i<r.get_nzone() ; i++) {
120 *(r.t)[i] = -(*(t1.
t)[i]) ;
134 assert(t1.
get_etat() != ETATNONDEF) ;
135 assert(t2.
get_etat() != ETATNONDEF) ;
154 for (
int i=0 ; i<nz ; i++) {
155 *(r.
t)[i] += *(t2.
t)[i] ;
172 assert(t1.
get_etat() != ETATNONDEF) ;
173 assert(t2.
get_etat() != ETATNONDEF) ;
192 for (
int i=0 ; i<nz ; i++) {
193 *(r.
t)[i] -= *(t2.
t)[i] ;
211 assert(t1.
get_etat() != ETATNONDEF) ;
214 if ((t1.
get_etat() == ETATZERO) || ( x ==
double(1) )) {
223 if ( x ==
double(0) ) {
228 for (
int i=0 ; i<nz ; i++) {
247 return t1 * double(m) ;
254 return t1 * double(m) ;
269 assert(t1.
get_etat() != ETATNONDEF) ;
270 if ( x ==
double(0) ) {
271 cout <<
"Mtbl_cf division by 0 !" << endl ;
276 if ((t1.
get_etat() == ETATZERO) || ( x ==
double(1) )) {
285 for (
int i=0 ; i<nz ; i++) {
296 return t1/double(n) ;
310 assert(
etat != ETATNONDEF) ;
311 assert(mi.
get_etat() != ETATNONDEF) ;
320 if (
etat == ETATZERO) {
323 for (
int i=0 ; i<
nzone ; i++) {
324 *(
t[i]) += *(mi.
t[i]) ;
333 assert(
etat != ETATNONDEF) ;
334 assert(mi.
get_etat() != ETATNONDEF) ;
343 if (
etat == ETATZERO) {
346 for (
int i=0 ; i<
nzone ; i++) {
347 *(
t[i]) -= *(mi.
t[i]) ;
Base_val operator*(const Base_val &, const Base_val &)
This operator is used when calling multiplication or division of Valeur .
const Mg3d * mg
Pointer on the multi-grid Mgd3 on which this is defined.
Cmp operator/(const Cmp &, const Cmp &)
Cmp / Cmp.
int get_etat() const
Returns the logical state.
const Mg3d * get_mg() const
Returns the Mg3d on which the Mtbl_cf is defined.
int etat
Logical state (ETATNONDEF , ETATQCQ or ETATZERO ).
Cmp operator+(const Cmp &)
void operator+=(const Mtbl_cf &)
+= Mtbl_cf
int get_nzone() const
Returns the number of zones (domains)
int nzone
Number of domains (zones)
void operator-=(const Mtbl_cf &)
-= Mtbl_cf
void annule_hard()
Sets the Mtbl_cf to zero in a hard way.
Coefficients storage for the multi-domain spectral method.
Base_val base
Bases of the spectral expansions.
Cmp operator-(const Cmp &)
- Cmp
Tbl ** t
Array (size nzone ) of pointers on the Tbl 's which contain the spectral coefficients in each domain...