Skip to content

Commit d56f9fc

Browse files
Apply suggestions from code review
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
1 parent 60730d6 commit d56f9fc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

SU2_CFD/include/solvers/CFVMFlowSolverBase.inl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ void CFVMFlowSolverBase<V, R>::LoadRestart_impl(CGeometry **geometry, CSolver **
792792

793793
/*--- Rewind the index to retrieve the Coords. ---*/
794794
index = counter * Restart_Vars[1];
795-
const passivedouble* Coord = &Restart_Data[index];
795+
const auto* Coord = &Restart_Data[index];
796796

797797
su2double GridVel[MAXNDIM] = {0.0};
798798
if (!steady_restart) {
@@ -813,7 +813,7 @@ void CFVMFlowSolverBase<V, R>::LoadRestart_impl(CGeometry **geometry, CSolver **
813813
if (static_fsi && update_geo) {
814814
/*--- Rewind the index to retrieve the Coords. ---*/
815815
index = counter*Restart_Vars[1];
816-
const passivedouble* Coord = &Restart_Data[index];
816+
const auto* Coord = &Restart_Data[index];
817817

818818
for (auto iDim = 0u; iDim < nDim; iDim++) {
819819
geometry[MESH_0]->nodes->SetCoord(iPoint_Local, iDim, Coord[iDim]);
@@ -828,8 +828,8 @@ void CFVMFlowSolverBase<V, R>::LoadRestart_impl(CGeometry **geometry, CSolver **
828828
/*--- Detect a wrong solution file ---*/
829829

830830
if (counter != nPointDomain) {
831-
SU2_MPI::Error(string("The solution file ") + restart_filename + string(" doesn't match with the mesh file!\n") +
832-
string("It could be empty lines at the end of the file."), CURRENT_FUNCTION);
831+
SU2_MPI::Error(string("The solution file ") + restart_filename + string(" does not match with the mesh file.\n") +
832+
string("This can be caused by empty lines at the end of the file."), CURRENT_FUNCTION);
833833
}
834834
}
835835
END_SU2_OMP_MASTER

0 commit comments

Comments
 (0)