Skip to content

Commit

Permalink
correct the string error in file_io.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
junxiW committed Jul 27, 2023
1 parent d78b1ce commit 4781082
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ugbase/lib_grid/file_io/file_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static bool SaveGrid(Grid& grid, ISubsetHandler* psh,
{
string strName = filename;
if(strName.find(".ugx") != string::npos){
#if (defined UG_PARALLEL && defined NDEBUG)
#if (defined UG_PARALLEL && defined UG_DEBUG)
std::size_t found=strName.find(".ugx");
strName=strName.replace(found, 4, "");
strName=strName.append(std::to_string(pcl::ProcRank()));
Expand All @@ -436,9 +436,9 @@ static bool SaveGrid(Grid& grid, ISubsetHandler* psh,
}
}
else if(strName.find(".vtu") != string::npos){
#if (defined UG_PARALLEL && defined NDEBUG)
#if (defined UG_PARALLEL && defined UG_DEBUG)
std::size_t found=strName.find(".vtu");
strNname=strName.replace(found, 4, "");
strName=strName.replace(found, 4, "");
strName=strName.append(std::to_string(pcl::ProcRank()));
strName.append(".vtu");
#endif
Expand Down

0 comments on commit 4781082

Please sign in to comment.