New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34088 (closed submission: fixed)

Opened 14 months ago

Last modified 12 months ago

Gyoto (new port) -- General relativistic geodesic integration and ray-tracing

Reported by: thibaut.paumard@… Owned by: thibaut@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: Gyoto

Description

Dear macports developers,

Gyoto aims at providing a framework for computing orbits and ray-traced images in General relativity. It consists in a C++ shared library (libgyoto), utility programs (gyoto, gyotoy), and a plug-in for the Yorick programming language. Gyoto can be extended with plug-ins.

To test the software:

  • run gyotoy (mind the final "y") from the command-line. A window will be displayed, representing the orbit of a star around a Kerr black-hole.
  • unpack the source and go to ${worksrcpath}/doc/examples. You can ray-trace the XML sceneries (except the two "rotstar" ones) with:
    for file in * ; do gyoto $file ${file%xml}fits; done
    
    The result will be a bunch of FITS images which you can look at using a FITS viewer, for instance spydr from the yorick-spydr port:
    spydr *.fits
    
    You will see the gravitationally-lensed image of a number of objects in the vicinity of a Kerr black-hole.

I hope you will be able to accept this port.

Best regards, Thibaut.

Attachments

Portfile (2.3 KB) - added by thibaut.paumard@… 14 months ago.
science/Gyoto/Portfile

Change History

comment:1 Changed 14 months ago by cal@…

  • Status changed from new to assigned
  • Owner changed from macports-tickets@… to cal@…

This Portfile doesn't ensure the port is UsingTheRightCompiler to build; when using the setup described at the bottom of UsingTheRightCompiler, I get this:

cd lib; /usr/bin/make
make[1]: Entering directory `/opt/local/var/macports/build/_opt_dports_science_Gyoto/Gyoto/work/Gyoto-0.0.2/lib'
g++  -c -DGYOTO_USE_XERCES -DGYOTO_USE_CFITSIO -DGYOTO_PLUGIN_SFX=\"dylib\" -DGYOTO_PREFIX=\"/opt/local\" -DGYOTO_SOVERS=\"0.0.0\" -g -pedantic -Wall -W -Wundef -Wshadow -Wcast-qual -Wcast-align -Wconversion -Winline -Wabi -Woverloaded-virtual  -Wno-long-long -fPIC -I../include -I/opt/local/include -I/opt/local/include Astrobj.C
g++ -c -DGYOTO_USE_XERCES -DGYOTO_USE_CFITSIO -DGYOTO_PLUGIN_SFX="dylib" -DGYOTO_PREFIX="/opt/local" -DGYOTO_SOVERS="0.0.0" -g -pedantic -Wall -W -Wundef -Wshadow -Wcast-qual -Wcast-align -Wconversion -Winline -Wabi -Woverloaded-virtual -Wno-long-long -fPIC -I../include -I/opt/local/include -I/opt/local/include Astrobj.C
g++: Error: You should be using ${configure.cxx}
See http://trac.macports.org/wiki/UsingTheRightCompiler
make[1]: *** [Astrobj.o] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_dports_science_Gyoto/Gyoto/work/Gyoto-0.0.2/lib'
make: *** [lib] Error 2

Changed 14 months ago by thibaut.paumard@…

science/Gyoto/Portfile

comment:2 Changed 14 months ago by thibaut.paumard@…

Hi,

I updated the Portfile to use macport's preferred compiler and flags.

When I build with llvm though the checks fail, this may be because gyoto needs to be built using the same compiler as its dependencies (I'm running Snow Leopard, so LLVM is not the default). The failure is in a XERCES-C call.

To run the yorick part of the test suite with the installed Gyoto (as opposed to simply built):

port extract Gyoto
cd ~/.macports/opt/local/var/macports/build/_Users_${USER}_ports_science_Gyoto/Gyoto/work/Gyoto-0.0.3/yorick
yorick -i check.i

To run the full test suite on the built source,

cd ${worksrcpath}
sudo make check
spydr *.fits

Regards, Thibaut.

comment:3 Changed 12 months ago by thibaut@…

  • Status changed from assigned to new
  • Owner changed from cal@… to thibaut@…

comment:4 Changed 12 months ago by thibaut@…

  • Status changed from new to assigned

comment:5 Changed 12 months ago by thibaut@…

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in r94988

Note: See TracTickets for help on using tickets.