<div dir="ltr">Now that we allow NaNs bubble up through the solver, <div>this can trip mysterious-looking errors in SNESVI:</div><div>PETSC_ERR_PLIB, "Can never get here" </div><div>is thrown from SNESMonitorVI(), because a NaN in </div><div>the residual can defeat all of the seemingly-exhaustive</div><div>if-then-else branches counting the number of active constraints.</div><div><br></div><div>I think the fix should be to count the number of NaNs separately</div><div>and report them alongside the legitimate active bounds to give</div><div>the user as much useful information as possible.  Since this entails</div><div>a substantial difference to the output format of -snes_vi_monitor,</div><div>should the fix go to maint or master?</div><div><br></div><div>Dmitry.</div></div>