[ET Trac] [Einstein Toolkit] #1958: parfiles accept 1.0, 0.0, 1e3 for integer typed parameters
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Wed Oct 19 10:33:14 CDT 2016
#1958: parfiles accept 1.0, 0.0, 1e3 for integer typed parameters
-----------------------+----------------------------------------------------
Reporter: rhaas | Owner:
Type: defect | Status: new
Priority: optional | Milestone: ET_2016_11
Component: Cactus | Version: development version
Resolution: | Keywords:
-----------------------+----------------------------------------------------
Comment (by rhaas):
Ah, I see. That was not quite what I had intended with the ticket.
Removing integerize() will mean that:
{{{
intparam = ceil(1.23)
}}}
and
{{{
intparam = 100/2
}}}
fail, will it (since all arithmetic is done for doubles, yes?)?
The ticket is only asking (see comment:3) to enforce that constants
(literals whatever we want to call them) assigned to parameters must be
acceptable as "int" to C. Having an implicit conversion from real to int
is fine for expressions (with the check that the conversion is identical)
since all our expression math is done using reals and not using ints (is
it).
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1958#comment:14>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list