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 "SolveObject.h" 11 : 12 : #include "Executioner.h" 13 : #include "FEProblem.h" 14 : #include "DisplacedProblem.h" 15 : #include "NonlinearSystemBase.h" 16 : #include "LinearSystem.h" 17 : 18 115190 : SolveObject::SolveObject(Executioner & ex) 19 : : MooseObject(ex.parameters()), 20 : PerfGraphInterface(this), 21 : PostprocessorInterface(this), 22 115190 : _executioner(ex), 23 115190 : _problem(*getCheckedPointerParam<FEProblemBase *>( 24 : "_fe_problem_base", "This might happen if you don't have a mesh")), 25 115190 : _displaced_problem(_problem.getDisplacedProblem().get()), 26 115190 : _mesh(_problem.mesh()), 27 115190 : _displaced_mesh(_displaced_problem ? &_displaced_problem->mesh() : nullptr), 28 115190 : _solver_sys(_problem.numNonlinearSystems() 29 112996 : ? static_cast<SystemBase &>(_problem.getNonlinearSystemBase(/*nl_sys=*/0)) 30 2194 : : static_cast<SystemBase &>(_problem.getLinearSystem(/*l_sys_num=*/0))), 31 115190 : _aux(_problem.getAuxiliarySystem()), 32 115190 : _inner_solve(nullptr) 33 : { 34 115190 : }