[ET Trac] [Einstein Toolkit] #51: M_PI definition not always available to wavetoy-loopcontrol.c
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Tue Nov 23 21:22:42 CST 2010
#51: M_PI definition not always available to wavetoy-loopcontrol.c
--------------------------------------------+-------------------------------
Reporter: richard.oshaughnessy@… | Owner: eschnett
Type: defect | Status: closed
Priority: minor | Milestone:
Component: Cactus | Version: ET_2010_06
Resolution: fixed | Keywords: c99
--------------------------------------------+-------------------------------
Changes (by eschnett):
* status: assigned => closed
* resolution: => fixed
Comment:
To my knowledge, M_PI is not part of ANSI C, but is part of POSIX. Some
compilers disable POSIX compatibility by default. The compiler
configurations that we distribute e.g. with the Simulation Factory
<http://simfactory.org/> should contain these settings. These may also be
good examples for which settings your compiler requires.
I am not going to modify wavetoy-loopcontrol.c since there is nothing one
can do in the source code (except not using M_PI); rather, the compiler
options need to be changed.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/51#comment:2>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list