Skip to content

Commit c50405d

Browse files
committed
Fix build, missing switch away from VectorType
1 parent f5a0275 commit c50405d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

SU2_CFD/include/solvers/CIncEulerSolver.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,12 @@ class CIncEulerSolver : public CFVMFlowSolverBase<CIncEulerVariable, ENUM_REGIME
412412
* \param[in] adj_sol - Vector containing the adjoint solution to seed.
413413
* \param[in] config - The particular config.
414414
*/
415-
void SetAdjoint_SolutionExtra(const VectorType& adj_sol, const CConfig* config) final;
415+
void SetAdjoint_SolutionExtra(const su2activevector& adj_sol, const CConfig* config) final;
416416

417417
/*!
418418
* \brief Extract the adjoint of the extra solution at the input.
419419
* \param[out] adj_sol - Vector to store the adjoint into.
420420
* \param[in] config - The particular config.
421421
*/
422-
void ExtractAdjoint_SolutionExtra(VectorType& adj_sol, const CConfig* config) final;
422+
void ExtractAdjoint_SolutionExtra(su2activevector& adj_sol, const CConfig* config) final;
423423
};

SU2_CFD/include/solvers/CSolver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3562,7 +3562,7 @@ class CSolver {
35623562
* \param[out] adj_sol - Vector to store the adjoint into.
35633563
* \param[in] config - The particular config.
35643564
*/
3565-
virtual void ExtractAdjoint_SolutionExtra(VectorType& adj_sol, const CConfig* config) {}
3565+
virtual void ExtractAdjoint_SolutionExtra(su2activevector& adj_sol, const CConfig* config) {}
35663566

35673567
/*!
35683568
* \brief A virtual member.

SU2_CFD/src/solvers/CIncEulerSolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3113,13 +3113,13 @@ void CIncEulerSolver::RegisterSolutionExtra(bool input, const CConfig* config) {
31133113
}
31143114
}
31153115

3116-
void CIncEulerSolver::SetAdjoint_SolutionExtra(const VectorType& adj_sol, const CConfig* config) {
3116+
void CIncEulerSolver::SetAdjoint_SolutionExtra(const su2activevector& adj_sol, const CConfig* config) {
31173117
if (config->GetKind_Streamwise_Periodic() == ENUM_STREAMWISE_PERIODIC::MASSFLOW) {
31183118
SU2_TYPE::SetDerivative(SPvalsUpdated.Streamwise_Periodic_PressureDrop, SU2_TYPE::GetValue(adj_sol[0]));
31193119
}
31203120
}
31213121

3122-
void CIncEulerSolver::ExtractAdjoint_SolutionExtra(VectorType& adj_sol, const CConfig* config) {
3122+
void CIncEulerSolver::ExtractAdjoint_SolutionExtra(su2activevector& adj_sol, const CConfig* config) {
31233123
if (config->GetKind_Streamwise_Periodic() == ENUM_STREAMWISE_PERIODIC::MASSFLOW) {
31243124
adj_sol[0] = SU2_TYPE::GetDerivative(SPvals.Streamwise_Periodic_PressureDrop);
31253125
}

0 commit comments

Comments
 (0)