portability improvements for Solaris/OpenIndiana

This commit is contained in:
Axel Kohlmeyer
2023-01-19 14:27:32 -05:00
parent 75bd5b3d99
commit 819ab9f2ff
23 changed files with 398 additions and 393 deletions

View File

@ -267,7 +267,7 @@ template <int INTEGRATOR, bool ABCFLAG> int MinFire::run_iterate(int maxiter)
}
// calculate the factor abc, used for abcfire
abc = (1-pow(1-alpha, (ntimestep-last_negative)));
abc = (1.0-pow(1.0-alpha, (double)(ntimestep-last_negative)));
scale1 = (1.0 - alpha) / abc ;
if (fdotfall <= 1e-20) scale2 = 0.0;
else scale2 = (alpha * sqrt(vdotvall/fdotfall)) / abc;