Skip to content

Commit 2e1b6a2

Browse files
authored
Made checkOutput prints warning on each proc
1 parent d0379b0 commit 2e1b6a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/adjoint/DARegression/DARegression.C

+3-3
Original file line numberDiff line numberDiff line change
@@ -508,19 +508,19 @@ label DARegression::checkOutput(volScalarField& outputField)
508508
}
509509
if (isBounded == 1)
510510
{
511-
Info << "************* Warning! output values are bounded between " << outputLowerBound_ << " and " << outputUpperBound_ << endl;
511+
Pout << "************* Warning! output values are bounded between " << outputLowerBound_ << " and " << outputUpperBound_ << endl;
512512
fail = 1;
513513
}
514514

515515
if (isNaN == 1)
516516
{
517-
Info << "************* Warning! output values have nan and are set to " << defaultOutputValue_ << endl;
517+
Pout << "************* Warning! output values have nan and are set to " << defaultOutputValue_ << endl;
518518
fail = 1;
519519
}
520520

521521
if (isInf == 1)
522522
{
523-
Info << "************* Warning! output values have inf and are set to " << defaultOutputValue_ << endl;
523+
Pout << "************* Warning! output values have inf and are set to " << defaultOutputValue_ << endl;
524524
fail = 1;
525525
}
526526

0 commit comments

Comments
 (0)