Skip to content

Commit

Permalink
Add dependencies for other getProperty calls (idaholab#8444).
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsayad committed Feb 2, 2017
1 parent a3e67eb commit e6958fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion framework/include/materials/MaterialPropertyInterface.h
Expand Up @@ -362,7 +362,7 @@ MaterialPropertyInterface::getMaterialPropertyByName(const MaterialPropertyName
_get_material_property_called = true;

addMatPropDependency(_material_data->getPropertyId(name));

return _material_data->getProperty<T>(name);
}

Expand All @@ -378,6 +378,8 @@ MaterialPropertyInterface::getMaterialPropertyOldByName(const MaterialPropertyNa
// mark property as requested
markMatPropRequested(name);

addMatPropDependency(_material_data->getPropertyId(name));

return _material_data->getPropertyOld<T>(name);
}

Expand All @@ -392,6 +394,8 @@ MaterialPropertyInterface::getMaterialPropertyOlderByName(const MaterialProperty
// mark property as requested
markMatPropRequested(name);

addMatPropDependency(_material_data->getPropertyId(name));

return _material_data->getPropertyOlder<T>(name);
}

Expand All @@ -405,6 +409,8 @@ MaterialPropertyInterface::getBlockMaterialProperty(const MaterialPropertyName &
if (!hasMaterialPropertyByName<T>(name))
return std::pair<const MaterialProperty<T> *, std::set<SubdomainID> >(NULL, std::set<SubdomainID>());

addMatPropDependency(_material_data->getPropertyId(name));

return std::pair<const MaterialProperty<T> *, std::set<SubdomainID> >(&_material_data->getProperty<T>(name), _mi_feproblem.getMaterialPropertyBlocks(name));
}

Expand Down

0 comments on commit e6958fb

Please sign in to comment.