Skip to content

Commit

Permalink
Made checkOutput prints warning on each proc
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe authored Apr 8, 2024
1 parent d0379b0 commit 2e1b6a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/adjoint/DARegression/DARegression.C
Original file line number Diff line number Diff line change
Expand Up @@ -508,19 +508,19 @@ label DARegression::checkOutput(volScalarField& outputField)
}
if (isBounded == 1)
{
Info << "************* Warning! output values are bounded between " << outputLowerBound_ << " and " << outputUpperBound_ << endl;
Pout << "************* Warning! output values are bounded between " << outputLowerBound_ << " and " << outputUpperBound_ << endl;
fail = 1;
}

if (isNaN == 1)
{
Info << "************* Warning! output values have nan and are set to " << defaultOutputValue_ << endl;
Pout << "************* Warning! output values have nan and are set to " << defaultOutputValue_ << endl;
fail = 1;
}

if (isInf == 1)
{
Info << "************* Warning! output values have inf and are set to " << defaultOutputValue_ << endl;
Pout << "************* Warning! output values have inf and are set to " << defaultOutputValue_ << endl;
fail = 1;
}

Expand Down

0 comments on commit 2e1b6a2

Please sign in to comment.