Skip to content

Commit

Permalink
mute the SetAnalyzeSurface function in the FEM-DG solver to aovid cal…
Browse files Browse the repository at this point in the history
…ling GetNode() function, and create an error message
  • Loading branch information
Zan-AA committed Sep 25, 2022
1 parent 0628c9b commit 09e8e7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 6 additions & 1 deletion SU2_CFD/src/output/CFlowCompFEMOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,12 @@ void CFlowCompFEMOutput::LoadHistoryData(CConfig *config, CGeometry *geometry, C

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

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

/*--- Set aeroydnamic coefficients --- */

Expand Down
5 changes: 1 addition & 4 deletions SU2_CFD/src/output/CFlowOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,7 @@ void CFlowOutput::SetAnalyzeSurface(const CSolver* const*solver, const CGeometry
const bool axisymmetric = config->GetAxisymmetric();
const unsigned short nMarker_Analyze = config->GetnMarker_Analyze();

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

vector<su2double> Surface_MassFlow (nMarker,0.0);
Expand Down

0 comments on commit 09e8e7f

Please sign in to comment.