251 if (index >=
n_int) {
253 int n_int_nouveau = index + 1 ;
254 const int** p_int_nouveau =
new const int*[n_int_nouveau] ;
258 for (
int i=0; i<
n_int; i++) {
259 p_int_nouveau[i] =
p_int[i] ;
264 for (
int i=
n_int; i<index; i++) {
265 p_int_nouveau[i] = 0x0 ;
269 p_int_nouveau[index] = &ti ;
273 p_int = p_int_nouveau ;
274 n_int = n_int_nouveau ;
279 if (
p_int[index] != 0x0) {
280 cout <<
"Param::add_int : the position " << index
281 <<
" is already occupied !" << endl ;
298 assert(index <
n_int) ;
300 return *(
p_int[index]) ;
322 int n_double_nouveau = index + 1 ;
323 const double** p_double_nouveau =
324 new const double*[n_double_nouveau] ;
333 for (
int i=
n_double; i<index; i++) {
334 p_double_nouveau[i] = 0x0 ;
338 p_double_nouveau[index] = &ti ;
349 cout <<
"Param::add_double : the position " << index
350 <<
" is already occupied !" << endl ;
392 int n_int_nouveau = index + 1 ;
393 int** p_int_nouveau =
new int*[n_int_nouveau] ;
403 p_int_nouveau[i] = 0x0 ;
407 p_int_nouveau[index] = &ti ;
418 cout <<
"Param::add_int_mod : the position " << index
419 <<
" is already occupied !" << endl ;
460 int n_double_nouveau = index + 1 ;
461 double** p_double_nouveau =
new double*[n_double_nouveau] ;
471 p_double_nouveau[i] = 0x0 ;
475 p_double_nouveau[index] = &ti ;
486 cout <<
"Param::add_double_mod : the position " << index
487 <<
" is already occupied !" << endl ;
527 if (index >=
n_tbl) {
529 int n_tbl_nouveau = index + 1 ;
530 const Tbl** p_tbl_nouveau =
new const Tbl*[n_tbl_nouveau] ;
534 for (
int i=0; i<
n_tbl; i++) {
535 p_tbl_nouveau[i] =
p_tbl[i] ;
539 for (
int i=
n_tbl; i<index; i++) {
540 p_tbl_nouveau[i] = 0x0 ;
544 p_tbl_nouveau[index] = &ti ;
548 p_tbl = p_tbl_nouveau ;
549 n_tbl = n_tbl_nouveau ;
554 if (
p_tbl[index] != 0x0) {
555 cout <<
"Param::add_tbl : the position " << index
556 <<
" is already occupied !" << endl ;
573 assert(index <
n_tbl) ;
575 return *(
p_tbl[index]) ;
598 int n_tbl_nouveau = index + 1 ;
599 Tbl** p_tbl_nouveau =
new Tbl*[n_tbl_nouveau] ;
609 p_tbl_nouveau[i] = 0x0 ;
613 p_tbl_nouveau[index] = &ti ;
624 cout <<
"Param::add_tbl_mod : the position " << index
625 <<
" is already occupied !" << endl ;
667 int n_itbl_nouveau = index + 1 ;
668 const Itbl** p_itbl_nouveau =
new const Itbl*[n_itbl_nouveau] ;
672 for (
int i=0; i<
n_itbl; i++) {
673 p_itbl_nouveau[i] =
p_itbl[i] ;
677 for (
int i=
n_itbl; i<index; i++) {
678 p_itbl_nouveau[i] = 0x0 ;
682 p_itbl_nouveau[index] = &ti ;
692 if (
p_itbl[index] != 0x0) {
693 cout <<
"Param::add_itbl : the position " << index
694 <<
" is already occupied !" << endl ;
736 int n_itbl_nouveau = index + 1 ;
737 Itbl** p_itbl_nouveau =
new Itbl*[n_itbl_nouveau] ;
747 p_itbl_nouveau[i] = 0x0 ;
751 p_itbl_nouveau[index] = &ti ;
762 cout <<
"Param::add_itbl_mod : the position " << index
763 <<
" is already occupied !" << endl ;
804 int n_matrice_nouveau = index + 1 ;
805 const Matrice** p_matrice_nouveau =
new const Matrice*[n_matrice_nouveau] ;
815 p_matrice_nouveau[i] = 0x0 ;
819 p_matrice_nouveau[index] = &ti ;
830 cout <<
"Param::add_matrice : the position " << index
831 <<
" is already occupied !" << endl ;
873 int n_matrice_nouveau = index + 1 ;
884 p_matrice_nouveau[i] = 0x0 ;
888 p_matrice_nouveau[index] = &ti ;
899 cout <<
"Param::add_matrice_mod : the position " << index
900 <<
" is already occupied !" << endl ;
940 if (index >=
n_cmp) {
942 int n_cmp_nouveau = index + 1 ;
943 const Cmp** p_cmp_nouveau =
new const Cmp*[n_cmp_nouveau] ;
947 for (
int i=0; i<
n_cmp; i++) {
948 p_cmp_nouveau[i] =
p_cmp[i] ;
952 for (
int i=
n_cmp; i<index; i++) {
953 p_cmp_nouveau[i] = 0x0 ;
957 p_cmp_nouveau[index] = &ti ;
961 p_cmp = p_cmp_nouveau ;
962 n_cmp = n_cmp_nouveau ;
967 if (
p_cmp[index] != 0x0) {
968 cout <<
"Param::add_cmp : the position " << index
969 <<
" is already occupied !" << endl ;
986 assert(index <
n_cmp) ;
988 return *(
p_cmp[index]) ;
1011 int n_cmp_nouveau = index + 1 ;
1012 Cmp** p_cmp_nouveau =
new Cmp*[n_cmp_nouveau] ;
1022 p_cmp_nouveau[i] = 0x0 ;
1026 p_cmp_nouveau[index] = &ti ;
1037 cout <<
"Param::add_cmp_mod : the position " << index
1038 <<
" is already occupied !" << endl ;
1054 assert(index >= 0) ;
1080 int n_tenseur_nouveau = index + 1 ;
1081 const Tenseur** p_tenseur_nouveau =
new const Tenseur*[n_tenseur_nouveau] ;
1091 p_tenseur_nouveau[i] = 0x0 ;
1095 p_tenseur_nouveau[index] = &ti ;
1106 cout <<
"Param::add_tenseur : the position " << index
1107 <<
" is already occupied !" << endl ;
1123 assert(index >= 0) ;
1149 int n_tenseur_nouveau = index + 1 ;
1160 p_tenseur_nouveau[i] = 0x0 ;
1164 p_tenseur_nouveau[index] = &ti ;
1175 cout <<
"Param::add_tenseur_mod : the position " << index
1176 <<
" is already occupied !" << endl ;
1192 assert(index >= 0) ;
1216 if (index >=
n_map) {
1218 int n_map_nouveau = index + 1 ;
1219 const Map** p_map_nouveau =
new const Map*[n_map_nouveau] ;
1223 for (
int i=0; i<
n_map; i++) {
1224 p_map_nouveau[i] =
p_map[i] ;
1228 for (
int i=
n_map; i<index; i++) {
1229 p_map_nouveau[i] = 0x0 ;
1233 p_map_nouveau[index] = &mi ;
1237 p_map = p_map_nouveau ;
1238 n_map = n_map_nouveau ;
1243 if (
p_map[index] != 0x0) {
1244 cout <<
"Param::add_map : the position " << index
1245 <<
" is already occupied !" << endl ;
1249 p_map[index] = &mi ;
1261 assert(index >= 0) ;
1262 assert(index <
n_map) ;
1264 return *(
p_map[index]) ;
1286 int n_mtbl_cf_nouveau = index + 1 ;
1287 const Mtbl_cf** p_mtbl_cf_nouveau =
1288 new const Mtbl_cf*[n_mtbl_cf_nouveau] ;
1298 p_mtbl_cf_nouveau[i] = 0x0 ;
1302 p_mtbl_cf_nouveau[index] = &mi ;
1313 cout <<
"Param::add_mtbl_cf : the position " << index
1314 <<
" is already occupied !" << endl ;
1330 assert(index >= 0) ;
1355 int n_scalar_nouveau = index + 1 ;
1356 const Scalar** p_scalar_nouveau =
new const Scalar*[n_scalar_nouveau] ;
1361 p_scalar_nouveau[i] =
p_scalar[i] ;
1365 for (
int i=
n_scalar; i<index; i++) {
1366 p_scalar_nouveau[i] = 0x0 ;
1370 p_scalar_nouveau[index] = &ti ;
1381 cout <<
"Param::add_scalar : the position " << index
1382 <<
" is already occupied !" << endl ;
1398 assert(index >= 0) ;
1424 int n_scalar_nouveau = index + 1 ;
1425 Scalar** p_scalar_nouveau =
new Scalar*[n_scalar_nouveau] ;
1435 p_scalar_nouveau[i] = 0x0 ;
1439 p_scalar_nouveau[index] = &ti ;
1450 cout <<
"Param::add_scalar_mod : the position " << index
1451 <<
" is already occupied !" << endl ;
1467 assert(index >= 0) ;
1493 int n_tensor_nouveau = index + 1 ;
1494 const Tensor** p_tensor_nouveau =
new const Tensor*[n_tensor_nouveau] ;
1499 p_tensor_nouveau[i] =
p_tensor[i] ;
1503 for (
int i=
n_tensor; i<index; i++) {
1504 p_tensor_nouveau[i] = 0x0 ;
1508 p_tensor_nouveau[index] = &ti ;
1519 cout <<
"Param::add_tensor : the position " << index
1520 <<
" is already occupied !" << endl ;
1536 assert(index >= 0) ;
1562 int n_tensor_nouveau = index + 1 ;
1563 Tensor** p_tensor_nouveau =
new Tensor*[n_tensor_nouveau] ;
1573 p_tensor_nouveau[i] = 0x0 ;
1577 p_tensor_nouveau[index] = &ti ;
1588 cout <<
"Param::add_tensor_mod : the position " << index
1589 <<
" is already occupied !" << endl ;
1605 assert(index >= 0) ;
1631 int n_etoile_nouveau = index + 1 ;
1632 const Etoile** p_etoile_nouveau =
new const Etoile*[n_etoile_nouveau] ;
1637 p_etoile_nouveau[i] =
p_etoile[i] ;
1641 for (
int i=
n_etoile; i<index; i++) {
1642 p_etoile_nouveau[i] = 0x0 ;
1646 p_etoile_nouveau[index] = &eti ;
1657 cout <<
"Param::add_etoile : the position " << index
1658 <<
" is already occupied !" << endl ;
1674 assert(index >= 0) ;
1697 int n_star_nouveau = index + 1 ;
1698 const Star** p_star_nouveau =
new const Star*[n_star_nouveau] ;
1702 for (
int i=0; i<
n_star; i++) {
1703 p_star_nouveau[i] =
p_star[i] ;
1707 for (
int i=
n_star; i<index; i++) {
1708 p_star_nouveau[i] = 0x0 ;
1712 p_star_nouveau[index] = &eti ;
1716 p_star = p_star_nouveau ;
1717 n_star = n_star_nouveau ;
1722 if (
p_star[index] != 0x0) {
1723 cout <<
"Param::add_star : the position " << index
1724 <<
" is already occupied !" << endl ;
1740 assert(index >= 0) ;
1743 return *(
p_star[index]) ;
int n_mtbl_cf
Number of Mtbl_cf 's.
Cmp ** p_cmp_mod
Array (size n_cmp_mod ) of the modifiable Cmp 's addresses.
const Tensor & get_tensor(int position=0) const
Returns the reference of a Tensor stored in the list.
int get_n_cmp() const
Returns the number of Cmp 's addresses in the list.
void add_tbl_mod(Tbl &ti, int position=0)
Adds the address of a new modifiable Tbl to the list.
int get_n_cmp_mod() const
Returns the number of modifiable Cmp 's addresses in the list.
Base class for stars *** DEPRECATED : use class Star instead ***.
void add_tensor(const Tensor &ti, int position=0)
Adds the address of a new Tensor to the list.
int get_n_scalar_mod() const
Returns the number of modifiable Scalar 's addresses in the list.
const Etoile & get_etoile(int position=0) const
Returns the reference of a Etoile stored in the list.
const Cmp & get_cmp(int position=0) const
Returns the reference of a Cmp stored in the list.
const Tenseur & get_tenseur(int position=0) const
Returns the reference of a Tenseur stored in the list.
void add_matrice(const Matrice &ti, int position=0)
Adds the address of a new Matrice to the list.
const Cmp ** p_cmp
Array (size n_cmp ) of the Cmp 's addresses.
void add_tenseur_mod(Tenseur &ti, int position=0)
Adds the address of a new modifiable Tenseur to the list.
double & get_double_mod(int position=0) const
Returns the reference of a stored modifiable double .
Tenseur & get_tenseur_mod(int position=0) const
Returns the reference of a modifiable Tenseur stored in the list.
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
const double ** p_double
Array (size n_double ) of the double 's addresses.
void add_int(const int &n, int position=0)
Adds the address of a new int to the list.
int get_n_matrice_mod() const
Returns the number of modifiable Matrice 's addresses in the list.
int n_matrice
Number of Matrice 's.
int get_n_tenseur_mod() const
Returns the number of modifiable Tenseur 's addresses in the list.
int get_n_tensor() const
Returns the number of Tensor 's addresses in the list.
int get_n_star() const
Returns the number of Star 's addresses in the list.
Tensor field of valence 0 (or component of a tensorial field).
const Star & get_star(int position=0) const
Returns the reference of a Star stored in the list.
void add_matrice_mod(Matrice &ti, int position=0)
Adds the address of a new modifiable Matrice to the list.
Base class for coordinate mappings.
int n_cmp
Number of Cmp 's.
int n_tenseur_mod
Number of modifiable Tenseur 's.
const Map & get_map(int position=0) const
Returns the reference of a Map stored in the list.
Basic integer array class.
Tenseur ** p_tenseur_mod
Array (size n_tenseur_mod ) of the modifiable Tenseur 's addresses.
int n_itbl
Number of Itbl 's.
void add_mtbl_cf(const Mtbl_cf &mi, int position=0)
Adds the address of a new Mtbl_cf to the list.
int n_tensor
Number of Tensor 's.
void clean_all()
Deletes all the objects stored as modifiables, i.e.
int n_int_mod
Number of modifiable int 's (integers).
void add_double_mod(double &x, int position=0)
Adds the address of a new modifiable double to the list.
int get_n_etoile() const
Returns the number of Etoile 's addresses in the list.
void add_itbl_mod(Itbl &ti, int position=0)
Adds the address of a new modifiable Itbl to the list.
int n_double
Number of double 's (double precis.
Cmp & get_cmp_mod(int position=0) const
Returns the reference of a modifiable Cmp stored in the list.
void add_star(const Star &eti, int position=0)
Adds the address of a new Star to the list.
const Tbl & get_tbl(int position=0) const
Returns the reference of a Tbl stored in the list.
const Scalar & get_scalar(int position=0) const
Returns the reference of a Scalar stored in the list.
Tensor & get_tensor_mod(int position=0) const
Returns the reference of a modifiable Tensor stored in the list.
int get_n_double() const
Returns the number of stored double 's addresses.
int get_n_int() const
Returns the number of stored int 's addresses.
const int & get_int(int position=0) const
Returns the reference of a int stored in the list.
int get_n_tenseur() const
Returns the number of Tenseur 's addresses in the list.
void add_cmp(const Cmp &ti, int position=0)
Adds the address of a new Cmp to the list.
void add_map(const Map &mi, int position=0)
Adds the address of a new Map to the list.
int ** p_int_mod
Array (size n_int_mod ) of the modifiable int 's addresses.
const Map ** p_map
Array (size n_map ) of the Map 's addresses.
int n_star
Number of Star 's.
int n_double_mod
Number of modifiable double 's (double precis.
int get_n_itbl_mod() const
Returns the number of modifiable Itbl 's addresses in the list.
int get_n_itbl() const
Returns the number of Itbl 's addresses in the list.
int get_n_tensor_mod() const
Returns the number of modifiable Tensor 's addresses in the list.
const Tbl ** p_tbl
Array (size n_tbl ) of the Tbl 's addresses.
void add_tensor_mod(Tensor &ti, int position=0)
Adds the address of a new modifiable Tensor to the list.
void add_tbl(const Tbl &ti, int position=0)
Adds the address of a new Tbl to the list.
Tbl & get_tbl_mod(int position=0) const
Returns the reference of a modifiable Tbl stored in the list.
int get_n_double_mod() const
Returns the number of stored modifiable double 's addresses.
const Star ** p_star
Array (size n_star ) of the Star 's addresses.
Scalar ** p_scalar_mod
Array (size n_scalar_mod ) of the modifiable Scalar 's addresses.
int & get_int_mod(int position=0) const
Returns the reference of a modifiable int stored in the list.
const Scalar ** p_scalar
Array (size n_scalar ) of the Scalar 's addresses.
Itbl & get_itbl_mod(int position=0) const
Returns the reference of a stored modifiable Itbl .
Tensor ** p_tensor_mod
Array (size n_tensor_mod ) of the modifiable Tensor 's addresses.
int n_itbl_mod
Number of modifiable Itbl 's.
int n_tenseur
Number of Tenseur 's.
int n_tbl
Number of Tbl 's.
int get_n_int_mod() const
Returns the number of modifiable int 's addresses in the list.
int n_int
Number of int 's (integers).
int get_n_map() const
Returns the number of Map 's addresses in the list.
int n_matrice_mod
Number of modifiable Matrice 's.
int n_cmp_mod
Number of modifiable Cmp 's.
int get_n_tbl() const
Returns the number of Tbl 's addresses in the list.
void add_etoile(const Etoile &eti, int position=0)
Adds the address of a new Etoile to the list.
const Mtbl_cf & get_mtbl_cf(int position=0) const
Returns the reference of a Mtbl_cf stored in the list.
const Mtbl_cf ** p_mtbl_cf
Array (size n_mtbl_cf ) of the Mtbl_cf 's addresses.
int get_n_tbl_mod() const
Returns the number of modifiable Tbl 's addresses in the list.
void add_scalar(const Scalar &ti, int position=0)
Adds the address of a new Scalar to the list.
void add_scalar_mod(Scalar &ti, int position=0)
Adds the address of a new modifiable Scalar to the list.
int n_etoile
Number of Etoile 's.
int n_scalar
Number of Scalar 's.
int get_n_mtbl_cf() const
Returns the number of Mtbl_cf 's addresses in the list.
const Tenseur ** p_tenseur
Array (size n_tenseur ) of the Tenseur 's addresses.
int get_n_matrice() const
Returns the number of Matrice 's addresses in the list.
int n_scalar_mod
Number of modifiable Scalar 's.
Scalar & get_scalar_mod(int position=0) const
Returns the reference of a modifiable Scalar stored in the list.
void add_double(const double &x, int position=0)
Adds the the address of a new double to the list.
const Etoile ** p_etoile
Array (size n_etoile ) of the Etoile 's addresses.
int n_tbl_mod
Number of modifiable Tbl 's.
Coefficients storage for the multi-domain spectral method.
Matrice & get_matrice_mod(int position=0) const
Returns the reference of a modifiable Matrice stored in the list.
const Itbl & get_itbl(int position=0) const
Returns the reference of a Itbl stored in the list.
void add_tenseur(const Tenseur &ti, int position=0)
Adds the address of a new Tenseur to the list.
const Itbl ** p_itbl
Array (size n_itbl ) of the Itbl 's addresses.
const Matrice & get_matrice(int position=0) const
Returns the reference of a Matrice stored in the list.
double ** p_double_mod
Array (size n_double_mod ) of the double 's addresses.
const double & get_double(int position=0) const
Returns the reference of a double stored in the list.
void add_cmp_mod(Cmp &ti, int position=0)
Adds the address of a new modifiable Cmp to the list.
void add_itbl(const Itbl &ti, int position=0)
Adds the address of a new Itbl to the list.
const Tensor ** p_tensor
Array (size n_tensor ) of the Tensor 's addresses.
const int ** p_int
Array (size n_int ) of the int 's addresses.
int get_n_scalar() const
Returns the number of Scalar 's addresses in the list.
Tbl ** p_tbl_mod
Array (size n_tbl_mod ) of the modifiable Tbl 's addresses.
const Matrice ** p_matrice
Array (size n_matrice ) of the Matrice 's addresses.
Tensor handling *** DEPRECATED : use class Tensor instead ***.
void add_int_mod(int &n, int position=0)
Adds the address of a new modifiable int to the list.
int n_map
Number of Map 's.
int n_tensor_mod
Number of modifiable Tensor 's.
Matrice ** p_matrice_mod
Array (size n_matrice_mod ) of the modifiable Matrice 's addresses.
Param()
Default constructor is the only constructor.
Itbl ** p_itbl_mod
Array (size n_itbl_mod ) of the modifiable Itbl 's addresses.