LCOV - code coverage report
Current view: top level - src/base - ChemicalReactionsApp.C (source / functions) Hit Total Coverage
Test: idaholab/moose chemical_reactions: #31405 (292dce) with base fef103 Lines: 28 35 80.0 %
Date: 2025-09-04 07:52:33 Functions: 5 8 62.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 "ChemicalReactionsApp.h"
      11             : #include "Moose.h"
      12             : #include "AppFactory.h"
      13             : #include "MooseSyntax.h"
      14             : #include "Capabilities.h"
      15             : 
      16             : InputParameters
      17         841 : ChemicalReactionsApp::validParams()
      18             : {
      19         841 :   InputParameters params = MooseApp::validParams();
      20             : 
      21         841 :   params.set<bool>("automatic_automatic_scaling") = false;
      22         841 :   params.set<bool>("use_legacy_material_output") = false;
      23         841 :   params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false;
      24             : 
      25         841 :   return params;
      26           0 : }
      27             : 
      28             : registerKnownLabel("ChemicalReactionsApp");
      29             : 
      30         841 : ChemicalReactionsApp::ChemicalReactionsApp(const InputParameters & parameters)
      31         841 :   : MooseApp(parameters)
      32             : {
      33         841 :   ChemicalReactionsApp::registerAll(_factory, _action_factory, _syntax);
      34         841 : }
      35             : 
      36         791 : ChemicalReactionsApp::~ChemicalReactionsApp() {}
      37             : 
      38             : void
      39         877 : ChemicalReactionsApp::registerAll(Factory & f, ActionFactory & af, Syntax & syntax)
      40             : {
      41         877 :   Registry::registerObjectsTo(f, {"ChemicalReactionsApp"});
      42         877 :   Registry::registerActionsTo(af, {"ChemicalReactionsApp"});
      43             : 
      44        1754 :   registerSyntax("AddPrimarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
      45        1754 :   registerSyntax("AddPrimarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
      46        1754 :   registerSyntax("AddSecondarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
      47        1754 :   registerSyntax("AddSecondarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
      48        1754 :   registerSyntax("AddCoupledEqSpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
      49        1754 :   registerSyntax("AddCoupledSolidKinSpeciesAction", "ReactionNetwork/SolidKineticReactions");
      50        1754 :   registerSyntax("CommonChemicalCompositionAction", "ChemicalComposition");
      51        1754 :   registerSyntax("ChemicalCompositionAction", "ChemicalComposition/*");
      52         877 : }
      53             : 
      54             : void
      55         877 : ChemicalReactionsApp::registerApps()
      56             : {
      57         877 :   const std::string doc = "Thermochimica Gibbs energy minimization library support ";
      58             : #ifdef THERMOCHIMICA_ENABLED
      59        1754 :   addCapability("thermochimica", true, doc + "is available.");
      60             : #else
      61             :   addCapability("thermochimica", false, doc + "is not available.");
      62             : #endif
      63             : 
      64        1754 :   registerApp(ChemicalReactionsApp);
      65         877 : }
      66             : 
      67             : extern "C" void
      68           0 : ChemicalReactionsApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
      69             : {
      70           0 :   ChemicalReactionsApp::registerAll(f, af, s);
      71           0 : }
      72             : 
      73             : // External entry point for dynamic application loading
      74             : extern "C" void
      75           0 : ChemicalReactionsApp__registerApps()
      76             : {
      77           0 :   ChemicalReactionsApp::registerApps();
      78           0 : }

Generated by: LCOV version 1.14