Skip to content

Commit

Permalink
Sigh, more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich committed Oct 26, 2023
1 parent 55dc420 commit 1b8b22e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glue-codes/openfast-cpp/src/OpenFAST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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 = driverDt*epsFactor;
const double eps = fastDt*epsFactor;
return static_cast<int>((driverDt*eps)/fastDt);
}

Expand Down Expand Up @@ -1427,7 +1427,7 @@ void fast::OpenFAST::step(bool writeFiles) {
}

if (writeFiles) {
int tStepRatio = time_step_ratio(dtFAST, dtFAST);
int tStepRatio = time_step_ratio(dtFAST, dtDriver);
for (int iTurb=0; iTurb < nTurbinesProc; iTurb++) {
if ( (((nt_global - ntStart) % (restartFreq_ * tStepRatio)) == 0 ) && (nt_global != ntStart) ) {
turbineData[iTurb].FASTRestartFileName = " "; // if blank, it will use FAST convention <RootName>.nt_global
Expand Down

0 comments on commit 1b8b22e

Please sign in to comment.