Skip to content

Commit c9d656c

Browse files
authored
Apply suggestions from code review
1 parent 930a25e commit c9d656c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,11 +798,11 @@ void CFlowOutput::ConvertVariableSymbolsToIndices(const CPrimitiveIndices<unsign
798798
if (output.otherOutputs.back() == nullptr) {
799799
if (!allowSkip) {
800800
SU2_MPI::Error("Invalid history output or solver variable (" + var + ") used in function " + output.name +
801-
"\nValid solvers variables:\n" + knownVariables.str(), CURRENT_FUNCTION);
801+
"\nValid solvers variables:\n" + knownVariables.str(), CURRENT_FUNCTION);
802802
} else {
803803
if (rank == MASTER_NODE) {
804804
std::cout << "Info: Ignoring function " + output.name + " because it may be used by the primal/adjoint "
805-
"solver.\n If the function is ignored twice it is invalid." << std::endl;
805+
"solver.\n If the function is ignored twice it is invalid." << std::endl;
806806
}
807807
output.skip = true;
808808
break;

SU2_CFD/src/output/COutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ void COutput::ComputeSimpleCustomOutputs(const CConfig *config) {
23102310
} else {
23112311
if (rank == MASTER_NODE) {
23122312
std::cout << "Info: Ignoring function " + output.name + " because it may be used by the primal/adjoint "
2313-
"solver.\n If the function is ignored twice it is invalid." << std::endl;
2313+
"solver.\n If the function is ignored twice it is invalid." << std::endl;
23142314
}
23152315
output.skip = true;
23162316
break;

TestCases/species_transport/venturi_primitive_3species/DAspecies3_primitiveVenturi.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CUSTOM_OUTPUTS= 'avg_species_0 : AreaAvg{SPECIES[0]}[outlet];\
1919
var_species : AreaAvg{pow(SPECIES[0] - avg_species_0, 2) +\
2020
pow(SPECIES[1] - avg_species_1, 2)}[outlet]'
2121
CUSTOM_OBJFUNC= 'var_species'
22-
OBJECTIVE_FUNCTION= SURFACE_SPECIES_VARIANCE
22+
OBJECTIVE_FUNCTION= CUSTOM_OBJFUNC
2323
OBJECTIVE_WEIGHT= 1.0
2424
%
2525
% ---------------- INCOMPRESSIBLE FLOW CONDITION DEFINITION -------------------%

0 commit comments

Comments
 (0)