grille_val.h
/*
* Definition of Lorene class Grille_val, Gval_cart and Gval_spher
*
*/
/*
* Copyright (c) 2001 Jerome Novak
*
* This file is part of LORENE.
*
* LORENE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* LORENE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LORENE; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef __GRILLE_VAL_H_
#define __GRILLE_VAL_H_
/*
* $Id: grille_val.h,v 1.11 2014/10/13 08:52:35 j_novak Exp $
* $Log: grille_val.h,v $
* Revision 1.11 2014/10/13 08:52:35 j_novak
* Lorene classes and functions now belong to the namespace Lorene.
*
* Revision 1.10 2014/10/06 15:09:39 j_novak
* Modified #include directives to use c++ syntax.
*
* Revision 1.9 2008/02/18 13:53:37 j_novak
* Removal of special indentation instructions.
*
* Revision 1.8 2007/11/02 16:49:12 j_novak
* Suppression of intermediate array for spectral summation.
*
* Revision 1.7 2005/06/22 09:09:38 lm_lin
*
* Grid wedding: convert from the old C++ object "Cmp" to "Scalar".
*
* Revision 1.6 2004/05/07 12:32:12 j_novak
* New summation from spectral to FD grid. Much faster!
*
* Revision 1.5 2004/03/22 13:12:41 j_novak
* Modification of comments to use doxygen instead of doc++
*
* Revision 1.4 2002/11/13 11:22:57 j_novak
* Version "provisoire" de l'interpolation (sommation depuis la grille
* spectrale) aux interfaces de la grille de Valence.
*
* Revision 1.3 2002/10/16 14:36:29 j_novak
* Reorganization of #include instructions of standard C++, in order to
* use experimental version 3 of gcc.
*
* Revision 1.2 2002/06/17 14:05:16 j_novak
* friend functions are now also declared outside the class definition
*
* Revision 1.1 2001/11/22 13:38:09 j_novak
* added Include files for Valencia objects: tbl_val.h and grille_val.h
*
*
* $Header: /cvsroot/Lorene/C++/Include/grille_val.h,v 1.11 2014/10/13 08:52:35 j_novak Exp $
*
*/
#include <cassert>
#include <cmath>
#include "tensor.h"
namespace Lorene {
class Grille_val {
friend class Tbl_val ;
// Data :
// -----
protected:
Dim_tbl dim ;
int nfantome ;
int type_t ;
int type_p ;
double *zrmin;
double *zrmax ;
public:
Tbl *zr;
Tbl *zri ;
// Constructors - Destructor
// -------------------------
protected:
Tbl* fait_grille1D(const double rmin, const double rmax, const int n) ;
Grille_val(const double, const double, const int n1,
const int fantome = 2) ;
Grille_val(const double, const double, const int n2, const int n1,
const int itype_t, const int fantome = 2) ;
Grille_val(const double, const double, const int n3, const int n2, const
int n1, const int itype_t, const int itype_p, const int
fantome = 2);
Grille_val(const Grille_val& ) ;
Grille_val(FILE* ) ;
virtual ~Grille_val() ;
// Mutators / assignment
// ---------------------
public:
void operator=(const Grille_val&) ;
// Accessors
// ---------
public:
int get_fantome() const {
return nfantome ;
} ;
int get_type_t() const {
return type_t ;
} ;
int get_type_p() const {
return type_p ;
} ;
int get_ndim() const {
return dim.ndim ;
} ;
int get_dim(const int i) const {
assert ( (i>=0) && (i<dim.ndim) ) ;
return dim.dim[i] ;
} ;
const Dim_tbl* get_dim_tbl() const {
return &dim ;
} ;
double get_zr(const int i) const {
assert (i>= -nfantome) ;
assert (i<dim.dim[0]+nfantome) ;
return zr->t[i+nfantome] ;
} ;
double get_zri(const int i) const {
assert (i>= -nfantome) ;
assert (i<dim.dim[0]+nfantome+1) ;
return zri->t[i+nfantome] ;
} ;
// Outputs
// -------
public:
virtual void sauve(FILE *) const ;
friend ostream& operator<<(ostream& , const Grille_val& ) ;
protected:
virtual ostream& operator>>(ostream& ) const ;
// Interpolation
// -------------
public:
virtual bool compatible(const Map* mp, const int lmax, const int lmin=0)
const = 0 ;
Tbl interpol1(const Tbl& rdep, const Tbl& rarr, const Tbl& fdep,
int flag, const int type_inter) const ;
virtual Tbl interpol2(const Tbl& fdep, const Tbl& rarr,
const Tbl& tetarr, const int type_inter) const = 0 ;
virtual Tbl interpol3(const Tbl& fdep, const Tbl& rarr,
const Tbl& tetarr, const Tbl& phiarr,
const int type_inter) const = 0 ;
virtual bool contenue_dans(const Map& mp, const int lmax, const int lmin=0)
const = 0 ;
protected:
void somme_spectrale1(const Scalar& meudon, double* t, int taille) const ;
virtual void somme_spectrale2(const Scalar& meudon, double* t, int taille) const = 0 ;
virtual void somme_spectrale3(const Scalar& meudon, double* t, int taille) const = 0 ;
};
ostream& operator<<(ostream& , const Grille_val& ) ;
//------------------------------------//
// class Gval_cart //
//------------------------------------//
class Gval_cart : public Grille_val {
friend class Tbl_val ;
// Data :
// -----
protected:
double *xmin ;
double *xmax ;
double *ymin ;
double *ymax ;
public:
Tbl *x ;
Tbl *xi ;
Tbl *y ;
Tbl *yi ;
// Constructors - Destructor
// -------------------------
Gval_cart(const double izmin, const double izmax, const int n1,
const int fantome = 2) ;
Gval_cart(const double ixmin, const double ixmax, const double izmin,
const double izmax, const int nx, const int nz, const int type_t,
const int fantome = 2) ;
Gval_cart(const double iymin, const double iymax, const double ixmin,
const double ixmax, const double izmin, const double izmax,
const int ny, const int nx, const int nz, const int itype_t,
const int itype_p, const int fantome = 2);
Gval_cart(const Gval_cart& ) ;
Gval_cart(FILE* ) ;
virtual ~Gval_cart() ;
// Mutators / assignment
// ---------------------
public:
void operator=(const Gval_cart&) ;
// Accessors
// ---------
public:
double get_x(const int i) const {
assert (i>= -nfantome) ;
assert (i<dim.dim[1]+nfantome) ;
assert (dim.ndim >= 2) ;
return (*x)(i+nfantome) ;
} ;
double get_y(const int i) const {
assert (i>= -nfantome) ;
assert (i<dim.dim[2]+nfantome) ;
assert (dim.ndim == 3) ;
return (*y)(i+nfantome) ;
} ;
double get_xi(const int i) const {
assert (i>= -nfantome) ;
assert (i<dim.dim[1]+nfantome+1) ;
assert (dim.ndim >= 2) ;
return (*xi)(i+nfantome) ;
} ;
double get_yi(const int i) const {
assert (i>= -nfantome) ;
assert (i<dim.dim[2]+nfantome+1) ;
assert (dim.ndim == 3) ;
return (*yi)(i+nfantome) ;
} ;
double get_xmin() const {
return *xmin ;
} ;
double get_xmax() const {
return *xmax ;
} ;
double get_ymin() const {
return *ymin ;
} ;
double get_ymax() const {
return *ymax ;
} ;
// Outputs
// -------
public:
virtual void sauve(FILE *) const ;
protected:
virtual ostream& operator>>(ostream& ) const ;
// Interpolation
// -------------
public:
virtual bool compatible(const Map* mp, const int lmax, const int lmin=0)
const ;
virtual Tbl interpol2(const Tbl& fdep, const Tbl& rarr,
const Tbl& tetarr, const int type_inter) const ;
Tbl interpol2c(const Tbl& xdep, const Tbl& zdep, const Tbl& fdep,
const Tbl& rarr, const Tbl& tetarr,
const int type_inter) const ;
virtual Tbl interpol3(const Tbl& fdep, const Tbl& rarr,
const Tbl& tetarr, const Tbl& phiarr,
const int type_inter) const ;
virtual bool contenue_dans(const Map& mp, const int lmax, const int lmin=0)
const ;
protected:
virtual void somme_spectrale2(const Scalar& meudon, double* t, int taille) const ;
virtual void somme_spectrale3(const Scalar& meudon, double* t, int taille) const ;
};
//------------------------------------//
// class Gval_spher //
//------------------------------------//
class Gval_spher : public Grille_val {
friend class Tbl_val ;
// Data :
// -----
public:
Tbl *tet ;
Tbl *teti ;
Tbl *phi ;
Tbl *phii ;
// Constructors - Destructor
// -------------------------
Gval_spher(const double irmin, const double irmax, const int nr,
const int fantome = 2) ;
Gval_spher(const double irmin, const double irmax, const int nt, const
int nr, const int type_t, const int fantome = 2) ;
Gval_spher(const double irmin, const double irmax, const int np, const
int nt, const int nr, const int itype_t, const int itype_p,
const int fantome = 2);
Gval_spher(const Gval_spher& ) ;
Gval_spher(FILE* ) ;
virtual ~Gval_spher() ;
// Mutators / assignment
// ---------------------
public:
void operator=(const Gval_spher&) ;
// Accessors
// ---------
public:
double get_tet(const int i) const {
assert (i>= -nfantome) ;
assert (dim.ndim >= 2) ;
assert (i<dim.dim[1]+nfantome) ;
return tet->t[i+nfantome] ;
} ;
double get_phi(const int i) const {
assert (i>= -nfantome) ;
assert (dim.ndim == 3) ;
assert (i<dim.dim[2]+nfantome) ;
return phi->t[i+nfantome] ;
} ;
double get_teti(const int i) const {
assert (i>= -nfantome) ;
assert (dim.ndim >= 2) ;
assert (i<dim.dim[1]+nfantome+1) ;
return teti->t[i+nfantome] ;
} ;
double get_phii(const int i) const {
assert (i>= -nfantome) ;
assert (dim.ndim == 3) ;
assert (i<dim.dim[2]+nfantome+1) ;
return phii->t[i+nfantome] ;
} ;
// Outputs
// -------
public:
virtual void sauve(FILE *) const ;
protected:
virtual ostream& operator>>(ostream& ) const ;
// Interpolation
// -------------
public:
virtual bool compatible(const Map* mp, const int lmax, const int lmin=0)
const ;
virtual Tbl interpol2(const Tbl& fdep, const Tbl& rarr, const Tbl& tetarr,
const int type_inter) const ;
virtual Tbl interpol3(const Tbl& fdep, const Tbl& rarr, const Tbl& tetarr,
const Tbl& phiarr, const int type_inter) const ;
virtual bool contenue_dans(const Map& mp, const int lmax, const int lmin=0)
const ;
protected:
virtual void somme_spectrale2(const Scalar& meudon, double* t, int taille) const ;
double* somme_spectrale2ri(const Scalar& meudon) const ;
double* somme_spectrale2ti(const Scalar& meudon) const ;
virtual void somme_spectrale3(const Scalar& meudon, double* t, int taille) const ;
void initialize_spectral_r(const Map& mp, const Base_val& base, int*& idom,
double*& chebnri) const ;
void initialize_spectral_theta(const Map& mp, const Base_val& base,
double*& tetlj) const ;
void initialize_spectral_phi(const Map& mp, const Base_val& base,
double*& expmk) const ;
};
}
#endif
Lorene::Base_val
Bases of the spectral expansions.
Definition base_val.h:322
Lorene::Dim_tbl
Storage of array dimensions.
Definition dim_tbl.h:99
Lorene::Grille_val
Base class for Godunov-type grids.
Definition grille_val.h:94
Lorene::Grille_val::get_type_t
int get_type_t() const
Returns the type of symmetry in .
Definition grille_val.h:173
Lorene::Grille_val::somme_spectrale2
virtual void somme_spectrale2(const Scalar &meudon, double *t, int taille) const =0
Same as before but for the 2D case.
Lorene::Grille_val::contenue_dans
virtual bool contenue_dans(const Map &mp, const int lmax, const int lmin=0) const =0
Checks if Grille_val is contained inside the spectral grid/mapping within the domains [lmin,...
Lorene::Grille_val::get_type_p
int get_type_p() const
Returns the type of symmetry in .
Definition grille_val.h:178
Lorene::Grille_val::get_fantome
int get_fantome() const
Returns the number of hidden cells.
Definition grille_val.h:168
Lorene::Grille_val::get_dim_tbl
const Dim_tbl * get_dim_tbl() const
Returns the Dim_tbl associated with the grid.
Definition grille_val.h:194
Lorene::Grille_val::type_p
int type_p
Type of symmetry in :
Definition grille_val.h:114
Lorene::Grille_val::nfantome
int nfantome
The number of hidden cells (same on each side).
Definition grille_val.h:104
Lorene::Grille_val::zrmin
double * zrmin
Lower boundary for z (or r ) direction.
Definition grille_val.h:117
Lorene::Grille_val::operator>>
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Definition grille_val.C:248
Lorene::Grille_val::operator<<
friend ostream & operator<<(ostream &, const Grille_val &)
Display.
Definition grille_val.C:243
Lorene::Grille_val::get_dim
int get_dim(const int i) const
Returns the size (without hidden cells).
Definition grille_val.h:188
Lorene::Grille_val::somme_spectrale1
void somme_spectrale1(const Scalar &meudon, double *t, int taille) const
Makes the sommation of the spectral basis functions to know the values of the function described by t...
Definition gval_from_spectral.C:90
Lorene::Grille_val::sauve
virtual void sauve(FILE *) const
Save in a file.
Definition grille_val.C:224
Lorene::Grille_val::compatible
virtual bool compatible(const Map *mp, const int lmax, const int lmin=0) const =0
Checks if the spectral grid and mapping are compatible with the Grille_val caracteristics for the int...
Lorene::Grille_val::dim
Dim_tbl dim
The dimensions of the grid.
Definition grille_val.h:102
Lorene::Grille_val::zr
Tbl * zr
Arrays containing the values of coordinate z (or r) on the nodes.
Definition grille_val.h:124
Lorene::Grille_val::interpol2
virtual Tbl interpol2(const Tbl &fdep, const Tbl &rarr, const Tbl &tetarr, const int type_inter) const =0
Performs 2D interpolation.
Lorene::Grille_val::get_zr
double get_zr(const int i) const
Read-only of a particular value of the coordinate z (or r ) at the nodes.
Definition grille_val.h:199
Lorene::Grille_val::~Grille_val
virtual ~Grille_val()
Destructor.
Definition grille_val.C:181
Lorene::Grille_val::interpol3
virtual Tbl interpol3(const Tbl &fdep, const Tbl &rarr, const Tbl &tetarr, const Tbl &phiarr, const int type_inter) const =0
Performs 3D interpolation.
Lorene::Grille_val::fait_grille1D
Tbl * fait_grille1D(const double rmin, const double rmax, const int n)
Auxilliary function used to allocate memory and construct 1D grid.
Definition grille_val.C:75
Lorene::Grille_val::type_t
int type_t
Type of symmetry in :
Definition grille_val.h:109
Lorene::Grille_val::Grille_val
Grille_val(const double, const double, const int n1, const int fantome=2)
Standard 1D constructor (the size is to be given without hidden cells).
Definition grille_val.C:87
Lorene::Grille_val::Tbl_val
friend class Tbl_val
Arrays defined on Godunov-type grids.
Definition grille_val.h:96
Lorene::Grille_val::operator=
void operator=(const Grille_val &)
Assignment to another Grille_val.
Definition grille_val.C:199
Lorene::Grille_val::zri
Tbl * zri
Arrays containing the values of coordinate z (or r) on the interfaces.
Definition grille_val.h:126
Lorene::Grille_val::get_ndim
int get_ndim() const
Returns the number of dimensions.
Definition grille_val.h:183
Lorene::Grille_val::get_zri
double get_zri(const int i) const
Read-only of a particular value of the coordinate z (or r ) at the interfaces.
Definition grille_val.h:207
Lorene::Grille_val::interpol1
Tbl interpol1(const Tbl &rdep, const Tbl &rarr, const Tbl &fdep, int flag, const int type_inter) const
Performs 1D interpolation.
Definition grille_val_interp.C:312
Lorene::Grille_val::zrmax
double * zrmax
Higher boundary for z (or r ) direction.
Definition grille_val.h:120
Lorene::Grille_val::somme_spectrale3
virtual void somme_spectrale3(const Scalar &meudon, double *t, int taille) const =0
Same as before but for the 3D case.
Lorene::Gval_cart::xmax
double * xmax
Higher boundary for x dimension.
Definition grille_val.h:335
Lorene::Gval_cart::xmin
double * xmin
Lower boundary for x dimension.
Definition grille_val.h:333
Lorene::Gval_cart::get_yi
double get_yi(const int i) const
Read-only of a particular value of the coordinate y at the interfaces.
Definition grille_val.h:454
Lorene::Gval_cart::get_x
double get_x(const int i) const
Read-only of a particular value of the coordinate x at the nodes.
Definition grille_val.h:427
Lorene::Gval_cart::get_ymax
double get_ymax() const
Returns the higher boundary for x.
Definition grille_val.h:478
Lorene::Gval_cart::ymin
double * ymin
Lower boundary for y dimension.
Definition grille_val.h:337
Lorene::Gval_cart::sauve
virtual void sauve(FILE *) const
Save in a file.
Definition grille_val.C:427
Lorene::Gval_cart::get_xmax
double get_xmax() const
Returns the higher boundary for x.
Definition grille_val.h:468
Lorene::Gval_cart::somme_spectrale2
virtual void somme_spectrale2(const Scalar &meudon, double *t, int taille) const
Makes the sommation of the spectral basis functions to know the values of the function described by t...
Definition gval_from_spectral.C:110
Lorene::Gval_cart::get_y
double get_y(const int i) const
Read-only of a particular value of the coordinate y at the nodes.
Definition grille_val.h:436
Lorene::Gval_cart::ymax
double * ymax
Higher boundary for y dimension.
Definition grille_val.h:339
Lorene::Gval_cart::interpol2c
Tbl interpol2c(const Tbl &xdep, const Tbl &zdep, const Tbl &fdep, const Tbl &rarr, const Tbl &tetarr, const int type_inter) const
Same as before, but the coordinates of source points are passed explicitly (xdep, zdep).
Definition grille_val_interp.C:476
Lorene::Gval_cart::get_ymin
double get_ymin() const
Returns the lower boundary for y.
Definition grille_val.h:473
Lorene::Gval_cart::interpol3
virtual Tbl interpol3(const Tbl &fdep, const Tbl &rarr, const Tbl &tetarr, const Tbl &phiarr, const int type_inter) const
Performs 3D interpolation.
Definition grille_val_interp.C:685
Lorene::Gval_cart::y
Tbl * y
Arrays containing the values of coordinate y on the nodes.
Definition grille_val.h:347
Lorene::Gval_cart::somme_spectrale3
virtual void somme_spectrale3(const Scalar &meudon, double *t, int taille) const
Same as before but for the 3D case.
Definition gval_from_spectral.C:158
Lorene::Gval_cart::operator=
void operator=(const Gval_cart &)
Assignment to another Gval_cart.
Definition grille_val.C:408
Lorene::Gval_cart::operator>>
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Definition grille_val.C:450
Lorene::Gval_cart::get_xi
double get_xi(const int i) const
Read-only of a particular value of the coordinate x at the interfaces.
Definition grille_val.h:445
Lorene::Gval_cart::interpol2
virtual Tbl interpol2(const Tbl &fdep, const Tbl &rarr, const Tbl &tetarr, const int type_inter) const
Performs 2D interpolation.
Definition grille_val_interp.C:470
Lorene::Gval_cart::get_xmin
double get_xmin() const
Returns the lower boundary for x.
Definition grille_val.h:463
Lorene::Gval_cart::xi
Tbl * xi
Arrays containing the values of coordinate x on the interfaces.
Definition grille_val.h:345
Lorene::Gval_cart::compatible
virtual bool compatible(const Map *mp, const int lmax, const int lmin=0) const
Checks if the spectral grid and mapping are compatible with the Grille_val caracteristics for the int...
Definition grille_val_interp.C:97
Lorene::Gval_cart::Tbl_val
friend class Tbl_val
Arrays defined on Godunov-type grids.
Definition grille_val.h:327
Lorene::Gval_cart::Gval_cart
Gval_cart(const double izmin, const double izmax, const int n1, const int fantome=2)
Standard 1D constructor.
Definition grille_val.C:279
Lorene::Gval_cart::~Gval_cart
virtual ~Gval_cart()
Destructor.
Definition grille_val.C:390
Lorene::Gval_cart::x
Tbl * x
Arrays containing the values of coordinate x on the nodes.
Definition grille_val.h:343
Lorene::Gval_cart::yi
Tbl * yi
Arrays containing the values of coordinate y on the interfaces.
Definition grille_val.h:349
Lorene::Gval_cart::contenue_dans
virtual bool contenue_dans(const Map &mp, const int lmax, const int lmin=0) const
Checks if Gval_cart is contained inside the spectral grid/mapping within the domains [lmin,...
Definition grille_val_interp.C:214
Lorene::Gval_spher::somme_spectrale3
virtual void somme_spectrale3(const Scalar &meudon, double *t, int taille) const
Same as before but for the 3D case.
Definition gval_from_spectral.C:366
Lorene::Gval_spher::compatible
virtual bool compatible(const Map *mp, const int lmax, const int lmin=0) const
Checks if the spectral grid and mapping are compatible with the Grille_val caracteristics for the int...
Definition grille_val_interp.C:168
Lorene::Gval_spher::contenue_dans
virtual bool contenue_dans(const Map &mp, const int lmax, const int lmin=0) const
Checks if Gval_spher is contained inside the spectral grid/mapping within the domains [lmin,...
Definition grille_val_interp.C:274
Lorene::Gval_spher::somme_spectrale2
virtual void somme_spectrale2(const Scalar &meudon, double *t, int taille) const
Makes the sommation of the spectral basis functions to know the values of the function described by t...
Definition gval_from_spectral.C:229
Lorene::Gval_spher::operator=
void operator=(const Gval_spher &)
Assignment to another Gval_spher.
Definition grille_val.C:638
Lorene::Gval_spher::get_teti
double get_teti(const int i) const
Read-only of a particular value of coordinate at the interfaces.
Definition grille_val.h:677
Lorene::Gval_spher::phi
Tbl * phi
Arrays containing the values of coordinate on the nodes.
Definition grille_val.h:591
Lorene::Gval_spher::teti
Tbl * teti
Arrays containing the values of coordinate on the interfaces.
Definition grille_val.h:589
Lorene::Gval_spher::get_tet
double get_tet(const int i) const
Read-only of a particular value of the coordinate at the nodes.
Definition grille_val.h:659
Lorene::Gval_spher::sauve
virtual void sauve(FILE *) const
Save in a file.
Definition grille_val.C:689
Lorene::Gval_spher::get_phi
double get_phi(const int i) const
Read-only of a particular value of the coordinate at the nodes.
Definition grille_val.h:668
Lorene::Gval_spher::operator>>
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Definition grille_val.C:709
Lorene::Gval_spher::somme_spectrale2ri
double * somme_spectrale2ri(const Scalar &meudon) const
Same as before but at radial grid interfaces.
Definition gval_from_spectral.C:278
Lorene::Gval_spher::interpol3
virtual Tbl interpol3(const Tbl &fdep, const Tbl &rarr, const Tbl &tetarr, const Tbl &phiarr, const int type_inter) const
Performs 3D interpolation.
Definition grille_val_interp.C:638
Lorene::Gval_spher::Tbl_val
friend class Tbl_val
Arrays defined on Godunov-type grids.
Definition grille_val.h:581
Lorene::Gval_spher::get_phii
double get_phii(const int i) const
Read-only of a particular value of coordinate at the interfaces.
Definition grille_val.h:686
Lorene::Gval_spher::phii
Tbl * phii
Arrays containing the values of coordinate on the interfaces.
Definition grille_val.h:593
Lorene::Gval_spher::Gval_spher
Gval_spher(const double irmin, const double irmax, const int nr, const int fantome=2)
Standard 1D constructor.
Definition grille_val.C:532
Lorene::Gval_spher::somme_spectrale2ti
double * somme_spectrale2ti(const Scalar &meudon) const
Same as before but at angular grid interfaces.
Definition gval_from_spectral.C:322
Lorene::Gval_spher::interpol2
virtual Tbl interpol2(const Tbl &fdep, const Tbl &rarr, const Tbl &tetarr, const int type_inter) const
Performs 2D interpolation.
Definition grille_val_interp.C:411
Lorene::Gval_spher::~Gval_spher
virtual ~Gval_spher()
Destructor.
Definition grille_val.C:624
Lorene::Gval_spher::tet
Tbl * tet
Arrays containing the values of coordinate on the nodes.
Definition grille_val.h:587
Lorene::Scalar
Tensor field of valence 0 (or component of a tensorial field).
Definition scalar.h:387
Lorene::Tbl
Basic array class.
Definition tbl.h:161
Lorene
Lorene prototypes.
Definition app_hor.h:64
Lorene::Map
Map(const Mg3d &)
Constructor from a multi-domain 3D grid.
Definition map.C:139