Skip to content

Commit 8488024

Browse files
Refactor restart loading to use static polymorphism and existing node defaults
1 parent 3bc9ca2 commit 8488024

File tree

3 files changed

+551
-469
lines changed

3 files changed

+551
-469
lines changed

SU2_CFD/include/solvers/CFVMFlowSolverBase.hpp

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,35 @@ class CFVMFlowSolverBase : public CSolver {
361361
void LoadRestart_impl(CGeometry **geometry, CSolver ***solver, CConfig *config, int iter, bool update_geo,
362362
su2double* RestartSolution = nullptr, unsigned short nVar_Restart = 0);
363363

364+
/*!
365+
* \brief Load restart solution fields using template specialization based on flow regime.
366+
* \param[in] geometry - Geometrical definition of the problem.
367+
* \param[in] solver - Container vector with all of the solvers.
368+
* \param[in] config - Definition of the particular problem.
369+
* \param[in] update_geo - Flag for updating coords and grid velocity.
370+
* \param[in] static_fsi - Flag for static FSI problems.
371+
* \param[in] steady_restart - Flag for steady restart.
372+
* \param[in] SolutionRestart - Optional solution restart buffer.
373+
* \param[in] nVar_Restart - Number of restart variables.
374+
* \param[in] restart_filename - Name of the restart file.
375+
*/
376+
void LoadRestartSolutionFields(CGeometry **geometry, CSolver ***solver, CConfig *config,
377+
bool update_geo, bool static_fsi, bool steady_restart,
378+
su2double* SolutionRestart, unsigned short nVar_Restart,
379+
const string& restart_filename);
380+
381+
/*!
382+
* \brief Helper function to load grid data (coordinates and velocities) from restart file.
383+
* \param[in] geometry - Geometrical definition of the problem.
384+
* \param[in] iPoint_Local - Local point index.
385+
* \param[in] baseIndex - Base index in restart data array.
386+
* \param[in] update_geo - Flag for updating coords and grid velocity.
387+
* \param[in] static_fsi - Flag for static FSI problems.
388+
* \param[in] steady_restart - Flag for steady restart.
389+
*/
390+
void LoadRestartGridData(CGeometry **geometry, long iPoint_Local, unsigned long baseIndex,
391+
bool update_geo, bool static_fsi, bool steady_restart);
392+
364393
/*!
365394
* \brief Generic implementation to compute the time step based on CFL and conv/visc eigenvalues.
366395
* \param[in] geometry - Geometrical definition of the problem.

0 commit comments

Comments
 (0)