Skip to content

Commit

Permalink
Check if old state exists in neml2 predictor
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Feb 6, 2025
1 parent e5db198 commit 1e91862
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ NEML2ModelExecutor::fillInputs()
void
NEML2ModelExecutor::applyPredictor()
{
if (!model().input_axis().has_state())
if (!model().input_axis().has_state() || !model().input_axis().has_subaxis(neml2::OLD_STATE))
return;

// Set trial state variables (i.e., initial guesses).
Expand Down

0 comments on commit 1e91862

Please sign in to comment.