-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Edward Palmer
committed
Jun 21, 2024
1 parent
a09e68b
commit 9fd03f1
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
#include "MFEMProblem.h" | ||
|
||
// MOOSE includes | ||
#include "MooseObjectAction.h" | ||
|
||
/* | ||
* This class adds a getMFEMProblem method. | ||
*/ | ||
class MFEMObjectAction : public MooseObjectAction | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
MFEMObjectAction(const InputParameters & parameters); | ||
|
||
/// Returns a reference to the MFEMProblem instance. | ||
MFEMProblem & getMFEMProblem() const { return _mfem_problem; } | ||
|
||
private: | ||
MFEMProblem & _mfem_problem; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "MFEMObjectAction.h" | ||
|
||
InputParameters | ||
MFEMObjectAction::validParams() | ||
{ | ||
return MooseObjectAction::validParams(); | ||
} | ||
|
||
MFEMObjectAction::MFEMObjectAction(const InputParameters & parameters) | ||
: MooseObjectAction(parameters), _mfem_problem(static_cast<MFEMProblem &>(*_problem)) | ||
{ | ||
} |