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 4781082 commit 5337aac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ugbase/lib_grid/file_io/file_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ static bool SaveGrid(Grid& grid, ISubsetHandler* psh,
#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()));
int procRank=pcl::ProcRank();
strName=strName.append(std::to_string(procRank));
strName.append(".ugx");
#endif

Expand Down

0 comments on commit 5337aac

Please sign in to comment.