We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36e7f69 commit f9fcdffCopy full SHA for f9fcdff
1 file changed
SU2_CFD/src/output/COutput.cpp
@@ -2291,7 +2291,10 @@ void COutput::ComputeSimpleCustomOutputs(const CConfig *config) {
2291
const bool adjoint = config->GetDiscrete_Adjoint();
2292
2293
for (auto& output : customOutputs) {
2294
- if (output.type != OperationType::FUNCTION) continue;
+ if (output.type != OperationType::FUNCTION) {
2295
+ if (adjoint) continue;
2296
+ SU2_MPI::Error("The current solver can only use 'Function' custom outputs.", CURRENT_FUNCTION);
2297
+ }
2298
2299
if (output.varIndices.empty()) {
2300
output.varIndices.reserve(output.varSymbols.size());
0 commit comments