On 09/09/2014 10:56 AM, Ian Hinder wrote:
> Hi,
>
> If I set
>
> CoordBase::dx = 40/48
>
> I get an error that dx should not be set to 0.  I assume that Cactus is doing 
> an integer division because the operands of the division have no fractional 
> part.  I think it should instead do a real division because the parameter is 
> real-valued.  Is this desirable and/or possible?
>
> I can work around the above problem by using
>
> CoordBase::dx = 40.0/48
>
It is possible, but (speaking for myself), I find the current behavior 
to be more expected and therefore less confusing.

Cheers,
Steve
_______________________________________________
Users mailing list
[email protected]
http://cactuscode.org/mailman/listinfo/users

Reply via email to