libMesh
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes | List of all members
libMesh::OldSolutionValue< Output, point_output > Class Template Reference

The OldSolutionValue input functor class can be used with GenericProjector to read values from a solution on a just-refined-and-coarsened mesh. More...

#include <generic_projector.h>

Inheritance diagram for libMesh::OldSolutionValue< Output, point_output >:
[legend]

Public Member Functions

 OldSolutionValue (const libMesh::System &sys_in, const NumericVector< Number > &old_sol)
 
 OldSolutionValue (const OldSolutionValue &in)
 
Output eval_at_node (const FEMContext &c, unsigned int i, unsigned int elem_dim, const Node &n, bool, Real=0.)
 
Output eval_at_point (const FEMContext &c, unsigned int i, const Point &p, Real=0.)
 
void eval_old_dofs (const Elem &elem, unsigned int node_num, unsigned int var_num, std::vector< dof_id_type > &indices, std::vector< Output > &values)
 
void eval_old_dofs (const Elem &elem, const FEType &fe_type, unsigned int sys_num, unsigned int var_num, std::vector< dof_id_type > &indices, std::vector< Output > &values)
 
template<>
Number eval_at_node (const FEMContext &c, unsigned int i, unsigned int, const Node &n, bool extra_hanging_dofs, Real)
 
template<>
Gradient eval_at_node (const FEMContext &c, unsigned int i, unsigned int elem_dim, const Node &n, bool extra_hanging_dofs, Real)
 
template<>
void get_shape_outputs (FEBase &fe)
 
template<>
void get_shape_outputs (FEBase &fe)
 
template<>
void get_shape_outputs (FEBase &fe)
 
template<>
void get_shape_outputs (FEBase &fe)
 
void init_context (FEMContext &c)
 
bool is_grid_projection ()
 

Static Public Member Functions

static void get_shape_outputs (FEBase &fe)
 

Protected Member Functions

template<>
const Real out_of_elem_tol
 
template<>
const Real out_of_elem_tol
 
template<>
const Real out_of_elem_tol
 
template<>
const Real out_of_elem_tol
 
void check_old_context (const FEMContext &c)
 
bool check_old_context (const FEMContext &c, const Point &p)
 

Protected Attributes

const Elemlast_elem
 
const Systemsys
 
FEMContext old_context
 
std::vector< unsigned intcomponent_to_var
 

Static Protected Attributes

static const Real out_of_elem_tol
 

Private Attributes

const NumericVector< Number > & old_solution
 

Detailed Description

template<typename Output, void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
class libMesh::OldSolutionValue< Output, point_output >

The OldSolutionValue input functor class can be used with GenericProjector to read values from a solution on a just-refined-and-coarsened mesh.

Author
Roy H. Stogner
Date
2016

Definition at line 655 of file generic_projector.h.

Constructor & Destructor Documentation

◆ OldSolutionValue() [1/2]

template<typename Output, void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
libMesh::OldSolutionValue< Output, point_output >::OldSolutionValue ( const libMesh::System sys_in,
const NumericVector< Number > &  old_sol 
)
inline

Definition at line 658 of file generic_projector.h.

659  :
660  OldSolutionBase<Output, point_output>(sys_in),
661  old_solution(old_sol)
662  {
665  }

References libMesh::FEMContext::OLD.

◆ OldSolutionValue() [2/2]

template<typename Output, void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
libMesh::OldSolutionValue< Output, point_output >::OldSolutionValue ( const OldSolutionValue< Output, point_output > &  in)
inline

Definition at line 667 of file generic_projector.h.

667  :
668  OldSolutionBase<Output, point_output>(in.sys),
669  old_solution(in.old_solution)
670  {
673  }

References libMesh::FEMContext::OLD.

Member Function Documentation

◆ check_old_context() [1/2]

template<typename Output , void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
void libMesh::OldSolutionBase< Output, point_output >::check_old_context ( const FEMContext c)
inlineprotectedinherited

Definition at line 532 of file generic_projector.h.

533  {
534  LOG_SCOPE ("check_old_context(c)", "OldSolutionBase");
535  const Elem & elem = c.get_elem();
536  if (last_elem != &elem)
537  {
538  if (elem.refinement_flag() == Elem::JUST_REFINED)
539  {
540  old_context.pre_fe_reinit(sys, elem.parent());
541  }
542  else if (elem.refinement_flag() == Elem::JUST_COARSENED)
543  {
544  libmesh_error();
545  }
546  else
547  {
548  if (!elem.old_dof_object)
549  {
550  libmesh_error();
551  }
552 
553  old_context.pre_fe_reinit(sys, &elem);
554  }
555 
556  last_elem = &elem;
557  }
558  else
559  {
561  }
562  }

