28char save_profile_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Non_class_members/Graphics/save_profile.C,v 1.3 2016/09/19 15:26:23 j_novak Exp $" ;
56void save_profile(
const Scalar& uu,
double r_min,
double r_max,
57 double theta,
double phi,
const char* filename) {
61 double hr = (r_max - r_min) /
double(npt-1) ;
63 ofstream file(filename) ;
65 for (
int i=0; i<npt; i++) {
67 double r = hr * i + r_min ;
69 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