Skip to content

Commit bd9e5e9

Browse files
committed
bug: 2d -> 3d
1 parent 975f08b commit bd9e5e9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

SU2_CFD/src/solvers/CSolver.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4256,9 +4256,12 @@ void CSolver::SavelibROM(CSolver** solver, CGeometry *geometry, CConfig *config,
42564256
for (unsigned long iPoint = 0; iPoint < nPointDomain; iPoint++) {
42574257
unsigned long globalPoint = geometry->nodes->GetGlobalIndex(iPoint);
42584258
auto Coord = geometry->nodes->GetCoord(iPoint);
4259-
f << Coord[0] << ", " << Coord[1] << ", " << globalPoint << "\n";
4259+
4260+
for (unsigned long iDim; iDim < nDim; iDim++) {
4261+
f << Coord[iDim] << ", ";
4262+
}
4263+
f << globalPoint << "\n";
42604264
}
4261-
42624265
f.close();
42634266
}
42644267

0 commit comments

Comments
 (0)