LCOV - code coverage report
Current view: top level - src/base - PeridynamicsApp.C (source / functions) Hit Total Coverage
Test: idaholab/moose peridynamics: #31405 (292dce) with base fef103 Lines: 17 28 60.7 %
Date: 2025-09-04 07:55:08 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 "PeridynamicsApp.h"
      11             : #include "SolidMechanicsApp.h" // solid mechanics dependency
      12             : #include "Moose.h"
      13             : #include "AppFactory.h"
      14             : #include "MooseSyntax.h"
      15             : 
      16             : InputParameters
      17         321 : PeridynamicsApp::validParams()
      18             : {
      19         321 :   InputParameters params = MooseApp::validParams();
      20             : 
      21         321 :   params.set<bool>("automatic_automatic_scaling") = false;
      22             : 
      23         321 :   params.set<bool>("use_legacy_material_output") = false;
      24         321 :   params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false;
      25             : 
      26         321 :   return params;
      27           0 : }
      28             : 
      29             : registerKnownLabel("PeridynamicsApp");
      30             : 
      31           0 : PeridynamicsApp::PeridynamicsApp(const InputParameters & parameters) : MooseApp(parameters)
      32             : {
      33           0 :   PeridynamicsApp::registerAll(_factory, _action_factory, _syntax);
      34           0 : }
      35             : 
      36           0 : PeridynamicsApp::~PeridynamicsApp() {}
      37             : 
      38             : void
      39         321 : PeridynamicsApp::registerApps()
      40             : {
      41         321 :   registerApp(PeridynamicsApp);
      42             : 
      43         321 :   SolidMechanicsApp::registerApps();
      44         321 : }
      45             : 
      46             : void
      47         321 : PeridynamicsApp::registerAll(Factory & f, ActionFactory & af, Syntax & syntax)
      48             : {
      49         321 :   Registry::registerObjectsTo(f, {"PeridynamicsApp"});
      50         321 :   Registry::registerActionsTo(af, {"PeridynamicsApp"});
      51             : 
      52         642 :   registerSyntax("MechanicsActionPD", "Modules/Peridynamics/Mechanics/Master/*");
      53         642 :   registerSyntax("GeneralizedPlaneStrainActionPD",
      54             :                  "Modules/Peridynamics/Mechanics/GeneralizedPlaneStrain/*");
      55             : 
      56         321 :   SolidMechanicsApp::registerAll(f, af, syntax);
      57         321 : }
      58             : 
      59             : extern "C" void
      60           0 : PeridynamicsApp__registerApps()
      61             : {
      62           0 :   PeridynamicsApp::registerApps();
      63           0 : }
      64             : 
      65             : extern "C" void
      66           0 : PeridynamicsApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
      67             : {
      68           0 :   PeridynamicsApp::registerAll(f, af, s);
      69           0 : }

Generated by: LCOV version 1.14