Пример #1
0
// Dual restricted constructor
BoundaryRestrictable::BoundaryRestrictable(const InputParameters & parameters, const std::set<SubdomainID> & block_ids) :
    _bnd_feproblem(parameters.isParamValid("_fe_problem") ? parameters.get<FEProblem *>("_fe_problem") : NULL),
    _bnd_mesh(parameters.isParamValid("_mesh") ? parameters.get<MooseMesh *>("_mesh") : NULL),
    _bnd_dual_restrictable(parameters.get<bool>("_dual_restrictable")),
    _invalid_boundary_id(Moose::INVALID_BOUNDARY_ID),
    _boundary_restricted(false),
    _block_ids(block_ids),
    _bnd_tid(parameters.isParamValid("_tid") ? parameters.get<THREAD_ID>("_tid") : 0),
    _current_boundary_id(_bnd_feproblem == NULL ? _invalid_boundary_id : _bnd_feproblem->getCurrentBoundaryID())
{
  initializeBoundaryRestrictable(parameters);
}
Пример #2
0
// Standard constructor
BoundaryRestrictable::BoundaryRestrictable(const InputParameters & parameters, bool nodal) :
    _bnd_feproblem(parameters.isParamValid("_fe_problem") ? parameters.get<FEProblem *>("_fe_problem") : NULL),
    _bnd_mesh(parameters.isParamValid("_mesh") ? parameters.get<MooseMesh *>("_mesh") : NULL),
    _bnd_dual_restrictable(parameters.get<bool>("_dual_restrictable")),
    _invalid_boundary_id(Moose::INVALID_BOUNDARY_ID),
    _block_ids(_empty_block_ids),
    _bnd_tid(parameters.isParamValid("_tid") ? parameters.get<THREAD_ID>("_tid") : 0),
    _bnd_material_data(_bnd_feproblem->getMaterialData(Moose::BOUNDARY_MATERIAL_DATA, _bnd_tid)),
    _bnd_nodal(nodal),
    _current_boundary_id(_bnd_feproblem == NULL ? _invalid_boundary_id : _bnd_feproblem->getCurrentBoundaryID())
{
  initializeBoundaryRestrictable(parameters);
}