[Commits] [Einstein Toolkit] #51: M_PI definition not always available to wavetoy-loopcontrol.c

Einstein Toolkit trac at einsteintoolkit.org
Fri Oct 15 13:54:23 CDT 2010


#51: M_PI definition not always available to wavetoy-loopcontrol.c
-------------------------------------------+--------------------------------
 Reporter:  richard.oshaughnessy@…         |        Type:  defect
   Status:  new                            |    Priority:  minor 
Milestone:                                 |   Component:  Cactus
  Version:  ET_2010_06                     |    Keywords:  c99   
-------------------------------------------+--------------------------------
 In certain situations, I've hit the following error

 /home/oshaughn/Numerical/EinsteinToolkit/Cactus/arrangements/Carpet/LoopControl/src
 /wavetoy-loopcontrol.c:183: error: 'M_PI' undeclared (first use in this
 function)

 Per Frank: "it is probably finding math.h, but M_PI is not declared in
 that
 file, at least not from C99 on (it was before). It's strange that nobody
 found that before, C99 should be standard with Cactus nowadays."

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


More information about the Commits mailing list