46 assert( l<mg->get_nzone() ) ;
53 resu = alpha.
val_point(l, xi, theta, pphi) * xi ;
64 cout <<
"Map_eps::val_r : Compactified domain not allowed !" << endl;
70 cout <<
"Map_eps::val_r: unknown type_r ! " << endl ;
82 void Map_eps::val_lx(
double rr,
double theta,
double pphi,
int& lz,
double& xi)
const {
89 for (
int l=0; l<nz; l++) {
105 if ((rr - rmin >= -1.e-14*fabs(rmin)) && ( rr <= rmax )) {
113 cout.setf(ios::showpoint);
114 cout <<
"Map_eps::val_lx: the domain containing r = " << rr <<
115 " has not been found ! " 135 xi = rr / alpha.
val_point(lz,1.,theta,pphi) ;
146 cout <<
"Map_eps::val_lx : Compactified domain not allowed !" << endl;
152 cout <<
"Map_eps::val_lx: unknown type_r ! " << endl ;
161 int& lz,
double& xi)
const {
163 val_lx(rr, theta, pphi, lz, xi) ;
175 return val_r(l, xi, (+
tet)(l,k,j,0), (+
phi)(l,k,j,0)) ;
184 int& l,
double& xi)
const {
186 val_lx(rr, (+
tet)(l,k,j,0), (+
phi)(l,k,j,0), l, xi) ;
virtual double val_r_jk(int l, double xi, int j, int k) const
Returns the value of the radial coordinate r for a given and a given collocation point in in a give...
Coord tet
coordinate centered on the grid
Coord phi
coordinate centered on the grid
double val_point(int l, double x, double theta, double phi) const
Computes the value of the field represented by *this at an arbitrary point, by means of the spectral ...
int get_nzone() const
Returns the number of domains.
const Mg3d * mg
Pointer on the multi-grid Mgd3 on which this is defined.
virtual void val_lx_jk(double rr, int j, int k, const Param &par, int &l, double &xi) const
Computes the domain index l and the value of corresponding to a point of arbitrary r but collocation...
virtual double val_r(int l, double xi, double theta, double pphi) const
Returns the value of the radial coordinate r for a given in a given domain.
int get_type_r(int l) const
Returns the type of sampling in the radial direction in domain no.
virtual void val_lx(double rr, double theta, double pphi, int &l, double &xi) const
Computes the domain index l and the value of corresponding to a point given by its physical coordina...