LCOV - code coverage report
Current view: top level - src/base - ContactApp.C (source / functions) Hit Total Coverage
Test: idaholab/moose contact: 8601ad Lines: 23 34 67.6 %
Date: 2025-07-18 13:27:36 Functions: 3 8 37.5 %
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 "ContactApp.h"
      11             : #include "SolidMechanicsApp.h"
      12             : #include "Moose.h"
      13             : #include "AppFactory.h"
      14             : #include "MooseSyntax.h"
      15             : 
      16             : InputParameters
      17        3326 : ContactApp::validParams()
      18             : {
      19        3326 :   InputParameters params = MooseApp::validParams();
      20             : 
      21        3326 :   params.set<bool>("automatic_automatic_scaling") = false;
      22        3326 :   params.set<bool>("use_legacy_material_output") = false;
      23        3326 :   params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false;
      24             : 
      25        3326 :   return params;
      26           0 : }
      27             : 
      28             : registerKnownLabel("ContactApp");
      29             : 
      30           0 : ContactApp::ContactApp(const InputParameters & parameters) : MooseApp(parameters)
      31             : {
      32           0 :   ContactApp::registerAll(_factory, _action_factory, _syntax);
      33           0 : }
      34             : 
      35           0 : ContactApp::~ContactApp() {}
      36             : 
      37             : void
      38        3328 : ContactApp::registerAll(Factory & f, ActionFactory & af, Syntax & syntax)
      39             : {
      40        9984 :   Registry::registerObjectsTo(f, {"ContactApp"});
      41        9984 :   Registry::registerActionsTo(af, {"ContactApp"});
      42             : 
      43        6656 :   registerSyntax("ContactAction", "Contact/*");
      44        6656 :   registerSyntax("ExplicitDynamicsContactAction", "ExplicitDynamicsContact/*");
      45             : 
      46        3328 :   registerTask("output_penetration_info_vars", false);
      47        3328 :   registerTask("add_contact_aux_variable", false);
      48        6656 :   syntax.addDependency("output_penetration_info_vars", "add_output");
      49        6656 :   syntax.addDependency("add_postprocessor", "output_penetration_info_vars");
      50        6656 :   syntax.addDependency("add_contact_aux_variable", "add_variable");
      51        6656 :   syntax.addDependency("setup_variable_complete", "add_contact_aux_variable");
      52             : 
      53        3328 :   SolidMechanicsApp::registerAll(f, af, syntax);
      54       13312 : }
      55             : 
      56             : void
      57        3328 : ContactApp::registerApps()
      58             : {
      59        3328 :   registerApp(ContactApp);
      60             : 
      61        3328 :   SolidMechanicsApp::registerApps();
      62        3328 : }
      63             : 
      64             : extern "C" void
      65           0 : ContactApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
      66             : {
      67           0 :   ContactApp::registerAll(f, af, s);
      68           0 : }
      69             : extern "C" void
      70           0 : ContactApp__registerApps()
      71             : {
      72           0 :   ContactApp::registerApps();
      73           0 : }

Generated by: LCOV version 1.14