Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -2479,7 +2479,7 @@ void fast::OpenFAST::readRestartFile(int iTurbLoc, int n_t_global) {
//Find the file and open it in append mode
std::stringstream rstfile_ss;
rstfile_ss << "turb_" ;
rstfile_ss << std::setfill('0') << std::setw(2) << turbineMapProcToGlob[iTurbLoc];
rstfile_ss << std::setfill('0') << std::setw(2) << turbineData[iTurbLoc].TurbID;
rstfile_ss << "_rst.nc";
std::string rst_filename = rstfile_ss.str();
int ierr = nc_open(rst_filename.c_str(), NC_NOWRITE, &ncid);
Expand Down Expand Up @@ -2903,7 +2903,7 @@ void fast::OpenFAST::writeRestartFile(int iTurbLoc, int n_t_global) {
//Find the file and open it in append mode
std::stringstream rstfile_ss;
rstfile_ss << "turb_" ;
rstfile_ss << std::setfill('0') << std::setw(2) << turbineMapProcToGlob[iTurbLoc];
rstfile_ss << std::setfill('0') << std::setw(2) << turbineData[iTurbLoc].TurbID;
rstfile_ss << "_rst.nc";
std::string rst_filename = rstfile_ss.str();
int ierr = nc_open(rst_filename.c_str(), NC_WRITE, &ncid);
Expand Down