References libMesh::FEMContext::get_elem(), libMesh::Elem::JUST_COARSENED, libMesh::Elem::JUST_REFINED, libMesh::libmesh_assert(), libMesh::DofObject::old_dof_object, libMesh::Elem::parent(), and libMesh::Elem::refinement_flag().

◆ check_old_context() [2/2]

template<typename Output , void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
bool libMesh::OldSolutionBase< Output, point_output >::check_old_context ( const FEMContext c,
const Point p 
)
inlineprotectedinherited

Definition at line 565 of file generic_projector.h.

566  {
567  LOG_SCOPE ("check_old_context(c,p)", "OldSolutionBase");
568  const Elem & elem = c.get_elem();
569  if (last_elem != &elem)
570  {
571  if (elem.refinement_flag() == Elem::JUST_REFINED)
572  {
573  old_context.pre_fe_reinit(sys, elem.parent());
574  }
575  else if (elem.refinement_flag() == Elem::JUST_COARSENED)
576  {
577  // Find the child with this point. Use out_of_elem_tol
578  // (in physical space, which may correspond to a large
579  // tolerance in master space!) to allow for out-of-element
580  // finite differencing of mixed gradient terms. Pray we
581  // have no quadrature locations which are within 1e-5 of
582  // the element subdivision boundary but are not exactly on
583  // that boundary.
584  const Real master_tol = out_of_elem_tol / elem.hmax() * 2;
585 
586  for (auto & child : elem.child_ref_range())
587  if (child.close_to_point(p, master_tol))
588  {
589  old_context.pre_fe_reinit(sys, &child);
590  break;
591  }
592 
594  (old_context.get_elem().close_to_point(p, master_tol));
595  }
596  else
597  {
598  if (!elem.old_dof_object)
599  return false;
600 
601  old_context.pre_fe_reinit(sys, &elem);
602  }
603 
604  last_elem = &elem;
605  }
606  else
607  {
609 
610  const Real master_tol = out_of_elem_tol / elem.hmax() * 2;
611 
612  if (!old_context.get_elem().close_to_point(p, master_tol))
613  {
614  libmesh_assert_equal_to
615  (elem.refinement_flag(), Elem::JUST_COARSENED);
616 
617  for (auto & child : elem.child_ref_range())
618  if (child.close_to_point(p, master_tol))
619  {
620  old_context.pre_fe_reinit(sys, &child);
621  break;
622  }
623 
625  (old_context.get_elem().close_to_point(p, master_tol));
626  }
627  }
628 
629  return true;
630  }

References libMesh::Elem::child_ref_range(), libMesh::FEMContext::get_elem(), libMesh::Elem::hmax(), libMesh::Elem::JUST_COARSENED, libMesh::Elem::JUST_REFINED, libMesh::libmesh_assert(), libMesh::DofObject::old_dof_object, libMesh::Elem::parent(), libMesh::Real, and libMesh::Elem::refinement_flag().

◆ eval_at_node() [1/3]

template<>
Gradient libMesh::OldSolutionValue< Gradient, &FEMContext::point_gradient >::eval_at_node ( const FEMContext c,
unsigned int  i,
unsigned int  elem_dim,
const Node n,
bool  extra_hanging_dofs,
Real   
)
inline

Definition at line 875 of file generic_projector.h.

881 {
882  LOG_SCOPE ("Gradient eval_at_node()", "OldSolutionValue");
883 
884  // This should only be called on vertices
885  libmesh_assert_less(c.get_elem().get_node_index(&n),
886  c.get_elem().n_vertices());
887 
888  // Handle offset from non-scalar components in previous variables
889  libmesh_assert_less(i, this->component_to_var.size());
890  unsigned int var = this->component_to_var[i];
891 
892  // Optimize for the common case, where this node was part of the
893  // old solution.
894  //
895  // Be sure to handle cases where the variable wasn't defined on
896  // this node (due to changing subdomain support) or where the
897  // variable has no components on this node (due to Elem order
898  // exceeding FE order) or where the old_dof_object dofs might
899  // correspond to non-vertex dofs (due to extra_hanging_dofs and
900  // refinement)
901 
902  const Elem::RefinementState flag = c.get_elem().refinement_flag();
903 
904  if (n.old_dof_object &&
905  (!extra_hanging_dofs ||
906  flag == Elem::JUST_COARSENED ||
907  flag == Elem::DO_NOTHING) &&
908  n.old_dof_object->n_vars(sys.number()) &&
909  n.old_dof_object->n_comp(sys.number(), var))
910  {
911  Gradient g;
912  for (unsigned int d = 0; d != elem_dim; ++d)
913  {
914  const dof_id_type old_id =
915  n.old_dof_object->dof_number(sys.number(), var, d+1);
916  g(d) = old_solution(old_id);
917  }
918  return g;
919  }
920 
921  return this->eval_at_point(c, i, n, 0);
922 }

