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 : #pragma once 11 : 12 : #include "SolveObject.h" 13 : 14 : class SolverSystem; 15 : 16 : /** 17 : * A solve object for use when wanting to solve multiple systems 18 : */ 19 : class MultiSystemSolveObject : public SolveObject 20 : { 21 : public: 22 : MultiSystemSolveObject(Executioner & ex); 23 : 24 : static InputParameters validParams(); 25 : 26 : /** 27 : * Returns a reference to the vector of solver systems that this object is 28 : * supposed to solve 29 : */ 30 671037 : const std::vector<SolverSystem *> & systemsToSolve() const { return _systems; } 31 : 32 : protected: 33 : /// Vector of pointers to the systems 34 : std::vector<SolverSystem *> _systems; 35 : 36 : /// Number of nonlinear systems 37 : unsigned int _num_nl_systems; 38 : };