From de1ce3280c95ed2f640577e6f2b2fb9668bcb53e Mon Sep 17 00:00:00 2001 From: psakiev Date: Thu, 26 Oct 2023 20:58:46 -0600 Subject: [PATCH] One more typo --- glue-codes/openfast-cpp/src/OpenFAST.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glue-codes/openfast-cpp/src/OpenFAST.cpp b/glue-codes/openfast-cpp/src/OpenFAST.cpp index 8eb8d9fd4f..263493326e 100644 --- a/glue-codes/openfast-cpp/src/OpenFAST.cpp +++ b/glue-codes/openfast-cpp/src/OpenFAST.cpp @@ -20,7 +20,7 @@ int time_step_ratio(double fastDt, double driverDt, double epsFactor=1e-6) // ensure that the ratio is robust to integer conversion by making sure it will always truncate down // provide an epsilon that is small relative to dtFast to help with integer conversion const double eps = fastDt*epsFactor; - return static_cast((driverDt*eps)/fastDt); + return static_cast((driverDt+eps)/fastDt); } //Constructor