Skip to content

Commit f9fcdff

Browse files
committed
check custom output type
1 parent 36e7f69 commit f9fcdff

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

SU2_CFD/src/output/COutput.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2291,7 +2291,10 @@ void COutput::ComputeSimpleCustomOutputs(const CConfig *config) {
22912291
const bool adjoint = config->GetDiscrete_Adjoint();
22922292

22932293
for (auto& output : customOutputs) {
2294-
if (output.type != OperationType::FUNCTION) continue;
2294+
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+
}
22952298

22962299
if (output.varIndices.empty()) {
22972300
output.varIndices.reserve(output.varSymbols.size());

0 commit comments

Comments
 (0)