Debian Codegraph @

School05/Thursday/sphere.C

raw
1 #include "type_parite.h"
2 #include "nbr_spx.h"
3 #include "grilles.h"
4 #include "map.h"
5 #include "graphique.h"
6 #include "monopole.h"
7 #include "utilitaires.h"
8
9 int main() {
10
11 // THE GRID
12 int nz = 4 ;
13 int nt = 5 ;
14 int np = 4 ;
15 int nr = 45 ;
16 int typet = SYM ;
17 int typep = SYM ;
18
19 bool compact = true ;
20 Mg3d grid (nz, nr, nt, np, typet, typep, compact) ;
21
22 // THE MAPPING AFFINE
23 double r_lim = 1. ;
24 double* bounds = new double[nz+1] ;
25
26 bounds[0] = 0 ;
27 bounds[1] = r_lim ;
28 for (int i=2 ; i<nz ; i++)
29 bounds[i] = 2*bounds[i-1] ;
30 bounds[nz] = __infinity ;
31
32 Map_af mp (grid, bounds) ;
33 delete [] bounds ;
34
35 double beta ;
36 cout << "Beta ? " << endl ;
37 cin >> beta ;
38 while (cin.get() != '\n') ;
39
40 // The Monopole :
41 Monopole champs(mp, beta) ;
42
43 return EXIT_SUCCESS ;
44 }