Panzer: Uninitialized variable in panzer::ModelEvaluator::evalModelImpl() causing random crash
Created by: glhenni
@trilinos/panzer
In Panzer_ModelEvaluator_impl.hpp::evalModelImpl() at or around line 1413 a boolean variable, do_fd_dfdp_, is being used uninitialized during a charon run. In parallel it means that some of the processors may have a mismatched value for this variable and it's causing seemingly random crashes with non-useful MPI error messages. The variable is only initialized via the setupModel() method within the same file. Unfortunately nothing in charon or panzer is invoking that function.
Solutions: 1) Either an invocation of setupModel() needs to be added to panzer, or, 2) I need someone to help me understand how to invoke that call within charon.
To verify that was the cause of my random crashes I went in and initialized do_fd_dfdp_ to false within all the ctors and the crashes disappeared. From my read of the code however, I think invoking setupModel() is the correct fix.