Skip to content

Commit

Permalink
move user-object, postprocessor and vector postprocessor interfaces d…
Browse files Browse the repository at this point in the history
…own to the base class (note: this enabled vector postprocessor interface for few derived user object classes missing before) idaholab#14664
  • Loading branch information
YaqiWang committed Jan 30, 2020
1 parent 0a45fb1 commit 26125a9
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 44 deletions.
4 changes: 0 additions & 4 deletions framework/include/userobject/ElementUserObject.h
Expand Up @@ -13,11 +13,9 @@
#include "UserObject.h"
#include "BlockRestrictable.h"
#include "MaterialPropertyInterface.h"
#include "UserObjectInterface.h"
#include "Coupleable.h"
#include "MooseVariableDependencyInterface.h"
#include "TransientInterface.h"
#include "PostprocessorInterface.h"
#include "RandomInterface.h"
#include "ElementIDInterface.h"

Expand All @@ -36,11 +34,9 @@ InputParameters validParams<ElementUserObject>();
class ElementUserObject : public UserObject,
public BlockRestrictable,
public MaterialPropertyInterface,
public UserObjectInterface,
public Coupleable,
public MooseVariableDependencyInterface,
public TransientInterface,
protected PostprocessorInterface,
public RandomInterface,
public ElementIDInterface
{
Expand Down
8 changes: 1 addition & 7 deletions framework/include/userobject/GeneralUserObject.h
Expand Up @@ -14,9 +14,6 @@
#include "MaterialPropertyInterface.h"
#include "TransientInterface.h"
#include "DependencyResolverInterface.h"
#include "UserObjectInterface.h"
#include "PostprocessorInterface.h"
#include "VectorPostprocessorInterface.h"

// Forward Declarations
class GeneralUserObject;
Expand All @@ -29,10 +26,7 @@ InputParameters validParams<GeneralUserObject>();
class GeneralUserObject : public UserObject,
public MaterialPropertyInterface,
public TransientInterface,
public DependencyResolverInterface,
public UserObjectInterface,
protected PostprocessorInterface,
protected VectorPostprocessorInterface
public DependencyResolverInterface
{
public:
static InputParameters validParams();
Expand Down
6 changes: 1 addition & 5 deletions framework/include/userobject/InterfaceUserObject.h
Expand Up @@ -14,9 +14,7 @@
#include "TwoMaterialPropertyInterface.h"
#include "NeighborCoupleable.h"
#include "MooseVariableDependencyInterface.h"
#include "UserObjectInterface.h"
#include "TransientInterface.h"
#include "PostprocessorInterface.h"

class InterfaceUserObject;

Expand All @@ -31,9 +29,7 @@ class InterfaceUserObject : public UserObject,
public TwoMaterialPropertyInterface,
public NeighborCoupleable,
public MooseVariableDependencyInterface,
public UserObjectInterface,
public TransientInterface,
public PostprocessorInterface
public TransientInterface
{
public:
static InputParameters validParams();
Expand Down
6 changes: 1 addition & 5 deletions framework/include/userobject/InternalSideUserObject.h
Expand Up @@ -14,9 +14,7 @@
#include "NeighborCoupleable.h"
#include "TwoMaterialPropertyInterface.h"
#include "MooseVariableDependencyInterface.h"
#include "UserObjectInterface.h"
#include "TransientInterface.h"
#include "PostprocessorInterface.h"

class InternalSideUserObject;

Expand All @@ -31,9 +29,7 @@ class InternalSideUserObject : public UserObject,
public TwoMaterialPropertyInterface,
public NeighborCoupleable,
public MooseVariableDependencyInterface,
public UserObjectInterface,
public TransientInterface,
public PostprocessorInterface
public TransientInterface
{
public:
static InputParameters validParams();
Expand Down
4 changes: 0 additions & 4 deletions framework/include/userobject/NodalUserObject.h
Expand Up @@ -13,11 +13,9 @@
#include "UserObject.h"
#include "BlockRestrictable.h"
#include "BoundaryRestrictable.h"
#include "UserObjectInterface.h"
#include "Coupleable.h"
#include "MooseVariableDependencyInterface.h"
#include "TransientInterface.h"
#include "PostprocessorInterface.h"
#include "RandomInterface.h"

// Forward Declarations
Expand All @@ -33,11 +31,9 @@ InputParameters validParams<NodalUserObject>();
class NodalUserObject : public UserObject,
public BlockRestrictable,
public BoundaryRestrictable,
public UserObjectInterface,
public Coupleable,
public MooseVariableDependencyInterface,
public TransientInterface,
protected PostprocessorInterface,
public RandomInterface
{
public:
Expand Down
6 changes: 1 addition & 5 deletions framework/include/userobject/SideUserObject.h
Expand Up @@ -15,9 +15,7 @@
#include "MaterialPropertyInterface.h"
#include "Coupleable.h"
#include "MooseVariableDependencyInterface.h"
#include "UserObjectInterface.h"
#include "TransientInterface.h"
#include "PostprocessorInterface.h"

// Forward Declarations
class SideUserObject;
Expand All @@ -30,9 +28,7 @@ class SideUserObject : public UserObject,
public MaterialPropertyInterface,
public Coupleable,
public MooseVariableDependencyInterface,
public UserObjectInterface,
public TransientInterface,
protected PostprocessorInterface
public TransientInterface
{
public:
static InputParameters validParams();
Expand Down
6 changes: 6 additions & 0 deletions framework/include/userobject/UserObject.h
Expand Up @@ -12,6 +12,9 @@
// MOOSE includes
#include "DistributionInterface.h"
#include "FunctionInterface.h"
#include "UserObjectInterface.h"
#include "PostprocessorInterface.h"
#include "VectorPostprocessorInterface.h"
#include "MeshChangedInterface.h"
#include "MooseObject.h"
#include "MooseTypes.h"
Expand All @@ -38,6 +41,9 @@ InputParameters validParams<UserObject>();
class UserObject : public MooseObject,
public SetupInterface,
protected FunctionInterface,
public UserObjectInterface,
protected PostprocessorInterface,
protected VectorPostprocessorInterface,
protected DistributionInterface,
protected Restartable,
protected MeshMetaDataInterface,
Expand Down
2 changes: 0 additions & 2 deletions framework/src/userobject/ElementUserObject.C
Expand Up @@ -31,11 +31,9 @@ ElementUserObject::ElementUserObject(const InputParameters & parameters)
: UserObject(parameters),
BlockRestrictable(this),
MaterialPropertyInterface(this, blockIDs(), Moose::EMPTY_BOUNDARY_IDS),
UserObjectInterface(this),
Coupleable(this, false),
MooseVariableDependencyInterface(),
TransientInterface(this),
PostprocessorInterface(this),
RandomInterface(parameters, _fe_problem, _tid, false),
ElementIDInterface(this),
_mesh(_subproblem.mesh()),
Expand Down
5 changes: 1 addition & 4 deletions framework/src/userobject/GeneralUserObject.C
Expand Up @@ -26,10 +26,7 @@ GeneralUserObject::GeneralUserObject(const InputParameters & parameters)
: UserObject(parameters),
MaterialPropertyInterface(this, Moose::EMPTY_BLOCK_IDS, Moose::EMPTY_BOUNDARY_IDS),
TransientInterface(this),
DependencyResolverInterface(),
UserObjectInterface(this),
PostprocessorInterface(this),
VectorPostprocessorInterface(this)
DependencyResolverInterface()
{
_supplied_vars.insert(name());
}
Expand Down
2 changes: 0 additions & 2 deletions framework/src/userobject/InterfaceUserObject.C
Expand Up @@ -36,9 +36,7 @@ InterfaceUserObject::InterfaceUserObject(const InputParameters & parameters)
TwoMaterialPropertyInterface(this, Moose::EMPTY_BLOCK_IDS, boundaryIDs()),
NeighborCoupleable(this, false, false),
MooseVariableDependencyInterface(),
UserObjectInterface(this),
TransientInterface(this),
PostprocessorInterface(this),
_mesh(_subproblem.mesh()),
_q_point(_assembly.qPointsFace()),
_qrule(_assembly.qRuleFace()),
Expand Down
2 changes: 0 additions & 2 deletions framework/src/userobject/InternalSideUserObject.C
Expand Up @@ -34,9 +34,7 @@ InternalSideUserObject::InternalSideUserObject(const InputParameters & parameter
TwoMaterialPropertyInterface(this, blockIDs(), Moose::EMPTY_BOUNDARY_IDS),
NeighborCoupleable(this, false, false),
MooseVariableDependencyInterface(),
UserObjectInterface(this),
TransientInterface(this),
PostprocessorInterface(this),
_mesh(_subproblem.mesh()),
_q_point(_assembly.qPointsFace()),
_qrule(_assembly.qRuleFace()),
Expand Down
2 changes: 0 additions & 2 deletions framework/src/userobject/NodalUserObject.C
Expand Up @@ -34,11 +34,9 @@ NodalUserObject::NodalUserObject(const InputParameters & parameters)
: UserObject(parameters),
BlockRestrictable(this),
BoundaryRestrictable(this, blockIDs(), true), // true for applying to nodesets
UserObjectInterface(this),
Coupleable(this, true),
MooseVariableDependencyInterface(),
TransientInterface(this),
PostprocessorInterface(this),
RandomInterface(parameters, _fe_problem, _tid, true),
_mesh(_subproblem.mesh()),
_qp(0),
Expand Down
2 changes: 0 additions & 2 deletions framework/src/userobject/SideUserObject.C
Expand Up @@ -29,9 +29,7 @@ SideUserObject::SideUserObject(const InputParameters & parameters)
MaterialPropertyInterface(this, Moose::EMPTY_BLOCK_IDS, boundaryIDs()),
Coupleable(this, false),
MooseVariableDependencyInterface(),
UserObjectInterface(this),
TransientInterface(this),
PostprocessorInterface(this),
_mesh(_subproblem.mesh()),
_q_point(_assembly.qPointsFace()),
_qrule(_assembly.qRuleFace()),
Expand Down
3 changes: 3 additions & 0 deletions framework/src/userobject/UserObject.C
Expand Up @@ -50,6 +50,9 @@ UserObject::UserObject(const InputParameters & parameters)
: MooseObject(parameters),
SetupInterface(this),
FunctionInterface(this),
UserObjectInterface(this),
PostprocessorInterface(this),
VectorPostprocessorInterface(this),
DistributionInterface(this),
Restartable(this, "UserObjects"),
MeshMetaDataInterface(this),
Expand Down

0 comments on commit 26125a9

Please sign in to comment.