forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMFEMDataCollection.h
More file actions
41 lines (35 loc) · 1.23 KB
/
Copy pathMFEMDataCollection.h
File metadata and controls
41 lines (35 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//* This file is part of the MOOSE framework
//* https://mooseframework.inl.gov
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#ifdef MOOSE_MFEM_ENABLED
#pragma once
#include "FileOutput.h"
#include "MFEMProblem.h"
/**
* Class for output information saved in MFEM DataCollections
*/
class MFEMDataCollection : public FileOutput
{
public:
static InputParameters validParams();
MFEMDataCollection(const InputParameters & parameters);
virtual mfem::DataCollection & getDataCollection() = 0;
protected:
/// Register fields (GridFunctions) to be saved in the DataCollection
void registerFields();
/// Write out data
void output() override;
/// Update the DataCollection path when the internal file base path is set
void setFileBaseInternal(const std::string & file_base) override;
/// Reference to the MFEMProblemData struct storing the output variables.
MFEMProblemData & _problem_data;
/// Mesh set of output variables are defined on. May differ from main problem mesh if SubMesh
/// variables are in use.
mfem::ParMesh & _pmesh;
};
#endif