The Gas Dynamics Toolkit (GDTk) is a set of software tools for simulating high speed fluid flow, maintained at The University of Queensland and the University of Southern Queensland, Australia.
The pow overload in complex.d current uses a for loop when called with an integer exponent, which causes it to return instantly when given a negative exponent:
number x = 10.0;
T = pow(x, -2)
writefln("T %e ", T)
>>> 10.0
This was causing all kinds of trouble in the old 2T argon model, and might be a problem elsewhere.
The pow overload in complex.d current uses a for loop when called with an integer exponent, which causes it to return instantly when given a negative exponent:
This was causing all kinds of trouble in the old 2T argon model, and might be a problem elsewhere.