Skip to content

Commit 9b99cc6

Browse files
Apply suggestions from code review
Co-authored-by: TobiKattmann <31306376+TobiKattmann@users.noreply.github.com>
1 parent 3babe42 commit 9b99cc6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Common/src/CConfig.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,6 +1932,7 @@ void CConfig::SetConfig_Options() {
19321932

19331933
/*!\brief CUSTOM_OBJFUNC \n DESCRIPTION: User-provided definition of a custom objective function. \ingroup Config*/
19341934
addStringOption("CUSTOM_OBJFUNC", CustomObjFunc, "");
1935+
/*!\brief CUSTOM_OUTPUTS \n DESCRIPTION: User-provided definitions for custom output. \ingroup Config*/
19351936
addStringOption("CUSTOM_OUTPUTS", CustomOutputs, "");
19361937

19371938
/* DESCRIPTION: parameter for the definition of a complex objective function */

SU2_CFD/include/output/CFlowOutput.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class CFlowOutput : public CFVMOutput{
267267
"E.g. this may only be a variable of the compressible solver.", CURRENT_FUNCTION);
268268
}
269269

270-
/*--- An index equal to NOT_A_VARIABLE may refer to an history output. ---*/
270+
/*--- An index equal to NOT_A_VARIABLE may refer to a history output. ---*/
271271
output.varIndices.back() += output.otherOutputs.size();
272272
output.otherOutputs.push_back(GetPtrToHistoryOutput(var));
273273
if (output.otherOutputs.back() == nullptr) {

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,10 @@ void CFlowOutput::SetCustomOutputs(const CSolver* const* solver, const CGeometry
758758
CNEMOEulerVariable::template CIndices<unsigned long>(nDim, config->GetnSpecies()), output);
759759
} else if (config->GetKind_Regime() == ENUM_REGIME::COMPRESSIBLE) {
760760
ConvertVariableSymbolsToIndices(CEulerVariable::template CIndices<unsigned long>(nDim, 0), output);
761-
} else {
761+
} else if (config->GetKind_Regime() == ENUM_REGIME::INCOMPRESSIBLE) {
762762
ConvertVariableSymbolsToIndices(CIncEulerVariable::template CIndices<unsigned long>(nDim, 0), output);
763+
} else {
764+
SU2_MPI::Error("Unknown flow solver type.", CURRENT_FUNCTION);
763765
}
764766
/*--- Convert marker names to their index (if any) in this rank. ---*/
765767

0 commit comments

Comments
 (0)