References libMesh::Elem::DO_NOTHING, libMesh::DofObject::dof_number(), libMesh::FEMContext::get_elem(), libMesh::Elem::get_node_index(), libMesh::Elem::JUST_COARSENED, libMesh::DofObject::n_comp(), libMesh::DofObject::n_vars(), libMesh::Elem::n_vertices(), libMesh::DofObject::old_dof_object, and libMesh::Elem::refinement_flag().

◆ eval_at_node() [2/3]

template<typename Output, void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
Output libMesh::OldSolutionValue< Output, point_output >::eval_at_node ( const FEMContext c,
unsigned int  i,
unsigned int  elem_dim,
const Node n,
bool  ,
Real  = 0. 
)

◆ eval_at_node() [3/3]

template<>
Number libMesh::OldSolutionValue< Number, &FEMContext::point_value >::eval_at_node ( const FEMContext c,
unsigned int  i,
unsigned int  ,
const Node n,
bool  extra_hanging_dofs,
Real   
)
inline

Definition at line 825 of file generic_projector.h.

831 {
832  LOG_SCOPE ("Number eval_at_node()", "OldSolutionValue");
833 
834  // This should only be called on vertices
835  libmesh_assert_less(c.get_elem().get_node_index(&n),
836  c.get_elem().n_vertices());
837 
838  // Handle offset from non-scalar components in previous variables
839  libmesh_assert_less(i, this->component_to_var.size());
840  unsigned int var = this->component_to_var[i];
841 
842  // Optimize for the common case, where this node was part of the
843  // old solution.
844  //
845  // Be sure to handle cases where the variable wasn't defined on
846  // this node (due to changing subdomain support) or where the
847  // variable has no components on this node (due to Elem order
848  // exceeding FE order) or where the old_dof_object dofs might
849  // correspond to non-vertex dofs (due to extra_hanging_dofs and
850  // refinement)
851 
852  const Elem::RefinementState flag = c.get_elem().refinement_flag();
853 
854  if (n.old_dof_object &&
855  (!extra_hanging_dofs ||
856  flag == Elem::JUST_COARSENED ||
857  flag == Elem::DO_NOTHING) &&
858  n.old_dof_object->n_vars(sys.number()) &&
859  n.old_dof_object->n_comp(sys.number(), var))
860  {
861  const dof_id_type old_id =
862  n.old_dof_object->dof_number(sys.number(), var, 0);
863  return old_solution(old_id);
864  }
865 
866  return this->eval_at_point(c, i, n, 0);
867 }

References libMesh::Elem::DO_NOTHING, libMesh::DofObject::dof_number(), libMesh::FEMContext::get_elem(), libMesh::Elem::get_node_index(), libMesh::Elem::JUST_COARSENED, libMesh::DofObject::n_comp(), libMesh::DofObject::n_vars(), libMesh::Elem::n_vertices(), libMesh::DofObject::old_dof_object, and libMesh::Elem::refinement_flag().

◆ eval_at_point()

template<typename Output, void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
Output libMesh::OldSolutionValue< Output, point_output >::eval_at_point ( const FEMContext c,
unsigned int  i,
const Point p,
Real  = 0. 
)
inline

Definition at line 683 of file generic_projector.h.

687  {
688  LOG_SCOPE ("eval_at_point()", "OldSolutionValue");
689 
690  if (!this->check_old_context(c, p))
691  return 0;
692 
693  // Handle offset from non-scalar components in previous variables
694  libmesh_assert_less(i, this->component_to_var.size());
695  unsigned int var = this->component_to_var[i];
696 
697  Output n;
698  (this->old_context.*point_output)(var, p, n, this->out_of_elem_tol);
699  return n;
700  }

◆ eval_old_dofs() [1/2]

template<typename Output, void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
void libMesh::OldSolutionValue< Output, point_output >::eval_old_dofs ( const Elem elem,
const FEType fe_type,
unsigned int  sys_num,
unsigned int  var_num,
std::vector< dof_id_type > &  indices,
std::vector< Output > &  values 
)
inline

