[ET Trac] [Einstein Toolkit] #1736: avoid using Fotran compiler to link Riemann1d utility

Einstein Toolkit trac-noreply at einsteintoolkit.org
Wed Jan 14 05:10:33 CST 2015


#1736: avoid using Fotran compiler to link Riemann1d utility
-----------------------------------+----------------------------------------
 Reporter:  rhaas                  |       Owner:                     
     Type:  enhancement            |      Status:  new                
 Priority:  minor                  |   Milestone:                     
Component:  EinsteinToolkit thorn  |     Version:  development version
 Keywords:  GRHydro                |  
-----------------------------------+----------------------------------------
 GRHydro contains a Riemann1d utility which contains a Fotran90 main
 program. Unfortunately some of the libraries we link against use C++ code
 and the F90 compiler fails to link the executable (missing vtables,
 constructors etc). Since the C++ compiler cannot link the main executable
 either (since it does not know how to start the main Fotran program), the
 attached patch adds a stub main() function that calls the previous F90
 code as a subroutine. Most of the changes are to the build files to make a
 utility that needs preprocessed C code (for CCTK_FNAME) and contains
 multiple object files.

 Pull request is: https://bitbucket.org/einsteintoolkit/einsteinevolve
 /pull-request/5/grhydro-add-c-main-function-for-riemann1d/diff though
 given that this is a single commit I'd much rather have it be applied than
 to get a merge for a single commit.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1736>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list