LCOV - code coverage report
Current view: top level - src/mfem/outputs - MFEMVisItDataCollection.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 13 14 92.9 %
Date: 2025-08-08 20:01:16 Functions: 2 2 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 MOOSE_MFEM_ENABLED
      11             : 
      12             : #include "MFEMVisItDataCollection.h"
      13             : 
      14             : registerMooseObject("MooseApp", MFEMVisItDataCollection);
      15             : 
      16             : InputParameters
      17        8646 : MFEMVisItDataCollection::validParams()
      18             : {
      19        8646 :   InputParameters params = MFEMDataCollection::validParams();
      20        8646 :   params.addClassDescription("Output for controlling export to an mfem::VisItDataCollection.");
      21       25938 :   params.addParam<unsigned int>("refinements",
      22       17292 :                                 0,
      23             :                                 "Number of uniform refinements for oversampling "
      24             :                                 "(refinement levels beyond any uniform "
      25             :                                 "refinements)");
      26        8646 :   return params;
      27           0 : }
      28             : 
      29           8 : MFEMVisItDataCollection::MFEMVisItDataCollection(const InputParameters & parameters)
      30             :   : MFEMDataCollection(parameters),
      31           8 :     _visit_dc((_file_base + std::string("/Run") + std::to_string(getFileNumber())).c_str(),
      32           8 :               &_pmesh),
      33          16 :     _refinements(getParam<unsigned int>("refinements"))
      34             : {
      35           8 :   _visit_dc.SetLevelsOfDetail(_refinements + 1);
      36           8 :   registerFields();
      37           8 : }
      38             : 
      39             : #endif

Generated by: LCOV version 1.14