forked from gyoto/Gyoto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.lorene
53 lines (40 loc) · 1.74 KB
/
README.lorene
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
*** Activating LORENE in Gyoto ***
Building the libgyoto-lorene plug-in
3+1 metrics support in Gyoto is implemented in the lorene plug-in,
based on the LORENE library.
I- BUILDING TOGETHER WITH GYOTO
===============================
To enable it at build time, download LORENE from
http://www.lorene.obspm.fr/, compile liblorene.a with the -fPIC CFLAG
(i.e. check that the CFLAG variable defined in LORENE's local_settings
file contains "-fPIC"), and set the HOME_LORENE variable according to
the LORENE manual.
If HOME_LORENE is defined when compiling Gyoto, the lorene plug-in is
automatically built and installed.
II- TESTING LIBGYOTO-LORENE
============================
Two example files are provided in doc/examples/:
example-*-rotstar3_1.xml.
They allow to ray-trace a moving/motionless star orbiting in the space-time
of a relativistic rotating star.
To run these examples:
1- Run make in $HOME_LORENE/Codes/Nrotstar:
$ cd $HOME_LORENE/Codes/Nrotstar
$ make
2- Prepare parameter files par_eos.d and par_rot.d, for instance
$ cp Parameters/GR/Kepler/*.d ./
3- Run the executable nrotstar to obtain the result file resu.d
$ ./nrotstar
4- Update the file location in example-*-rotstar3_1.xml or copy resu.d
to the Gyoto examples directory:
$ cd -
$ cp $HOME_LORENE/Codes/Nrotstar/resu.d doc/examples/
5- Run GYOTO with example-*-rotstar3_1.xml. Assuming Gyoto is
installed:
$ gyoto doc/examples/example-fixedstar_rotstar3_1.xml out1.fits
$ gyoto doc/examples/example-movingstar_rotstar3_1.xml out2.fits
If gyoto is not installed replace "gyoto" above by:
- under Linux:
LD_LIBRARY_PATH=lib:$LD_LIBRARY_PATH bin/gyoto
- under Mac OS X:
DYLD_LIBRARY_PATH=lib:$DYLD_LIBRARY_PATH bin/gyoto