Definition at line 724 of file generic_projector.h.

730  {
731  LOG_SCOPE ("eval_old_dofs(elem)", "OldSolutionValue");
732 
733  // We're only to be asked for old dofs on elements that can copy
734  // them through DO_NOTHING or through refinement.
735  const Elem & old_elem =
736  (elem.refinement_flag() == Elem::JUST_REFINED) ?
737  *elem.parent() : elem;
738 
739  // If there are any element-based DOF numbers, get them
740  const unsigned int nc = FEInterface::n_dofs_per_elem(elem.dim(),
741  fe_type,
742  elem.type());
743 
744  std::vector<dof_id_type> old_dof_indices(nc);
745  indices.resize(nc);
746 
747  // We should never have fewer dofs than necessary on an
748  // element unless we're getting indices on a parent element,
749  // and we should never need those indices
750  if (nc != 0)
751  {
752  libmesh_assert(old_elem.old_dof_object);
753 
754  const std::pair<unsigned int, unsigned int>
755  vg_and_offset = elem.var_to_vg_and_offset(sys_num,var_num);
756  const unsigned int vg = vg_and_offset.first;
757  const unsigned int vig = vg_and_offset.second;
758 
759  const unsigned int n_comp = elem.n_comp_group(sys_num,vg);
760  libmesh_assert_greater(elem.n_systems(), sys_num);
761  libmesh_assert_greater_equal(n_comp, nc);
762 
763  for (unsigned int i=0; i<nc; i++)
764  {
765  const dof_id_type d_old =
766  old_elem.old_dof_object->dof_number(sys_num, vg, vig, i, n_comp);
767  const dof_id_type d_new =
768  elem.dof_number(sys_num, vg, vig, i, n_comp);
769  libmesh_assert_not_equal_to (d_old, DofObject::invalid_id);
770  libmesh_assert_not_equal_to (d_new, DofObject::invalid_id);
771 
772  old_dof_indices[i] = d_old;
773  indices[i] = d_new;
774  }
775  }
776 
777  values.resize(nc);
778 
779  old_solution.get(old_dof_indices, values);
780  }

References libMesh::Elem::dim(), libMesh::DofObject::dof_number(), libMesh::DofObject::invalid_id, libMesh::Elem::JUST_REFINED, libMesh::libmesh_assert(), libMesh::DofObject::n_comp_group(), libMesh::FEInterface::n_dofs_per_elem(), libMesh::DofObject::n_systems(), libMesh::DofObject::old_dof_object, libMesh::Elem::parent(), libMesh::Elem::refinement_flag(), libMesh::Elem::type(), and libMesh::DofObject::var_to_vg_and_offset().

◆ eval_old_dofs() [2/2]

template<typename Output, void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
void libMesh::OldSolutionValue< Output, point_output >::eval_old_dofs ( const Elem elem,
unsigned int  node_num,
unsigned int  var_num,
std::vector< dof_id_type > &  indices,
std::vector< Output > &  values 
)
inline

Definition at line 702 of file generic_projector.h.

707  {
708  LOG_SCOPE ("eval_old_dofs(node)", "OldSolutionValue");
709 
710  this->sys.get_dof_map().dof_indices(elem, node_num, indices, var_num);
711 
712  std::vector<dof_id_type> old_indices;
713 
714  this->sys.get_dof_map().old_dof_indices(elem, node_num, old_indices, var_num);
715 
716  libmesh_assert_equal_to (old_indices.size(), indices.size());
717 
718  values.resize(old_indices.size());
719 
720  old_solution.get(old_indices, values);
721  }

◆ get_shape_outputs() [1/5]

template<typename Output , void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
static void libMesh::OldSolutionBase< Output, point_output >::get_shape_outputs ( FEBase fe)
staticinherited

◆ get_shape_outputs() [2/5]

template<>
void libMesh::OldSolutionBase< Number, &FEMContext::point_value >::get_shape_outputs ( FEBase fe)
inlineinherited

Definition at line 789 of file generic_projector.h.

790 {
791  fe.get_phi();
792 }

References libMesh::FEGenericBase< OutputType >::get_phi().

◆ get_shape_outputs() [3/5]

template<>
void libMesh::OldSolutionBase< Gradient, &FEMContext::point_gradient >::get_shape_outputs ( FEBase fe)
inlineinherited

Definition at line 797 of file generic_projector.h.

