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

Generated by: LCOV version 1.14