00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 char des_evolution_C[] = "$Header: /cvsroot/Lorene/C++/Source/Non_class_members/Graphics/des_evolution.C,v 1.4 2008/08/19 06:42:00 j_novak Exp $" ;
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #include "graphique.h"
00055 #include "evolution.h"
00056
00057
00058
00059
00060 void des_evol(const Evolution<double>& uu, const char* nomy,
00061 const char* title, int ngraph, const char* device,
00062 bool closeit, bool show_time, const char* nomx) {
00063
00064 int jmin = uu.j_min() ;
00065 int jmax = uu.j_max() ;
00066
00067 des_evol(uu, jmin, jmax, nomy, title, ngraph, device, closeit,
00068 show_time, nomx) ;
00069 }
00070
00071
00072
00073
00074
00075 void des_evol(const Evolution<double>& uu, int j_min, int j_max,
00076 const char* nomy, const char* title, int ngraph, const char* device,
00077 bool closeit, bool show_time, const char* nomx) {
00078
00079
00080 if (device != 0x0) {
00081 if ((device[0] == '/') && (device[1] == 'n')) return ;
00082 }
00083
00084 int npt = j_max - j_min + 1 ;
00085
00086 float* uutab = new float[npt] ;
00087 float* xtab = new float[npt] ;
00088
00089 for (int j=j_min; j<=j_max; j++) {
00090 uutab[j-j_min] = float(uu[j]) ;
00091 }
00092
00093 if (show_time) {
00094 for (int j=j_min; j<=j_max; j++) {
00095 xtab[j-j_min] = float(uu.get_time(j)) ;
00096 }
00097 }
00098 else{
00099 for (int j=j_min; j<=j_max; j++) {
00100 xtab[j-j_min] = float(j) ;
00101 }
00102 }
00103
00104 if (nomx == 0x0) nomx = (show_time) ? "t" : "j" ;
00105
00106 if (nomy == 0x0) nomy = "" ;
00107
00108 if (title == 0x0) title = "" ;
00109
00110 des_profile_mult(uutab, 1, npt, xtab, nomx, nomy, title, 0x0, ngraph,
00111 closeit, device) ;
00112
00113 delete [] uutab ;
00114
00115 }
00116