Debian Codegraph @

Export/MagNS/README

raw
1
2 1/ Description of the various codes
3 ================================
4
5 read_mag_ns: code for reading a binary file containing data from a spectral computation
6 of a rotating magnetized neutron stars with Lorene and exporting
7 all the fields on a Cartesian grid.
8
9 2/ Documentation
10 =============
11
12 No documentation for the moment... sorry!
13
14 3/ Compilation
15 ===========
16
17 Typing
18
19 gmake
20
21 will produce the executable read_mag_ns in a non-optimized version for
22 debugging purposes. To get an optimized version for production purposes
23 type instead
24
25 gmake -f Makefile_O2
26
27 You can clear everything by
28
29 gmake uninstall
30
31
32 4/ Input parameters
33 ================
34
35 The code read_mag_ns needs one input file:
36
37 read_mag_ns.par : parameters of the Cartesian grid and name of the spectral data file
38
39 The spectral data files resulting from Lorene computations can be obtained by
40 running the code magstar in Lorene/Codes/Magstar
41 After running magstar, copy the file resu.d to this directory and specify its
42 name in read_mag_ns.par (test_data.d by default).
43
44 5/ Running
45 =======
46
47 Simply type
48
49 read_mag_ns
50
51 The output files are:
52
53 inib.d : data on the Cartesian grid in a binary format; can be used as input in
54 the constructor Mag_NS::Mag_NS(FILE* ) for further processing
55
56 inif.d : data on the Cartesian grid in a formatted format; can be used as input in
57 the constructor Mag_NS::Mag_NS(ifstream& ) for further processing
58
59
60