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 "AddLinearFVBCAction.h" 11 : #include "FEProblem.h" 12 : #include "NonlinearSystem.h" 13 : 14 : registerMooseAction("MooseApp", AddLinearFVBCAction, "add_linear_fv_bc"); 15 : 16 : InputParameters 17 2460 : AddLinearFVBCAction::validParams() 18 : { 19 2460 : InputParameters params = MooseObjectAction::validParams(); 20 2460 : params.addClassDescription("Add a LinearFVBoundaryCondition object to the simulation."); 21 2460 : return params; 22 0 : } 23 : 24 2418 : AddLinearFVBCAction::AddLinearFVBCAction(const InputParameters & params) : MooseObjectAction(params) 25 : { 26 2418 : } 27 : 28 : void 29 2418 : AddLinearFVBCAction::act() 30 : { 31 : #ifdef MOOSE_KOKKOS_ENABLED 32 1768 : if (_moose_object_pars.isKokkosObject()) 33 339 : _problem->addKokkosLinearFVBC(_type, _name, _moose_object_pars); 34 : else 35 : #endif 36 2079 : _problem->addLinearFVBC(_type, _name, _moose_object_pars); 37 2418 : }