LCOV - code coverage report
Current view: top level - src/neml2/userobjects - MOOSEToNEML2Unbatched.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 8 11 72.7 %
Date: 2025-07-17 01:28:37 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #include "MOOSEToNEML2Unbatched.h"
      11             : 
      12             : InputParameters
      13       28530 : MOOSEToNEML2Unbatched::validParams()
      14             : {
      15       28530 :   auto params = MOOSEToNEML2::validParams();
      16       28530 :   params += GeneralUserObject::validParams();
      17             : 
      18             :   // Since we use the NEML2 model to evaluate the residual AND the Jacobian at the same time, we
      19             :   // want to execute this user object only at execute_on = LINEAR (i.e. during residual evaluation).
      20             :   // The NONLINEAR exec flag below is for computing Jacobian during automatic scaling.
      21       28530 :   ExecFlagEnum execute_options = MooseUtils::getDefaultExecFlagEnum();
      22      114120 :   execute_options = {EXEC_INITIAL, EXEC_LINEAR, EXEC_NONLINEAR};
      23       28530 :   params.set<ExecFlagEnum>("execute_on") = execute_options;
      24             : 
      25       57060 :   return params;
      26       57060 : }
      27             : 
      28           0 : MOOSEToNEML2Unbatched::MOOSEToNEML2Unbatched(const InputParameters & params)
      29           0 :   : MOOSEToNEML2(params), GeneralUserObject(params)
      30             : {
      31           0 : }

Generated by: LCOV version 1.14