NOX output configuration seems to affect Piro output
Created by: aprokop
@trilinos/nox (there is no @trilinos/piro ?) @rppawlo
One of my collaborators was trying to suppress the output from NOX/Piro. He was getting
1305 Convergence Stats: for step #539 : Newton, Krylov, Kr/Ne;
LastKrylov, LastTol: 2 4 2 2 1.94126e-05
1306 Convergence Stats: running total: Newton, Krylov, Kr/Ne, Kr/Step:
1079 2159 2.00093 4.00557
Looking at the code it seemed to come from Piro, so I recommended adding
<Parameter name="Print Convergence Stats" type="bool" value="false"/>
to the parameter list. However, the person instead suppressed the output by providing
<Parameter name="Output Processor" type="int" value="-1"/>
<Parameter name="MyPID" type="int" value="-1"/>
to the NOX input deck ("Printing").
Looking at the code, it seems that Piro uses utils.out()
with utils
coming from NOX::Utils
. So, it seems that Piro and NOX will share the output behavior. And in this case, Piro will ignore the "Print Convergence Stats" parameter.
This behavior was surprising to me. I'd like to know if that is to be expected, or is it a bug?