Opened 13 years ago

Closed 12 years ago

#34088 closed submission (fixed)

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

Reported by: paumard Owned by: paumard
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 (1)

Portfile (2.3 KB) - added by paumard 13 years ago.
science/Gyoto/Portfile

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…
Status: newassigned

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 13 years ago by paumard

Attachment: Portfile added

science/Gyoto/Portfile

comment:2 Changed 13 years ago by 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 years ago by paumard

Owner: changed from cal@… to thibaut@…
Status: assignednew

comment:4 Changed 12 years ago by paumard

Status: newassigned

comment:5 Changed 12 years ago by paumard

Resolution: fixed
Status: assignedclosed

Fixed in r94988

Note: See TracTickets for help on using tickets.