Get the current vector variable value.
830{
832
834
836 {
840
842 {
844
846 {
847 auto node = datum.
node();
848
849 for (unsigned int c = 0; c < dimension; ++c)
850 value(c) = sys.getVectorDofValue(sys.getNodeLocalDofIndex(node, c, var), tag);
851 }
852 else
853 {
854 auto elem = datum.
elem().
id;
855 auto offset =
idx * dimension;
856
857 for (unsigned int c = 0; c < dimension; ++c)
858 value(c) = sys.getVectorDofValue(sys.getElemLocalDofIndex(elem, offset + c, var), tag);
859 }
860 }
861 else
862 {
863 KOKKOS_ASSERT(!datum.
isNodal());
864
865 auto & elem = datum.
elem();
866 auto side = datum.
side();
867
869 value = sys.getVectorQpVectorValue(elem, datum.
qpOffset() + idx, var, tag);
870 else
871 value = sys.getVectorQpVectorValueFace(elem, side, idx, var, tag);
872 }
873 }
874 else
876
878}
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.