File: README.lorene

package info (click to toggle)
gyoto 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 8,588 kB
  • sloc: cpp: 33,490; sh: 18,775; xml: 2,633; python: 1,424; makefile: 681; ansic: 314
file content (53 lines) | stat: -rw-r--r-- 1,786 bytes parent folder | download | duplicates (5)
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