21 : _gc_params(moose_object->parameters()),
22 _gc_feproblem(_gc_params.get<
FEProblemBase *>(
"_fe_problem_base")),
32 mooseError(
"hasGuaranteedMaterialProperty() needs to be called in initialSetup()");
43 for (
const auto &
id : ids)
46 if (warehouse.hasActiveBlockObjects(
id))
48 const std::vector<std::shared_ptr<MaterialBase>> & mats = warehouse.getActiveBlockObjects(
id);
49 for (
const auto & mat : mats)
51 const auto & mat_props = mat->getSuppliedItems();
52 if (mat_props.count(prop_name))
55 if (guarantee_mat && !guarantee_mat->hasGuarantee(prop_name, guarantee))
Guarantee
Enum values for guarantees that can be demanded for material properties.
void mooseError(Args &&... args)
virtual const std::set< SubdomainID > & blockIDs() const
virtual bool blockRestricted() const
const MaterialWarehouse & getMaterialWarehouse() const
virtual MooseMesh & mesh() override
virtual bool startedInitialSetup()
BlockRestrictable *const _gc_block_restrict
Access block restrictions of the object with this interface.
FEProblemBase *const _gc_feproblem
Reference to the FEProblemBase class.
bool hasGuaranteedMaterialProperty(const MaterialPropertyName &prop, Guarantee guarantee)
GuaranteeConsumer(MooseObject *moose_object)
Add-on class that provides the functionality to issue guarantees for declared material properties.
const std::set< SubdomainID > & meshSubdomains() const