798 {
799  fe.get_dphi();
800 }

References libMesh::FEGenericBase< OutputType >::get_dphi().

◆ get_shape_outputs() [4/5]

template<>
void libMesh::OldSolutionBase< Real, &FEMContext::point_value >::get_shape_outputs ( FEBase fe)
inlineinherited

Definition at line 806 of file generic_projector.h.

807 {
808  fe.get_phi();
809 }

References libMesh::FEGenericBase< OutputType >::get_phi().

◆ get_shape_outputs() [5/5]

template<>
void libMesh::OldSolutionBase< RealGradient, &FEMContext::point_gradient >::get_shape_outputs ( FEBase fe)
inlineinherited

Definition at line 814 of file generic_projector.h.

815 {
816  fe.get_dphi();
817 }

References libMesh::FEGenericBase< OutputType >::get_dphi().

◆ init_context()

template<typename Output , void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
void libMesh::OldSolutionBase< Output, point_output >::init_context ( FEMContext c)
inlineinherited

Definition at line 510 of file generic_projector.h.

511  {
512  c.set_algebraic_type(FEMContext::DOFS_ONLY);
513 
514  // Loop over variables, to prerequest
515  for (auto var : IntRange<unsigned int>(0, sys.n_vars()))
516  {
517  FEBase * fe = nullptr;
518  const std::set<unsigned char> & elem_dims =
520 
521  for (const auto & dim : elem_dims)
522  {
523  old_context.get_element_fe(var, fe, dim);
524  get_shape_outputs(*fe);
525  }
526  }
527  }

References dim, libMesh::FEMContext::DOFS_ONLY, and libMesh::FEMContext::set_algebraic_type().

◆ is_grid_projection()

template<typename Output , void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
bool libMesh::OldSolutionBase< Output, point_output >::is_grid_projection ( )
inlineinherited

Definition at line 529 of file generic_projector.h.

529 { return true; }

◆ out_of_elem_tol() [1/4]

template<>
const Real libMesh::OldSolutionBase< Number, &FEMContext::point_value >::out_of_elem_tol ( )
protectedinherited

Definition at line 929 of file generic_projector.h.

◆ out_of_elem_tol() [2/4]

template<>
const Real libMesh::OldSolutionBase< Gradient, &FEMContext::point_gradient >::out_of_elem_tol ( )
protectedinherited

Definition at line 932 of file generic_projector.h.

◆ out_of_elem_tol() [3/4]

template<>
const Real libMesh::OldSolutionBase< Real, &FEMContext::point_value >::out_of_elem_tol ( )
protectedinherited

Definition at line 936 of file generic_projector.h.

◆ out_of_elem_tol() [4/4]

template<>
const Real libMesh::OldSolutionBase< RealGradient, &FEMContext::point_gradient >::out_of_elem_tol ( )
protectedinherited

Definition at line 939 of file generic_projector.h.

Member Data Documentation

◆ component_to_var

template<typename Output , void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
std::vector<unsigned int> libMesh::OldSolutionBase< Output, point_output >::component_to_var
protectedinherited

Definition at line 636 of file generic_projector.h.

◆ last_elem

template<typename Output , void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
const Elem* libMesh::OldSolutionBase< Output, point_output >::last_elem
protectedinherited

Definition at line 633 of file generic_projector.h.

◆ old_context

template<typename Output , void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
FEMContext libMesh::OldSolutionBase< Output, point_output >::old_context
protectedinherited

Definition at line 635 of file generic_projector.h.

◆ old_solution

template<typename Output, void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
const NumericVector<Number>& libMesh::OldSolutionValue< Output, point_output >::old_solution
private

Definition at line 783 of file generic_projector.h.

◆ out_of_elem_tol

template<typename Output , void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
const Real libMesh::OldSolutionBase< Output, point_output >::out_of_elem_tol
staticprotectedinherited

Definition at line 638 of file generic_projector.h.

◆ sys

template<typename Output , void(FEMContext::*)(unsigned int, const Point &, Output &, const Real) const point_output>
const System& libMesh::OldSolutionBase< Output, point_output >::sys
protectedinherited

Definition at line 634 of file generic_projector.h.


