Skip to content

Commit

Permalink
One more typo
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich committed Oct 27, 2023
1 parent 72c1d4c commit de1ce32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glue-codes/openfast-cpp/src/OpenFAST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>((driverDt*eps)/fastDt);
return static_cast<int>((driverDt+eps)/fastDt);
}

//Constructor
Expand Down

0 comments on commit de1ce32

Please sign in to comment.