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 : #pragma once 13 : #include "MFEMDataCollection.h" 14 : 15 : /** 16 : * Class for output information saved in MFEM ConduitDataCollections 17 : */ 18 : class MFEMConduitDataCollection : public MFEMDataCollection 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : MFEMConduitDataCollection(const InputParameters & parameters); 24 : 25 24 : virtual mfem::DataCollection & getDataCollection() override { return _conduit_dc; } 26 : 27 : protected: 28 16 : bool gridFunctionsNeedHostRead() const override { return true; } 29 : 30 : mfem::ConduitDataCollection _conduit_dc; 31 : const MooseEnum _protocol; 32 : }; 33 : 34 : #endif