LCOV - code coverage report
Current view: top level - src/mfem/outputs - MFEMConduitDataCollection.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 13 13 100.0 %
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 "MFEMConduitDataCollection.h"
      13             : 
      14             : registerMooseObject("MooseApp", MFEMConduitDataCollection);
      15             : 
      16             : InputParameters
      17        8646 : MFEMConduitDataCollection::validParams()
      18             : {
      19        8646 :   InputParameters params = MFEMDataCollection::validParams();
      20        8646 :   params.addClassDescription("Output for controlling MFEMConduitDataCollection inherited data.");
      21        8646 :   MooseEnum protocol("hdf5 json conduit_json conduit_bin", "hdf5", false);
      22        8646 :   params.addParam<MooseEnum>("protocol",
      23             :                              protocol,
      24             :                              "Conduit relay I/O protocol to use. Options: hdf5 (default), json, "
      25             :                              "conduit_json, conduit_bin.");
      26       17292 :   return params;
      27        8646 : }
      28             : 
      29           8 : MFEMConduitDataCollection::MFEMConduitDataCollection(const InputParameters & parameters)
      30             :   : MFEMDataCollection(parameters),
      31           8 :     _conduit_dc((_file_base).c_str(), &_pmesh),
      32          16 :     _protocol(getParam<MooseEnum>("protocol"))
      33             : {
      34           8 :   _conduit_dc.SetProtocol(_protocol);
      35           8 :   registerFields();
      36           8 : }
      37             : 
      38             : #endif

Generated by: LCOV version 1.14