Skip to content

Commit

Permalink
Add parameter check in BlockRestrictable (refs #1228)
Browse files Browse the repository at this point in the history
r21989
  • Loading branch information
aeslaughter authored and permcody committed Feb 14, 2014
1 parent 6968a4b commit 184818b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/src/base/BlockRestrictable.C
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ BlockRestrictable::isBlockSubset(std::vector<SubdomainID> ids)
std::set<SubdomainID>
BlockRestrictable::variableSubdomianIDs(InputParameters & parameters)
{
// Return an empty set if _sys is not defined
if (!parameters.isParamValid("_sys"))
return std::set<SubdomainID>();

// Get the SystemBase and the thread id
SystemBase* sys = parameters.get<SystemBase *>("_sys");
THREAD_ID tid = parameters.get<THREAD_ID>("_tid");
Expand Down

0 comments on commit 184818b

Please sign in to comment.