Skip to content

Commit 64b3761

Browse files
committed
move python source up
1 parent e711ed0 commit 64b3761

File tree

3 files changed

+27
-26
lines changed

3 files changed

+27
-26
lines changed

SU2_CFD/include/solvers/CIncEulerSolver.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ class CIncEulerSolver : public CFVMFlowSolverBase<CIncEulerVariable, ENUM_REGIME
212212
* \param[in] config - Definition of the particular problem.
213213
* \param[in] iMesh - Index of the mesh in multigrid computations.
214214
*/
215-
void Custom_Source_Residual(CGeometry *geometry,
216-
CSolver **solver_container,
217-
CNumerics **numerics_container,
218-
CConfig *config,
219-
unsigned short iMesh) final;
215+
// void Custom_Source_Residual(CGeometry *geometry,
216+
// CSolver **solver_container,
217+
// CNumerics **numerics_container,
218+
// CConfig *config,
219+
// unsigned short iMesh) final;
220220

221221
/*!
222222
* \brief Source term integration.

SU2_CFD/src/solvers/CIncEulerSolver.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,36 +1813,36 @@ void CIncEulerSolver::Source_Residual(CGeometry *geometry, CSolver **solver_cont
18131813

18141814
}
18151815

1816-
void CIncEulerSolver::Custom_Source_Residual(CGeometry *geometry, CSolver **solver_container,
1817-
CNumerics **numerics_container, CConfig *config, unsigned short iMesh) {
1816+
// void CIncEulerSolver::Custom_Source_Residual(CGeometry *geometry, CSolver **solver_container,
1817+
// CNumerics **numerics_container, CConfig *config, unsigned short iMesh) {
18181818

1819-
/*--- Pick one numerics object per thread. ---*/
1820-
CNumerics* numerics = numerics_container[SOURCE_SECOND_TERM + omp_get_thread_num()*MAX_TERMS];
1819+
// /*--- Pick one numerics object per thread. ---*/
1820+
// CNumerics* numerics = numerics_container[SOURCE_SECOND_TERM + omp_get_thread_num()*MAX_TERMS];
18211821

1822-
unsigned short iVar;
1823-
unsigned long iPoint;
1824-
AD::StartNoSharedReading();
1822+
// unsigned short iVar;
1823+
// unsigned long iPoint;
1824+
// AD::StartNoSharedReading();
18251825

1826-
SU2_OMP_FOR_STAT(omp_chunk_size)
1827-
for (iPoint = 0; iPoint < nPointDomain; iPoint++) {
1826+
// SU2_OMP_FOR_STAT(omp_chunk_size)
1827+
// for (iPoint = 0; iPoint < nPointDomain; iPoint++) {
18281828

1829-
/*--- Load the volume of the dual mesh cell ---*/
1829+
// /*--- Load the volume of the dual mesh cell ---*/
18301830

1831-
numerics->SetVolume(geometry->nodes->GetVolume(iPoint));
1831+
// numerics->SetVolume(geometry->nodes->GetVolume(iPoint));
18321832

1833-
/*--- Get control volume size. ---*/
1834-
su2double Volume = geometry->nodes->GetVolume(iPoint);
1833+
// /*--- Get control volume size. ---*/
1834+
// su2double Volume = geometry->nodes->GetVolume(iPoint);
18351835

1836-
/*--- Compute the residual for this control volume and subtract. ---*/
1837-
for (iVar = 0; iVar < nVar; iVar++) {
1838-
LinSysRes[iPoint*nVar+iVar] += PointSource[iPoint][iVar] * Volume;
1839-
}
1840-
}
1841-
END_SU2_OMP_FOR
1836+
// /*--- Compute the residual for this control volume and subtract. ---*/
1837+
// for (iVar = 0; iVar < nVar; iVar++) {
1838+
// LinSysRes[iPoint*nVar+iVar] += PointSource[iPoint][iVar] * Volume;
1839+
// }
1840+
// }
1841+
// END_SU2_OMP_FOR
18421842

1843-
AD::EndNoSharedReading();
1843+
// AD::EndNoSharedReading();
18441844

1845-
}
1845+
// }
18461846

18471847

18481848
void CIncEulerSolver::Source_Template(CGeometry *geometry, CSolver **solver_container, CNumerics *numerics,

SU2_CFD/src/solvers/CSolver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4357,3 +4357,4 @@ void CSolver::SavelibROM(CGeometry *geometry, CConfig *config, bool converged) {
43574357
#endif
43584358

43594359
}
4360+

0 commit comments

Comments
 (0)