52 std::tr1::shared_ptr<NeumannFuncObj> func )
56 std::cerr <<
"Error: Can only specify one function per variable" << std::endl;
60 _funcs.insert( std::make_pair( var, func ) );
67 return _funcs.find(var)->second;
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
std::tr1::shared_ptr< NeumannFuncObj > get_func(VariableIndex var) const
libMesh::boundary_id_type BoundaryID
More descriptive name of the type used for boundary ids.
std::map< VariableIndex, std::tr1::shared_ptr< NeumannFuncObj > > _funcs
void add_var_func_pair(VariableIndex var, std::tr1::shared_ptr< NeumannFuncObj > func)
Add boundary id and corresponding functor object to be applied on that boundary.
BoundaryID get_bc_id() const
void set_bc_id(BoundaryID bc_id)
Add variable for which this boundary condition is to be applied.