Get the current vector variable value.
818{
820
822
824 {
828
830 {
832
834 {
835 auto node = datum.
node();
836
837 for (unsigned int c = 0; c < dimension; ++c)
838 value(c) = sys.getVectorDofValue(sys.getNodeLocalDofIndex(node, c, var), tag);
839 }
840 else
841 {
842 auto elem = datum.
elem().
id;
843 auto offset =
idx * dimension;
844
845 for (unsigned int c = 0; c < dimension; ++c)
846 value(c) = sys.getVectorDofValue(sys.getElemLocalDofIndex(elem, offset + c, var), tag);
847 }
848 }
849 else
850 {
851 KOKKOS_ASSERT(!datum.
isNodal());
852
853 auto & elem = datum.
elem();
854 auto side = datum.
side();
855
857 value = sys.getVectorQpVectorValue(elem, datum.
qpOffset() + idx, var, tag);
858 else
859 value = sys.getVectorQpVectorValueFace(elem, side, idx, var, tag);
860 }
861 }
862 else
864
866}
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.