Get the current vector variable value.
836{
838
840
842 {
846
848 {
850
852 {
853 auto node = datum.
node();
854
855 for (unsigned int c = 0; c < dimension; ++c)
856 value(c) = sys.getVectorDofValue(sys.getNodeLocalDofIndex(node, c, var), tag);
857 }
858 else
859 {
860 auto elem = datum.
elem().
id;
861 auto offset =
idx * dimension;
862
863 for (unsigned int c = 0; c < dimension; ++c)
864 value(c) = sys.getVectorDofValue(sys.getElemLocalDofIndex(elem, offset + c, var), tag);
865 }
866 }
867 else
868 {
869 KOKKOS_ASSERT(!datum.
isNodal());
870
871 auto & elem = datum.
elem();
872 auto side = datum.
side();
873
875 value = sys.getVectorQpVectorValue(elem, datum.
qpOffset() + idx, var, tag);
876 else
877 value = sys.getVectorQpVectorValueFace(elem, side, idx, var, tag);
878 }
879 }
880 else
882
884}
KOKKOS_FUNCTION unsigned int getDimension() const
Get the mesh dimension.
KOKKOS_FUNCTION const FESystem & system(unsigned int sys) const
Get the Kokkos system.
KOKKOS_FUNCTION ContiguousNodeID node() const
Get the contiguous node ID.
KOKKOS_FUNCTION dof_id_type qpOffset() const
Get the starting offset into the global quadrature point index.
KOKKOS_FUNCTION const Assembly & assembly() const
Get the Kokkos assembly.
KOKKOS_FUNCTION bool isNodal() const
Get whether the current datum is on a node.
KOKKOS_FUNCTION unsigned int side() const
Get the side index.
KOKKOS_FUNCTION const ElementInfo & elem() const
Get the element information object.
KOKKOS_FUNCTION unsigned int var(unsigned int comp=0) const
Get the variable number of a component.
KOKKOS_FUNCTION TagID tag() const
Get the vector tag ID.
KOKKOS_FUNCTION Real3 vectorValue(unsigned int comp=0) const
Get the default vector value of a component.
KOKKOS_FUNCTION bool initialized() const
Get whether the variable is initialized.
KOKKOS_FUNCTION unsigned int sys(unsigned int comp=0) const
Get the system number of a component.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
const unsigned int invalid_uint
ContiguousElementID id
Contiguous element ID.