LORENE
valeur_x.C
1 /*
2  * Output computational coordinates \f$\xi\f$
3  *
4  * for:
5  * - Valeur
6  * - Mtbl_cf
7  */
8 
9 /*
10  * Copyright (c) 1999-2001 Jerome Novak
11  * Copyright (c) 1999-2001 Eric Gourgoulhon
12  *
13  * This file is part of LORENE.
14  *
15  * LORENE is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 2 of the License, or
18  * (at your option) any later version.
19  *
20  * LORENE is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with LORENE; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28  *
29  */
30 
31 
32 
33 
34 
35 // Headers C
36 #include <cassert>
37 
38 // Headers Lorene
39 #include "mtbl.h"
40 #include "valeur.h"
41 
42 namespace Lorene {
43 void Valeur::va_x() {
44 
45  // Protection
46  assert(etat != ETATNONDEF) ;
47 
48  for(int l=0; l<mg->get_nzone(); l++)
49  for(int k=0;k<mg->get_np(l);k++)
50  for(int j=0;j<mg->get_nt(l);j++)
51  for(int i=0;i<mg->get_nr(l);i++)
52  set(l,k,j,i) = mg->get_grille3d(l)->x[i];
53 
54 }
55 }
const Grille3d * get_grille3d(int l) const
Returns a pointer on the 3D mono-grid for domain no. l.
Definition: grilles.h:517
int get_np(int l) const
Returns the number of points in the azimuthal direction ( ) in domain no. l.
Definition: grilles.h:479
Lorene prototypes.
Definition: app_hor.h:67
double * x
Array of values of at the nr collocation points.
Definition: grilles.h:215
const Mg3d * mg
Multi-grid Mgd3 on which this is defined.
Definition: valeur.h:302
int get_nzone() const
Returns the number of domains.
Definition: grilles.h:465
int get_nr(int l) const
Returns the number of points in the radial direction ( ) in domain no. l.
Definition: grilles.h:469
void va_x()
Returns (r -sampling = RARE ) \ (r sampling = FIN ) \ (r -sampling = UNSURR )
Definition: valeur_x.C:43
int etat
Logical state (ETATNONDEF , ETATQCQ or ETATZERO ).
Definition: valeur.h:305
int get_nt(int l) const
Returns the number of points in the co-latitude direction ( ) in domain no. l.
Definition: grilles.h:474