From f9be9057034f10f44f1d193bb3674538ffd6367d Mon Sep 17 00:00:00 2001 From: Miikka Vaisala Date: Mon, 8 Jul 2019 16:43:37 +0800 Subject: [PATCH] Corrected an unit coversion issue from forcing. Now noticing these because of switching to gcc 8. --- src/standalone/simulation.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/standalone/simulation.cc b/src/standalone/simulation.cc index 83a9954..cdd925b 100644 --- a/src/standalone/simulation.cc +++ b/src/standalone/simulation.cc @@ -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 {