-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from aurora-multiphysics/EdwardPalmer99/impleme…
…nt-mfem-general-user-object Adds MFEMGeneralUserObject
- Loading branch information
Showing
31 changed files
with
87 additions
and
113 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,20 +1,16 @@ | ||
#pragma once | ||
|
||
#include "GeneralUserObject.h" | ||
#include "MFEMGeneralUserObject.h" | ||
#include "kernels.h" | ||
#include "gridfunctions.h" | ||
|
||
class MFEMBilinearFormKernel : public GeneralUserObject | ||
class MFEMBilinearFormKernel : public MFEMGeneralUserObject | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
MFEMBilinearFormKernel(const InputParameters & parameters); | ||
virtual ~MFEMBilinearFormKernel() {} | ||
|
||
virtual void execute() override {} | ||
virtual void initialize() override {} | ||
virtual void finalize() override {} | ||
|
||
virtual std::shared_ptr<platypus::Kernel<mfem::ParBilinearForm>> getKernel() { return nullptr; } | ||
}; |
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
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 |
---|---|---|
@@ -1,20 +1,16 @@ | ||
#pragma once | ||
|
||
#include "GeneralUserObject.h" | ||
#include "MFEMGeneralUserObject.h" | ||
#include "kernels.h" | ||
#include "gridfunctions.h" | ||
|
||
class MFEMLinearFormKernel : public GeneralUserObject | ||
class MFEMLinearFormKernel : public MFEMGeneralUserObject | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
MFEMLinearFormKernel(const InputParameters & parameters); | ||
virtual ~MFEMLinearFormKernel(); | ||
|
||
virtual void execute() override {} | ||
virtual void initialize() override {} | ||
virtual void finalize() override {} | ||
|
||
virtual std::shared_ptr<platypus::Kernel<mfem::ParLinearForm>> getKernel() { return nullptr; } | ||
}; |
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
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
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,30 @@ | ||
#pragma once | ||
|
||
// MOOSE includes | ||
#include "GeneralUserObject.h" | ||
|
||
// Forwards declaration. | ||
class MFEMProblem; | ||
|
||
/* | ||
* This class adds a getMFEMProblem method. | ||
*/ | ||
class MFEMGeneralUserObject : public GeneralUserObject | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
MFEMGeneralUserObject(const InputParameters & parameters); | ||
|
||
/// Returns a reference to the MFEMProblem instance. | ||
MFEMProblem & getMFEMProblem() const { return _mfem_problem; } | ||
|
||
void execute() override {} | ||
|
||
void initialize() override {} | ||
|
||
void finalize() override {} | ||
|
||
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
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
Oops, something went wrong.