Skip to content

Commit 09e8e7f

Browse files
author
Zan-AA
committed
mute the SetAnalyzeSurface function in the FEM-DG solver to aovid calling GetNode() function, and create an error message
1 parent 0628c9b commit 09e8e7f

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

SU2_CFD/src/output/CFlowCompFEMOutput.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,12 @@ void CFlowCompFEMOutput::LoadHistoryData(CConfig *config, CGeometry *geometry, C
257257

258258
/*--- Set the analyse surface history values --- */
259259

260-
SetAnalyzeSurface(solver, geometry, config, false);
260+
for (unsigned short iMarker = 0; iMarker < config->GetnMarker_All(); iMarker++) {
261+
if (config->GetMarker_All_Analyze(iMarker) == YES) {
262+
SU2_MPI::Error("SetAnalyzeSurface is not implemented for FEM-DG solver.", CURRENT_FUNCTION);
263+
}
264+
}
265+
// SetAnalyzeSurface(solver, geometry, config, false);
261266

262267
/*--- Set aeroydnamic coefficients --- */
263268

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,7 @@ void CFlowOutput::SetAnalyzeSurface(const CSolver* const*solver, const CGeometry
155155
const bool axisymmetric = config->GetAxisymmetric();
156156
const unsigned short nMarker_Analyze = config->GetnMarker_Analyze();
157157

158-
const auto flow_nodes = (config->GetKind_Solver() == MAIN_SOLVER::FEM_EULER ||
159-
config->GetKind_Solver() == MAIN_SOLVER::FEM_NAVIER_STOKES ||
160-
config->GetKind_Solver() == MAIN_SOLVER::FEM_RANS ||
161-
config->GetKind_Solver() == MAIN_SOLVER::FEM_LES ) ? nullptr : solver[FLOW_SOL]->GetNodes();
158+
const auto flow_nodes = solver[FLOW_SOL]->GetNodes();
162159
const CVariable* species_nodes = species ? solver[SPECIES_SOL]->GetNodes() : nullptr;
163160

164161
vector<su2double> Surface_MassFlow (nMarker,0.0);

0 commit comments

Comments
 (0)