102 assert( l<mg->get_nzone() ) ;
108 case FIN:
case RARE: {
114 resu = double(1) / (
alpha[l] * xi +
beta[l] ) ;
119 cout <<
"Map_af::val_r: unknown type_r ! " << endl ;
138 for (
int l=0; l<nz; l++) {
144 rmin = double(1)/rmin ;
145 rmax = double(1)/rmax ;
147 if ((rr - rmin >= -1.e-14*fabs(rmin)) && ( rr <= rmax )) {
155 cout.setf(ios::showpoint);
156 cout <<
"Map_af::val_lx: the domain containing r = " << rr <<
157 " has not been found ! " 159 for (
int l=0; l<nz; l++) {
161 if (
mg->
get_type_r(l) == UNSURR) rmin =
double(1)/rmin ;
163 cout <<
"domain " << l <<
" : r_min = " << rmin ;
165 if (
mg->
get_type_r(l) == UNSURR) rmax =
double(1)/rmax ;
166 cout <<
" : r_max = " << rmax << endl ;
176 case FIN:
case RARE: {
182 xi = ( double(1)/rr -
beta[lz] ) /
alpha[lz] ;
187 cout <<
"Map_af::val_lx: unknown type_r ! " << endl ;
196 int& lz,
double& xi)
const {
198 val_lx(rr, 0., 0., lz, xi) ;
210 return val_r(l, xi, 0., 0.) ;
219 int& l,
double& xi)
const {
221 val_lx(rr, 0., 0., par, l, xi) ;
double * alpha
Array (size: mg->nzone ) of the values of in each domain.
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.
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...
double * beta
Array (size: mg->nzone ) of the values of in each domain.
int get_nzone() const
Returns the number of domains.
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...
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...
const Mg3d * mg
Pointer on the multi-grid Mgd3 on which this is defined.
int get_type_r(int l) const
Returns the type of sampling in the radial direction in domain no.