The documentation for this class was generated from the following file:
libMesh::OldSolutionValue::old_solution
const NumericVector< Number > & old_solution
Definition: generic_projector.h:783
libMesh::dof_id_type
uint8_t dof_id_type
Definition: id_types.h:67
libMesh::System::n_vars
unsigned int n_vars() const
Definition: system.h:2155
libMesh::OldSolutionValue::eval_at_point
Output eval_at_point(const FEMContext &c, unsigned int i, const Point &p, Real=0.)
Definition: generic_projector.h:683
libMesh::Elem::JUST_REFINED
Definition: elem.h:1172
libMesh::Elem::close_to_point
virtual bool close_to_point(const Point &p, Real tol) const
Definition: elem.C:2119
libMesh::DofMap::dof_indices
void dof_indices(const Elem *const elem, std::vector< dof_id_type > &di) const
Fills the vector di with the global degree of freedom indices for the element.
Definition: dof_map.C:1967
libMesh::FEMContext::pre_fe_reinit
virtual void pre_fe_reinit(const System &, const Elem *e)
Reinitializes local data vectors/matrices on the current geometric element.
Definition: fem_context.C:1642
libMesh::FEMContext::get_elem
const Elem & get_elem() const
Accessor for current Elem object.
Definition: fem_context.h:896
libMesh::System::number
unsigned int number() const
Definition: system.h:2075
libMesh::Elem::RefinementState
RefinementState
Enumeration of possible element refinement states.
Definition: elem.h:1169
libMesh::FEMContext::set_custom_solution
void set_custom_solution(const NumericVector< Number > *custom_sol)
Set a NumericVector to be used in place of current_local_solution for calculating elem_solution.
Definition: fem_context.h:988
dim
unsigned int dim
Definition: adaptivity_ex3.C:113
libMesh::OldSolutionBase::component_to_var
std::vector< unsigned int > component_to_var
Definition: generic_projector.h:636
libMesh::DofMap::old_dof_indices
void old_dof_indices(const Elem &elem, unsigned int n, std::vector< dof_id_type > &di, const unsigned int vn) const
Appends to the vector di the old global degree of freedom indices for elem.node_ref(n),...
Definition: dof_map.C:2258
libMesh::libmesh_assert
libmesh_assert(ctx)
libMesh::FEInterface::n_dofs_per_elem
static unsigned int n_dofs_per_elem(const unsigned int dim, const FEType &fe_t, const ElemType t)
Definition: fe_interface.C:534
libMesh::FEMContext::has_elem
bool has_elem() const
Test for current Elem object.
Definition: fem_context.h:890
libMesh::FEBase
FEGenericBase< Real > FEBase
Definition: exact_error_estimator.h:39
libMesh::OldSolutionBase::check_old_context
void check_old_context(const FEMContext &c)
Definition: generic_projector.h:532
libMesh::DofObject::invalid_id
static const dof_id_type invalid_id
An invalid id to distinguish an uninitialized DofObject.
Definition: dof_object.h:421
libMesh::Elem::DO_NOTHING
Definition: elem.h:1170
libMesh::Elem::JUST_COARSENED
Definition: elem.h:1173
libMesh::OldSolutionBase::sys
const System & sys
Definition: generic_projector.h:634
libMesh::Gradient
NumberVectorValue Gradient
Definition: exact_solution.h:58
libMesh::FEMContext::get_element_fe
void get_element_fe(unsigned int var, FEGenericBase< OutputShape > *&fe) const
Accessor for interior finite element object for variable var for the largest dimension in the mesh.
Definition: fem_context.h:275
libMesh::OldSolutionBase::out_of_elem_tol
const Real out_of_elem_tol
Definition: generic_projector.h:929
libMesh::FEMContext::DOFS_ONLY
Definition: fem_context.h:959
libMesh::FEMContext::set_algebraic_type
void set_algebraic_type(const AlgebraicType atype)
Setting which determines whether to initialize algebraic structures (elem_*) on each element and set ...
Definition: fem_context.h:973
libMesh::OldSolutionBase::last_elem
const Elem * last_elem
Definition: generic_projector.h:633
libMesh::NumericVector::get
virtual void get(const std::vector< numeric_index_type > &index, T *values) const
Access multiple components at once.
Definition: numeric_vector.h:821
libMesh::System::get_dof_map
const DofMap & get_dof_map() const
Definition: system.h:2099
libMesh::FEMContext::elem_dimensions
const std::set< unsigned char > & elem_dimensions() const
Definition: fem_context.h:938
libMesh::OldSolutionBase::old_context
FEMContext old_context
Definition: generic_projector.h:635
libMesh::Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Definition: libmesh_common.h:121
libMesh::FEMContext::OLD
Definition: fem_context.h:962
libMesh::OldSolutionBase::get_shape_outputs
static void get_shape_outputs(FEBase &fe)