Skip to content

Commit 629b733

Browse files
committed
Minor consistency improvements
1 parent c858d26 commit 629b733

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

framework/src/mfem/postprocessors/MFEMPostprocessor.C

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ MFEMPostprocessor::validParams()
1616
{
1717
InputParameters params = MFEMExecutedObject::validParams();
1818
params += Postprocessor::validParams();
19-
params.registerSystemAttributeName("MFEMExecutedObject");
2019
return params;
2120
}
2221

framework/src/mfem/problem/MFEMProblem.C

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include "MFEMFunctorMaterial.h"
1818
#include "MFEMSubMeshTransfer.h"
1919
#include "MFEMExecutedObject.h"
20-
#include "Postprocessor.h"
21-
#include "VectorPostprocessor.h"
20+
#include "MFEMPostprocessor.h"
21+
#include "MFEMVectorPostprocessor.h"
2222
#include "libmesh/string_to_enum.h"
2323

2424
#include <vector>
@@ -55,7 +55,7 @@ MFEMProblem::MFEMProblem(const InputParameters & params)
5555
void
5656
MFEMProblem::initialSetup()
5757
{
58-
FEProblemBase::initialSetup();
58+
ExternalProblem::initialSetup();
5959

6060
// MFEM indicators create their estimators during addIndicator(); markers still need an explicit
6161
// setup pass because they are no longer initialized through the libMesh/MOOSE user-object path.
@@ -71,7 +71,7 @@ MFEMProblem::execute(const ExecFlagType & exec_type)
7171
setCurrentExecuteOnFlag(exec_type);
7272
executeMFEMObjects(exec_type);
7373

74-
FEProblemBase::execute(exec_type);
74+
ExternalProblem::execute(exec_type);
7575
}
7676

7777
void
@@ -259,7 +259,7 @@ MFEMProblem::addGridFunction(const std::string & var_type,
259259
else
260260
{
261261
// Add MOOSE variable.
262-
FEProblemBase::addVariable(var_type, var_name, parameters);
262+
ExternalProblem::addVariable(var_type, var_name, parameters);
263263

264264
// Add MFEM variable indirectly ("gridfunction").
265265
InputParameters mfem_variable_params = addMFEMFESpaceFromMOOSEVariable(parameters);
@@ -523,7 +523,7 @@ MFEMProblem::addPostprocessor(const std::string & type,
523523
if (parameters.getSystemAttributeName() == "MFEMExecutedObject")
524524
{
525525
checkUserObjectNameCollision(name, "Postprocessor");
526-
addObject<MFEMExecutedObject>(type, name, parameters);
526+
addObject<MFEMPostprocessor>(type, name, parameters);
527527
const PostprocessorValue & val = getPostprocessorValueByName(name);
528528
getCoefficients().declareScalar<mfem::FunctionCoefficient>(
529529
name, [&val](const mfem::Vector &) -> mfem::real_t { return val; });
@@ -540,10 +540,10 @@ MFEMProblem::addVectorPostprocessor(const std::string & type,
540540
if (parameters.getSystemAttributeName() == "MFEMExecutedObject")
541541
{
542542
checkUserObjectNameCollision(name, "VectorPostprocessor");
543-
addObject<MFEMExecutedObject>(type, name, parameters);
543+
addObject<MFEMVectorPostprocessor>(type, name, parameters);
544544
}
545545
else
546-
FEProblemBase::addVectorPostprocessor(type, name, parameters);
546+
ExternalProblem::addVectorPostprocessor(type, name, parameters);
547547
}
548548

549549
InputParameters
@@ -690,7 +690,7 @@ MFEMProblem::addTransfer(const std::string & transfer_name,
690690
if (parameters.getBase() == "MFEMSubMeshTransfer")
691691
addObject<MFEMExecutedObject>(transfer_name, name, parameters);
692692
else
693-
FEProblemBase::addTransfer(transfer_name, name, parameters);
693+
ExternalProblem::addTransfer(transfer_name, name, parameters);
694694
}
695695

696696
void

framework/src/mfem/transfers/MultiAppMFEMCopyTransfer.C

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#ifdef MOOSE_MFEM_ENABLED
1111

1212
#include "MultiAppMFEMCopyTransfer.h"
13-
#include "FEProblemBase.h"
1413
#include "MultiApp.h"
1514
#include "SystemBase.h"
1615
#include "MFEMProblem.h"

framework/src/mfem/vectorpostprocessors/MFEMVectorPostprocessor.C

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ MFEMVectorPostprocessor::validParams()
1616
{
1717
InputParameters params = MFEMExecutedObject::validParams();
1818
params += VectorPostprocessor::validParams();
19-
params.registerSystemAttributeName("MFEMExecutedObject");
2019
return params;
2120
}
2221

0 commit comments

Comments
 (0)