28char des_prof_cmp_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Non_class_members/Graphics/des_prof_cmp.C,v 1.8 2014/10/13 08:53:22 j_novak Exp $" ;
80void des_profile(
const Cmp& uu,
double r_min,
double r_max,
81 double theta,
double phi,
const char* nomy,
const char* title) {
89 double hr = (r_max - r_min) /
double(npt-1) ;
91 for (
int i=0; i<npt; i++) {
93 double r = hr * i + r_min ;
95 uutab[i] = float(uu.val_point(r, theta, phi)) ;
99 float xmin = float(r_min / km) ;
100 float xmax = float(r_max / km) ;
102 const char* nomx =
"r [km]" ;
113 des_profile(uutab, npt, xmin, xmax, nomx, nomy, title) ;
119void des_profile(
const Cmp& uu,
double r_min,
double r_max,
double scale,
120 double theta,
double phi,
const char* nomx,
const char* nomy,
const char* title) {
123 const int npt = 400 ;
127 double hr = (r_max - r_min) /
double(npt-1) ;
129 for (
int i=0; i<npt; i++) {
131 double r = hr * i + r_min ;
133 uutab[i] = float(uu.val_point(r, theta, phi)) ;
137 float xmin = float(r_min * scale) ;
138 float xmax = float(r_max * scale) ;
154 des_profile(uutab, npt, xmin, xmax, nomx, nomy, title) ;
void des_profile(const float *uutab, int nx, float xmin, float xmax, const char *nomx, const char *nomy, const char *title, const char *device=0x0, int nbound=0, float *xbound=0x0)
Basic routine for drawing a single profile with uniform x sampling.
Standard units of space, time and mass.