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 : #ifdef MFEM_ENABLED 11 : 12 : #include "MFEMSuperLU.h" 13 : #include "MFEMProblem.h" 14 : 15 : registerMooseObject("MooseApp", MFEMSuperLU); 16 : 17 : InputParameters 18 8632 : MFEMSuperLU::validParams() 19 : { 20 8632 : InputParameters params = MFEMSolverBase::validParams(); 21 8632 : params.addClassDescription("MFEM solver for performing direct solves of sparse systems in " 22 : "parallel using the SuperLU_DIST library."); 23 : 24 8632 : return params; 25 0 : } 26 : 27 1 : MFEMSuperLU::MFEMSuperLU(const InputParameters & parameters) : MFEMSolverBase(parameters) 28 : { 29 1 : constructSolver(parameters); 30 1 : } 31 : 32 : void 33 1 : MFEMSuperLU::constructSolver(const InputParameters &) 34 : { 35 1 : _solver = std::make_unique<Moose::MFEM::SuperLUSolver>( 36 1 : getMFEMProblem().mesh().getMFEMParMesh().GetComm()); 37 1 : } 38 : 39 : void 40 1 : MFEMSuperLU::updateSolver(mfem::ParBilinearForm &, mfem::Array<int> &) 41 : { 42 1 : if (_lor) 43 0 : mooseError("SuperLU solver does not support LOR solve"); 44 1 : } 45 : 46 : #endif