Пример #1
0
// Dual restricted constructor
BlockRestrictable::BlockRestrictable(const InputParameters & parameters, const std::set<BoundaryID> & boundary_ids) :
    _blk_material_data(NULL),
    _blk_dual_restrictable(parameters.get<bool>("_dual_restrictable")),
    _blk_feproblem(parameters.isParamValid("_fe_problem") ? parameters.get<FEProblem *>("_fe_problem") : NULL),
    _blk_mesh(parameters.isParamValid("_mesh") ? parameters.get<MooseMesh *>("_mesh") : NULL),
    _boundary_ids(boundary_ids),
    _blk_tid(parameters.isParamValid("_tid") ? parameters.get<THREAD_ID>("_tid") : 0)
{
    initializeBlockRestrictable(parameters);
}
Пример #2
0
// Standard constructor
BlockRestrictable::BlockRestrictable(const InputParameters & parameters) :
    _blk_dual_restrictable(parameters.get<bool>("_dual_restrictable")),
    _blk_feproblem(parameters.isParamValid("_fe_problem") ? parameters.get<FEProblem *>("_fe_problem") : NULL),
    _blk_mesh(parameters.isParamValid("_mesh") ? parameters.get<MooseMesh *>("_mesh") : NULL),
    _boundary_ids(_empty_boundary_ids),
    _blk_tid(parameters.isParamValid("_tid") ? parameters.get<THREAD_ID>("_tid") : 0),
    _block_restricted(false)
{
  initializeBlockRestrictable(parameters);
}
Пример #3
0
// Dual restricted constructor
BlockRestrictable::BlockRestrictable(const InputParameters & parameters, const std::set<BoundaryID> & boundary_ids) :
    _initialized(false),
    _blk_dual_restrictable(parameters.get<bool>("_dual_restrictable")),
    _blk_feproblem(parameters.isParamValid("_fe_problem_base") ? parameters.get<FEProblemBase *>("_fe_problem_base") : NULL),
    _blk_mesh(parameters.isParamValid("_mesh") ? parameters.get<MooseMesh *>("_mesh") : NULL),
    _boundary_ids(boundary_ids),
    _blk_tid(parameters.isParamValid("_tid") ? parameters.get<THREAD_ID>("_tid") : 0)
{
  if (!parameters.get<bool>("delay_initialization"))
    initializeBlockRestrictable(parameters);
}
Пример #4
0
void
SideSetsAroundSubdomain::initialize()
{
  // Initialize the BlockRestrictable parent
  initializeBlockRestrictable(_pars);
}