LCOV - code coverage report
Current view: top level - src/mfem/submeshes - MFEMDomainSubMesh.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 12 13 92.3 %
Date: 2025-07-17 01:28:37 Functions: 3 3 100.0 %
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             : #ifdef MFEM_ENABLED
      11             : 
      12             : #include "MFEMDomainSubMesh.h"
      13             : #include "MFEMProblem.h"
      14             : 
      15             : registerMooseObject("MooseApp", MFEMDomainSubMesh);
      16             : 
      17             : InputParameters
      18        8646 : MFEMDomainSubMesh::validParams()
      19             : {
      20        8646 :   InputParameters params = MFEMSubMesh::validParams();
      21        8646 :   params += MFEMBlockRestrictable::validParams();
      22        8646 :   params.addClassDescription("Class to construct an MFEMSubMesh formed from the subspace of the "
      23             :                              "parent mesh restricted to the set of user-specified subdomains.");
      24        8646 :   return params;
      25           0 : }
      26             : 
      27           8 : MFEMDomainSubMesh::MFEMDomainSubMesh(const InputParameters & parameters)
      28             :   : MFEMSubMesh(parameters),
      29           8 :     MFEMBlockRestrictable(parameters, getMFEMProblem().mesh().getMFEMParMesh())
      30             : {
      31           8 : }
      32             : 
      33             : void
      34           8 : MFEMDomainSubMesh::buildSubMesh()
      35             : {
      36          16 :   _submesh = std::make_shared<mfem::ParSubMesh>(
      37          24 :       mfem::ParSubMesh::CreateFromDomain(getMesh(), getSubdomainAttributes()));
      38           8 : }
      39             : 
      40             : #endif

Generated by: LCOV version 1.14