Get the current vector variable value.
779{
781
783
785 {
789
791 {
793
795 {
796 auto node = datum.
node();
797
798 for (unsigned int c = 0; c < dimension; ++c)
799 value(c) = sys.getVectorDofValue(sys.getNodeLocalDofIndex(node, c, var), tag);
800 }
801 else
802 {
803 auto elem = datum.
elem().
id;
804 auto offset =
idx * dimension;
805
806 for (unsigned int c = 0; c < dimension; ++c)
807 value(c) = sys.getVectorDofValue(sys.getElemLocalDofIndex(elem, offset + c, var), tag);
808 }
809 }
810 else
811 {
812 KOKKOS_ASSERT(!datum.
isNodal());
813
814 auto & elem = datum.
elem();
815 auto side = datum.
side();
816
818 value = sys.getVectorQpVectorValue(elem, datum.
qpOffset() + idx, var, tag);
819 else
820 value = sys.getVectorQpVectorValueFace(elem, side, idx, var, tag);
821 }
822 }
823 else
825
827}
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.