From 984edf0ce574715fed6d9020fdbebec8fa51709e Mon Sep 17 00:00:00 2001 From: Daniel Schwen Date: Wed, 29 Jul 2015 17:09:57 -0600 Subject: [PATCH] Add RandomInterface for Material (#5476) --- framework/include/materials/Material.h | 4 +++- framework/src/materials/Material.C | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/framework/include/materials/Material.h b/framework/include/materials/Material.h index 78634a62185a..38b6debe85d4 100644 --- a/framework/include/materials/Material.h +++ b/framework/include/materials/Material.h @@ -38,6 +38,7 @@ #include "ZeroInterface.h" #include "MeshChangedInterface.h" #include "OutputInterface.h" +#include "RandomInterface.h" // libMesh includes #include "libmesh/quadrature_gauss.h" @@ -81,7 +82,8 @@ class Material : public Restartable, public ZeroInterface, public MeshChangedInterface, - public OutputInterface + public OutputInterface, + public RandomInterface { public: Material(const InputParameters & parameters); diff --git a/framework/src/materials/Material.C b/framework/src/materials/Material.C index 0235ca7eab5d..0b1789878576 100644 --- a/framework/src/materials/Material.C +++ b/framework/src/materials/Material.C @@ -25,6 +25,7 @@ InputParameters validParams() InputParameters params = validParams(); params += validParams(); params += validParams(); + params += validParams(); params.addParam("use_displaced_mesh", false, "Whether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used."); @@ -62,6 +63,7 @@ Material::Material(const InputParameters & parameters) : // The false flag disables the automatic call buildOutputVariableHideList; // for Material objects the hide lists are handled by MaterialOutputAction OutputInterface(parameters, false), + RandomInterface(parameters, *parameters.get("_fe_problem"), parameters.get("_tid"), false), _subproblem(*parameters.get("_subproblem")), _fe_problem(*parameters.get("_fe_problem")), _tid(parameters.get("_tid")), @@ -252,6 +254,7 @@ Material::Material(const std::string & deprecated_name, InputParameters deprecat // The false flag disables the automatic call buildOutputVariableHideList; // for Material objects the hide lists are handled by MaterialOutputAction OutputInterface(parameters(), false), + RandomInterface(parameters(), *getParam("_fe_problem"), getParam("_tid"), false), _subproblem(*getParam("_subproblem")), _fe_problem(*getParam("_fe_problem")), _tid(getParam("_tid")),