Corrected an unit coversion issue from forcing.

Now noticing these because of switching to gcc 8.
This commit is contained in:
Miikka Vaisala
2019-07-08 16:43:37 +08:00
parent df1ba6264a
commit f9be905703

View File

@@ -246,7 +246,7 @@ run_simulation(void)
// Generate e for k. Needed for the sake of isotrophy.
AcReal3 e_force;
if ((k_force.y == 0.0) && (k_force.z == 0.0)) {
if ((k_force.y == AcReal(0.0)) && (k_force.z == AcReal(0.0))) {
e_force = (AcReal3){0.0, 1.0, 0.0};
}
else {