59void save_profile(
const Scalar& uu,
double r_min,
double r_max,
60 double theta,
double phi,
const char* filename) {
64 double hr = (r_max - r_min) /
double(npt-1) ;
66 ofstream file(filename) ;
68 for (
int i=0; i<npt; i++) {
70 double r = hr * i + r_min ;
72 file <<
r <<
" " << uu.val_point(
r, theta,
phi) << endl ;
Tensor field of valence 0 (or component of a tensorial field).
Coord phi
coordinate centered on the grid
Coord r
r coordinate centered on the grid