75 ifstream file(file_name) ;
77 cerr <<
"Problem in opening the file " << file_name << endl ;
88 file.ignore(1000,
'\n') ;
92 cout <<
"nz : " << nz << endl ;
97 double explamb_last, nn_last, hh_last, press_last ;
98 for (
int l=0; l<nz; l++) {
99 cout <<
"l = " << l << endl ;
104 double* explamb_tab =
new double[nr] ;
105 double* nn_tab =
new double[nr] ;
106 double* hh_tab =
new double[nr] ;
107 double* press_tab =
new double[nr] ;
111 explamb_tab[0] = explamb_last ;
112 nn_tab[0] = nn_last ;
113 hh_tab[0] = hh_last ;
114 press_tab[0] = press_last ;
116 for (
int i=i_min; i<nr; i++) {
118 file >> explamb_tab[i] ;
121 file >> press_tab[i] ;
123 explamb_last = explamb_tab[nr-1] ;
124 nn_last = nn_tab[nr-1] ;
125 hh_last = hh_tab[nr-1] ;
126 press_last = press_tab[nr-1] ;
128 for (
int i=0; i<nr; i++) {
129 cout <<
" explamb, nn, hh : " << explamb_tab[i] <<
" " 130 << nn_tab[i] <<
" " << hh_tab[i] << endl ;
133 for (
int k=0; k<np; k++) {
134 for (
int j=0; j<nt; j++) {
135 for (
int i=0; i<nr; i++) {
144 delete[] explamb_tab ;
190 ost << endl <<
"Higgs monopole" << endl ;
virtual ~HiggsMonopole()
Destructor.
Scalar press
Fluid pressure.
int get_np(int l) const
Returns the number of points in the azimuthal direction ( ) in domain no. l.
Standard units of space, time and mass.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
Base class for coordinate mappings.
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field. ...
virtual void allocate_all()
Sets the logical state to ETATQCQ (ordinary state) and performs the memory allocation of all the elem...
virtual void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Base class for stationary compact objects (under development).
Scalar grr
Metric coefficient g_rr.
int get_nzone() const
Returns the number of domains.
char description2[256]
String describing the model.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
char description1[256]
String describing the model.
int get_nr(int l) const
Returns the number of points in the radial direction ( ) in domain no. l.
double & set_grid_point(int l, int k, int j, int i)
Setting the value of the field at a given grid point.
Scalar nn
Lapse function N .
Scalar hh
Higgs scalar field.
int get_nt(int l) const
Returns the number of points in the co-latitude direction ( ) in domain no. l.
Higgs monopole (under development).
HiggsMonopole(Map &mp_i, const char *file_name)
Standard constructor.
Map & mp
Mapping describing the coordinate system (r,theta,phi)