Intrepid2
Intrepid2_FunctionSpaceTools.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Intrepid2 Package
4//
5// Copyright 2007 NTESS and the Intrepid2 contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
15
16#ifndef __INTREPID2_FUNCTIONSPACETOOLS_HPP__
17#define __INTREPID2_FUNCTIONSPACETOOLS_HPP__
18
19#include "Intrepid2_ConfigDefs.hpp"
20
21#include "Shards_CellTopology.hpp"
22#include "Shards_BasicTopologies.hpp"
23
24#include "Intrepid2_Types.hpp"
25#include "Intrepid2_Utils.hpp"
26
27#include "Intrepid2_Kernels.hpp"
28
32
33#include "Intrepid2_Data.hpp"
36
37#include "Kokkos_Core.hpp"
38
39
40namespace Intrepid2 {
41
48 template<typename DeviceType>
50 using ExecSpaceType = typename DeviceType::execution_space;
51 using MemSpaceType = typename DeviceType::memory_space;
52 public:
62 template<class Scalar>
64 {
65 if (jacobianInverse.isDiagonal()) return jacobianInverse;
66 return DataTools::transposeMatrix(jacobianInverse);
67 }
68
112 template<class Scalar>
114 {
115 // TransformedBasisValues applies its transform T as T * v, so the pullback (DF)^{-T} requires that we store the transpose of jacobianInverse.
116 return TransformedBasisValues<Scalar,DeviceType>(jacobianInverseTranspose(jacobianInverse),refBasisGradValues);
117 }
118
158 template<class Scalar>
160 getHGRADtransformVALUE(const ordinal_type &numCells, const BasisValues<Scalar,DeviceType> &refBasisValues)
161 {
162 return TransformedBasisValues<Scalar,DeviceType>(numCells,refBasisValues);
163 }
164
204 template<class Scalar>
207 const BasisValues<Scalar,DeviceType> &refBasisValues )
208 {
209 // TransformedBasisValues applies its transform T as T * v, so the pullback (DF)^{-T} requires that we store the transpose of jacobianInverse.
210 return TransformedBasisValues<Scalar,DeviceType>(jacobianInverseTranspose(jacobianInverse),refBasisValues);
211 }
212
254 template<class Scalar>
256 getHCURLtransformCURL(const Data<Scalar,DeviceType> &jacobianDividedByJacobianDet,
257 const BasisValues<Scalar,DeviceType> &refBasisValues )
258 {
259 return TransformedBasisValues<Scalar,DeviceType>(jacobianDividedByJacobianDet,refBasisValues);
260 }
261
303
304 template<class Scalar>
307 const BasisValues<Scalar,DeviceType> &refBasisValues )
308 {
309 return TransformedBasisValues<Scalar,DeviceType>(jacobianDetInverse,refBasisValues);
310 }
311
353
354 template<class Scalar>
356 getHDIVtransformVALUE(const Data<Scalar,DeviceType> &jacobianDividedByJacobianDet,
357 const BasisValues<Scalar,DeviceType> &refBasisValues )
358 {
359 return TransformedBasisValues<Scalar,DeviceType>(jacobianDividedByJacobianDet,refBasisValues);
360 }
361
402 template<class Scalar>
405 const BasisValues<Scalar,DeviceType> &refBasisDivValues )
406 {
407 return TransformedBasisValues<Scalar,DeviceType>(jacobianDetInverse,refBasisDivValues);
408 }
409
450 template<class Scalar>
453 const BasisValues<Scalar,DeviceType> &refBasisValues )
454 {
455 return TransformedBasisValues<Scalar,DeviceType>(jacobianDetInverse,refBasisValues);
456 }
457
497 template<typename outputValueType, class ...outputProperties,
498 typename inputValueType, class ...inputProperties>
499 static void
500 HGRADtransformVALUE( Kokkos::DynRankView<outputValueType,outputProperties...> output,
501 const Kokkos::DynRankView<inputValueType, inputProperties...> input );
502
503
516 template<typename outputValueType, class ...outputProperties,
517 typename inputValueType, class ...inputProperties>
518 static void
519 mapHGradDataFromPhysToRef( Kokkos::DynRankView<outputValueType,outputProperties...> output,
520 const Kokkos::DynRankView<inputValueType, inputProperties...> input );
521
522
535 template<typename outputValueType, class ...outputProperties,
536 typename inputValueType, class ...inputProperties>
537 static void
538 mapHGradDataFromPhysSideToRefSide( Kokkos::DynRankView<outputValueType,outputProperties...> output,
539 const Kokkos::DynRankView<inputValueType, inputProperties...> input );
540
541
583 template<typename OutputValViewType,
584 typename JacobianInverseViewType,
585 typename InputValViewType>
586 static void
587 HGRADtransformGRAD( OutputValViewType outputVals,
588 const JacobianInverseViewType jacobianInverse,
589 const InputValViewType inputVals );
590
631 template<typename outputValValueType, class ...outputValProperties,
632 typename jacobianInverseValueType, class ...jacobianInverseProperties,
633 typename inputValValueType, class ...inputValProperties>
634 static void
635 HCURLtransformVALUE( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
636 const Kokkos::DynRankView<jacobianInverseValueType,jacobianInverseProperties...> jacobianInverse,
637 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
638
639
658 template<typename outputValValueType, class ...outputValProperties,
659 typename jacobianValueType, class ...jacobianProperties,
660 typename inputValValueType, class ...inputValProperties>
661 static void
662 mapHCurlDataFromPhysToRef( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
663 const Kokkos::DynRankView<jacobianValueType, jacobianProperties...> jacobian,
664 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
665
666
685 template<typename outputValValueType, class ...outputValProperties,
686 typename tangentsValueType, class ...tangentsProperties,
687 typename metricTensorInvValueType, class ...metricTensorInvProperties,
688 typename metricTensorDetValueType, class ...metricTensorDetProperties,
689 typename inputValValueType, class ...inputValProperties>
690 static void
692 Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
693 const Kokkos::DynRankView<tangentsValueType, tangentsProperties...> tangents,
694 const Kokkos::DynRankView<metricTensorInvValueType,metricTensorInvProperties...> metricTensorInv,
695 const Kokkos::DynRankView<metricTensorDetValueType,metricTensorDetProperties...> metricTensorDet,
696 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
697
698
716 template<typename outputValValueType, class ...outputValProperties,
717 typename jacobianDetValueType, class ...jacobianDetProperties,
718 typename inputValValueType, class ...inputValProperties>
719 static void
721 Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
722 const Kokkos::DynRankView<jacobianDetValueType,jacobianDetProperties...> metricTensorDet,
723 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
724
725
769 template<typename outputValValueType, class ...outputValProperties,
770 typename jacobianValueType, class ...jacobianProperties,
771 typename jacobianDetValueType, class ...jacobianDetProperties,
772 typename inputValValueType, class ...inputValProperties>
773 static void
774 HCURLtransformCURL( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
775 const Kokkos::DynRankView<jacobianValueType, jacobianProperties...> jacobian,
776 const Kokkos::DynRankView<jacobianDetValueType,jacobianDetProperties...> jacobianDet,
777 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
778
779
821
822 template<typename outputValValueType, class ...outputValProperties,
823 typename jacobianDetValueType, class ...jacobianDetProperties,
824 typename inputValValueType, class ...inputValProperties>
825 static void
826 HCURLtransformCURL( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
827 const Kokkos::DynRankView<jacobianDetValueType,jacobianDetProperties...> jacobianDet,
828 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
829
830
874 template<typename outputValValueType, class ...outputValProperties,
875 typename jacobianValueType, class ...jacobianProperties,
876 typename jacobianDetValueType, class ...jacobianDetProperties,
877 typename inputValValueType, class ...inputValProperties>
878 static void
879 HGRADtransformCURL( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
880 const Kokkos::DynRankView<jacobianValueType, jacobianProperties...> jacobian,
881 const Kokkos::DynRankView<jacobianDetValueType,jacobianDetProperties...> jacobianDet,
882 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
883
884
885
929
930 template<typename outputValValueType, class ...outputValProperties,
931 typename jacobianValueType, class ...jacobianProperties,
932 typename jacobianDetValueType, class ...jacobianDetProperties,
933 typename inputValValueType, class ...inputValProperties>
934 static void
935 HDIVtransformVALUE( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
936 const Kokkos::DynRankView<jacobianValueType, jacobianProperties...> jacobian,
937 const Kokkos::DynRankView<jacobianDetValueType,jacobianDetProperties...> jacobianDet,
938 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
939
940
960 template<typename outputValValueType, class ...outputValProperties,
961 typename jacobianInverseValueType, class ...jacobianInverseProperties,
962 typename jacobianDetValueType, class ...jacobianDetProperties,
963 typename inputValValueType, class ...inputValProperties>
964 static void
965 mapHDivDataFromPhysToRef( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
966 const Kokkos::DynRankView<jacobianInverseValueType, jacobianInverseProperties...> jacobianInv,
967 const Kokkos::DynRankView<jacobianDetValueType, jacobianDetProperties...> jacobianDet,
968 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
969
970
989 template<typename outputValValueType, class ...outputValProperties,
990 typename jacobianDetValueType, class ...jacobianDetProperties,
991 typename inputValValueType, class ...inputValProperties>
992 static void
994 Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
995 const Kokkos::DynRankView<jacobianDetValueType,jacobianDetProperties...> metricTensorDet,
996 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
997
998
1040 template<typename outputValValueType, class ...outputValProperties,
1041 typename jacobianDetValueType, class ...jacobianDetProperties,
1042 typename inputValValueType, class ...inputValProperties>
1043 static void
1044 HDIVtransformDIV( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
1045 const Kokkos::DynRankView<jacobianDetValueType,jacobianDetProperties...> jacobianDet,
1046 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
1047
1088 template<typename outputValValueType, class ...outputValProperties,
1089 typename jacobianDetValueType, class ...jacobianDetProperties,
1090 typename inputValValueType, class ...inputValProperties>
1091 static void
1092 HVOLtransformVALUE( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
1093 const Kokkos::DynRankView<jacobianDetValueType,jacobianDetProperties...> jacobianDet,
1094 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
1095
1113 template<typename outputValValueType, class ...outputValProperties,
1114 typename jacobianDetValueType, class ...jacobianDetProperties,
1115 typename inputValValueType, class ...inputValProperties>
1116 static void
1117 mapHVolDataFromPhysToRef( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
1118 const Kokkos::DynRankView<jacobianDetValueType,jacobianDetProperties...> jacobianDet,
1119 const Kokkos::DynRankView<inputValValueType, inputValProperties...> inputVals );
1120
1134 template<typename outputValueValueType, class ...outputValueProperties,
1135 typename leftValueValueType, class ...leftValueProperties,
1136 typename rightValueValueType, class ...rightValueProperties>
1137 static void
1138 integrate( Kokkos::DynRankView<outputValueValueType,outputValueProperties...> outputValues,
1139 const Kokkos::DynRankView<leftValueValueType, leftValueProperties...> leftValues,
1140 const Kokkos::DynRankView<rightValueValueType, rightValueProperties...> rightValues,
1141 const bool sumInto = false);
1142
1173 template<typename OutputValViewType,
1174 typename InputDetViewType,
1175 typename InputWeightViewType>
1176 static bool
1177 computeCellMeasure( OutputValViewType outputVals,
1178 const InputDetViewType inputDet,
1179 const InputWeightViewType inputWeights );
1180
1227 template<typename outputValValueType, class ...outputValProperties,
1228 typename inputJacValueType, class ...inputJacProperties,
1229 typename inputWeightValueType, class ...inputWeightPropertes,
1230 typename scratchValueType, class ...scratchProperties>
1231 static void
1232 computeFaceMeasure( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
1233 const Kokkos::DynRankView<inputJacValueType, inputJacProperties...> inputJac,
1234 const Kokkos::DynRankView<inputWeightValueType,inputWeightPropertes...> inputWeights,
1235 const int whichFace,
1236 const shards::CellTopology parentCell,
1237 const Kokkos::DynRankView<scratchValueType, scratchProperties...> scratch );
1238
1283 template<typename outputValValueType, class ...outputValProperties,
1284 typename inputJacValueType, class ...inputJacProperties,
1285 typename inputWeightValueType, class ...inputWeightProperties,
1286 typename scratchValueType, class ...scratchProperties>
1287 static void
1288 computeEdgeMeasure( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
1289 const Kokkos::DynRankView<inputJacValueType, inputJacProperties...> inputJac,
1290 const Kokkos::DynRankView<inputWeightValueType,inputWeightProperties...> inputWeights,
1291 const int whichEdge,
1292 const shards::CellTopology parentCell,
1293 const Kokkos::DynRankView<scratchValueType, scratchProperties...> scratch );
1294
1303 template<typename outputValValueType, class ...outputValProperties,
1304 typename inputMeasureValueType, class ...inputMeasureProperties,
1305 typename inputValValueType, class ...inputValProperteis>
1306 static void
1307 multiplyMeasure( Kokkos::DynRankView<outputValValueType, outputValProperties...> outputVals,
1308 const Kokkos::DynRankView<inputMeasureValueType,inputMeasureProperties...> inputMeasure,
1309 const Kokkos::DynRankView<inputValValueType, inputValProperteis...> inputVals );
1310
1344 template<typename outputFieldValueType, class ...outputFieldProperties,
1345 typename inputDataValueType, class ...inputDataPropertes,
1346 typename inputFieldValueType, class ...inputFieldProperties>
1347 static void
1348 scalarMultiplyDataField( Kokkos::DynRankView<outputFieldValueType,outputFieldProperties...> outputFields,
1349 const Kokkos::DynRankView<inputDataValueType, inputDataPropertes...> inputData,
1350 const Kokkos::DynRankView<inputFieldValueType, inputFieldProperties...> inputFields,
1351 const bool reciprocal = false );
1352
1385 template<typename outputDataValuetype, class ...outputDataProperties,
1386 typename inputDataLeftValueType, class ...inputDataLeftProperties,
1387 typename inputDataRightValueType, class ...inputDataRightProperties>
1388 static void
1389 scalarMultiplyDataData( Kokkos::DynRankView<outputDataValuetype, outputDataProperties...> outputData,
1390 const Kokkos::DynRankView<inputDataLeftValueType, inputDataLeftProperties...> inputDataLeft,
1391 const Kokkos::DynRankView<inputDataRightValueType,inputDataRightProperties...> inputDataRight,
1392 const bool reciprocal = false );
1393
1425 template<typename outputFieldValueType, class ...outputFieldProperties,
1426 typename inputDataValueType, class ...inputDataProperties,
1427 typename inputFieldValueType, class ...inputFieldProperties>
1428 static void
1429 dotMultiplyDataField( Kokkos::DynRankView<outputFieldValueType,outputFieldProperties...> outputFields,
1430 const Kokkos::DynRankView<inputDataValueType, inputDataProperties...> inputData,
1431 const Kokkos::DynRankView<inputFieldValueType, inputFieldProperties...> inputFields );
1432
1463 template<typename outputDataValueType, class ...outputDataProperties,
1464 typename inputDataLeftValueType, class ...inputDataLeftProperties,
1465 typename inputDataRightValueType, class ...inputDataRightProperties>
1466 static void
1467 dotMultiplyDataData( Kokkos::DynRankView<outputDataValueType, outputDataProperties...> outputData,
1468 const Kokkos::DynRankView<inputDataLeftValueType, inputDataLeftProperties...> inputDataLeft,
1469 const Kokkos::DynRankView<inputDataRightValueType,inputDataRightProperties...> inputDataRight );
1470
1505 template<typename outputFieldValueType, class ...outputFieldProperties,
1506 typename inputDataValueType, class ...inputDataProperties,
1507 typename inputFieldValueType, class ...inputFieldProperties>
1508 static void
1509 vectorMultiplyDataField( Kokkos::DynRankView<outputFieldValueType,outputFieldProperties...> outputFields,
1510 const Kokkos::DynRankView<inputDataValueType, inputDataProperties...> inputData,
1511 const Kokkos::DynRankView<inputFieldValueType, inputFieldProperties...> inputFields );
1512
1513
1547 template<typename outputDataValueType, class ...outputDataProperties,
1548 typename inputDataLeftValueType, class ...inputDataLeftProperties,
1549 typename inputDataRightValueType, class ...inputDataRightProperties>
1550 static void
1551 vectorMultiplyDataData( Kokkos::DynRankView<outputDataValueType, outputDataProperties...> outputData,
1552 const Kokkos::DynRankView<inputDataLeftValueType, inputDataLeftProperties...> inputDataLeft,
1553 const Kokkos::DynRankView<inputDataRightValueType,inputDataRightProperties...> inputDataRight );
1554
1605 template<typename outputFieldValueType, class ...outputFieldProperties,
1606 typename inputDataValueType, class ...inputDataProperties,
1607 typename inputFieldValueType, class ...inputFieldProperties>
1608 static void
1609 tensorMultiplyDataField( Kokkos::DynRankView<outputFieldValueType,outputFieldProperties...> outputFields,
1610 const Kokkos::DynRankView<inputDataValueType, inputDataProperties...> inputData,
1611 const Kokkos::DynRankView<inputFieldValueType, inputFieldProperties...> inputFields,
1612 const char transpose = 'N');
1613
1663 template<typename outputDataValueType, class ...outputDataProperties,
1664 typename inputDataLeftValueType, class ...inputDataLeftProperties,
1665 typename inputDataRightValueType, class ...inputDataRightProperties>
1666 static void
1667 tensorMultiplyDataData( Kokkos::DynRankView<outputDataValueType, outputDataProperties...> outputData,
1668 const Kokkos::DynRankView<inputDataLeftValueType, inputDataLeftProperties...> inputDataLeft,
1669 const Kokkos::DynRankView<inputDataRightValueType,inputDataRightProperties...> inputDataRight,
1670 const char transpose = 'N' );
1671
1698 template<typename inoutOperatorValueType, class ...inoutOperatorProperties,
1699 typename fieldSignValueType, class ...fieldSignProperties>
1700 static void
1701 applyLeftFieldSigns( Kokkos::DynRankView<inoutOperatorValueType,inoutOperatorProperties...> inoutOperator,
1702 const Kokkos::DynRankView<fieldSignValueType, fieldSignProperties...> fieldSigns );
1703
1730 template<typename inoutOperatorValueType, class ...inoutOperatorProperties,
1731 typename fieldSignValueType, class ...fieldSignProperties>
1732 static void
1733 applyRightFieldSigns( Kokkos::DynRankView<inoutOperatorValueType,inoutOperatorProperties...> inoutOperator,
1734 const Kokkos::DynRankView<fieldSignValueType, fieldSignProperties...> fieldSigns );
1735
1736
1759 template<typename inoutFunctionValueType, class ...inoutFunctionProperties,
1760 typename fieldSignValueType, class ...fieldSignProperties>
1761 static void
1762 applyFieldSigns( Kokkos::DynRankView<inoutFunctionValueType,inoutFunctionProperties...> inoutFunction,
1763 const Kokkos::DynRankView<fieldSignValueType, fieldSignProperties...> fieldSigns );
1764
1765
1801 template<typename outputPointValueType, class ...outputPointProperties,
1802 typename inputCoeffValueType, class ...inputCoeffProperties,
1803 typename inputFieldValueType, class ...inputFieldProperties>
1804 static void
1805 evaluate( Kokkos::DynRankView<outputPointValueType,outputPointProperties...> outputPointVals,
1806 const Kokkos::DynRankView<inputCoeffValueType, inputCoeffProperties...> inputCoeffs,
1807 const Kokkos::DynRankView<inputFieldValueType, inputFieldProperties...> inputFields );
1808
1809 };
1810
1811} // end namespace Intrepid2
1812
1813// include templated definitions
1815
1816#endif
1817
1818/***************************************************************************************************
1819 ** **
1820 ** D O C U M E N T A T I O N P A G E S **
1821 ** **
1822 **************************************************************************************************/
1823
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
Header file for Intrepid2::ArrayTools class providing utilities for array operations.
Header file for the Intrepid2::CellTools class.
Defines the Data class, a wrapper around a Kokkos::View that allows data that is constant or repeatin...
Definition file for the Intrepid2::FunctionSpaceTools class.
Header file for small functions used in Intrepid2.
Header file for Intrepid2::RealSpaceTools class providing basic linear algebra functionality in 1D,...
Structure-preserving representation of transformed basis values; reference space values and transform...
Contains definitions of custom data types in Intrepid2.
Header function for Intrepid2::Util class and other utility functions.
Reference-space field values for a basis, designed to support typical vector-valued bases.
The data containers in Intrepid2 that support sum factorization and other reduced-data optimizations ...
Wrapper around a Kokkos::View that allows data that is constant or repeating in various logical dimen...
KOKKOS_INLINE_FUNCTION bool isDiagonal() const
returns true for containers that have two dimensions marked as BLOCK_PLUS_DIAGONAL for which the non-...
static Data< Scalar, DeviceType > transposeMatrix(const Data< Scalar, DeviceType > &matrixDataIn)
Defines expert-level interfaces for the evaluation of functions and operators in physical space (supp...
static TransformedBasisValues< Scalar, DeviceType > getHCURLtransformCURL2D(const Data< Scalar, DeviceType > &jacobianDetInverse, const BasisValues< Scalar, DeviceType > &refBasisValues)
Transformation of a 2D curl field in the H-curl space, defined at points on a reference cell,...
static void computeFaceMeasure(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< inputJacValueType, inputJacProperties... > inputJac, const Kokkos::DynRankView< inputWeightValueType, inputWeightPropertes... > inputWeights, const int whichFace, const shards::CellTopology parentCell, const Kokkos::DynRankView< scratchValueType, scratchProperties... > scratch)
Returns the weighted integration measures outputVals with dimensions (C,P) used for the computation o...
static void HVOLtransformVALUE(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< jacobianDetValueType, jacobianDetProperties... > jacobianDet, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of a (scalar) value field in the H-vol space, defined at points on a reference cell,...
static TransformedBasisValues< Scalar, DeviceType > getHGRADtransformVALUE(const ordinal_type &numCells, const BasisValues< Scalar, DeviceType > &refBasisValues)
Transformation of a (scalar) value field in the H-grad space, defined at points on a reference cell,...
static void integrate(Kokkos::DynRankView< outputValueValueType, outputValueProperties... > outputValues, const Kokkos::DynRankView< leftValueValueType, leftValueProperties... > leftValues, const Kokkos::DynRankView< rightValueValueType, rightValueProperties... > rightValues, const bool sumInto=false)
Contracts leftValues and rightValues arrays on the point and possibly space dimensions and stores the...
static void applyRightFieldSigns(Kokkos::DynRankView< inoutOperatorValueType, inoutOperatorProperties... > inoutOperator, const Kokkos::DynRankView< fieldSignValueType, fieldSignProperties... > fieldSigns)
Applies right (column) signs, stored in the user-provided container fieldSigns and indexed by (C,...
static TransformedBasisValues< Scalar, DeviceType > getHCURLtransformVALUE(const Data< Scalar, DeviceType > &jacobianInverse, const BasisValues< Scalar, DeviceType > &refBasisValues)
Transformation of a (vector) value field in the H-curl space, defined at points on a reference cell,...
static Data< Scalar, DeviceType > jacobianInverseTranspose(const Data< Scalar, DeviceType > &jacobianInverse)
Returns the transpose of the provided Jacobian inverse, (DF)^{-T}, for use as a TransformedBasisValue...
static void tensorMultiplyDataData(Kokkos::DynRankView< outputDataValueType, outputDataProperties... > outputData, const Kokkos::DynRankView< inputDataLeftValueType, inputDataLeftProperties... > inputDataLeft, const Kokkos::DynRankView< inputDataRightValueType, inputDataRightProperties... > inputDataRight, const char transpose='N')
Matrix-vector or matrix-matrix product of data and data; please read the description below.
static bool computeCellMeasure(OutputValViewType outputVals, const InputDetViewType inputDet, const InputWeightViewType inputWeights)
Returns the weighted integration measures outputVals with dimensions (C,P) used for the computation o...
static void HCURLtransformCURL(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< jacobianValueType, jacobianProperties... > jacobian, const Kokkos::DynRankView< jacobianDetValueType, jacobianDetProperties... > jacobianDet, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of a 3D curl field in the H-curl space, defined at points on a reference cell,...
static void computeEdgeMeasure(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< inputJacValueType, inputJacProperties... > inputJac, const Kokkos::DynRankView< inputWeightValueType, inputWeightProperties... > inputWeights, const int whichEdge, const shards::CellTopology parentCell, const Kokkos::DynRankView< scratchValueType, scratchProperties... > scratch)
Returns the weighted integration measures outVals with dimensions (C,P) used for the computation of e...
static void mapHGradDataFromPhysToRef(Kokkos::DynRankView< outputValueType, outputProperties... > output, const Kokkos::DynRankView< inputValueType, inputProperties... > input)
Transformation of a (scalar) data in the H-grad space, defined in physical space, stored in the user-...
static void mapHDivDataDotNormalFromPhysSideToRefSide(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< jacobianDetValueType, jacobianDetProperties... > metricTensorDet, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of HDIV data from physical side to reference side. It takes the input defined on phys...
static void dotMultiplyDataData(Kokkos::DynRankView< outputDataValueType, outputDataProperties... > outputData, const Kokkos::DynRankView< inputDataLeftValueType, inputDataLeftProperties... > inputDataLeft, const Kokkos::DynRankView< inputDataRightValueType, inputDataRightProperties... > inputDataRight)
Dot product of data and data; please read the description below.
static void multiplyMeasure(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< inputMeasureValueType, inputMeasureProperties... > inputMeasure, const Kokkos::DynRankView< inputValValueType, inputValProperteis... > inputVals)
Multiplies fields inputVals by weighted measures inputMeasure and returns the field array outputVals;...
static TransformedBasisValues< Scalar, DeviceType > getHGRADtransformGRAD(const Data< Scalar, DeviceType > &jacobianInverse, const BasisValues< Scalar, DeviceType > &refBasisGradValues)
Transformation of a gradient field in the H-grad space, defined at points on a reference cell,...
static void mapHGradDataFromPhysSideToRefSide(Kokkos::DynRankView< outputValueType, outputProperties... > output, const Kokkos::DynRankView< inputValueType, inputProperties... > input)
Transformation of a (scalar) data in the H-grad space, defined in physical space, stored in the user-...
static void HGRADtransformCURL(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< jacobianValueType, jacobianProperties... > jacobian, const Kokkos::DynRankView< jacobianDetValueType, jacobianDetProperties... > jacobianDet, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of a 2D curl field in the H-grad space, defined at points on a reference cell,...
static void mapHCurlDataCrossNormalFromPhysSideToRefSide(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< tangentsValueType, tangentsProperties... > tangents, const Kokkos::DynRankView< metricTensorInvValueType, metricTensorInvProperties... > metricTensorInv, const Kokkos::DynRankView< metricTensorDetValueType, metricTensorDetProperties... > metricTensorDet, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of 3D HCURL data from physical side to reference side. It takes the input vector defi...
static void mapHCurlDataFromPhysToRef(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< jacobianValueType, jacobianProperties... > jacobian, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of a (vector) data in the H-curl space, defined in the physical space,...
static TransformedBasisValues< Scalar, DeviceType > getHDIVtransformDIV(const Data< Scalar, DeviceType > &jacobianDetInverse, const BasisValues< Scalar, DeviceType > &refBasisDivValues)
Transformation of a divergence field in the H-div space, defined at points on a reference cell,...
static void evaluate(Kokkos::DynRankView< outputPointValueType, outputPointProperties... > outputPointVals, const Kokkos::DynRankView< inputCoeffValueType, inputCoeffProperties... > inputCoeffs, const Kokkos::DynRankView< inputFieldValueType, inputFieldProperties... > inputFields)
Computes point values outPointVals of a discrete function specified by the basis inFields and coeffic...
static TransformedBasisValues< Scalar, DeviceType > getHCURLtransformCURL(const Data< Scalar, DeviceType > &jacobianDividedByJacobianDet, const BasisValues< Scalar, DeviceType > &refBasisValues)
Transformation of a 3D curl field in the H-curl space, defined at points on a reference cell,...
static void scalarMultiplyDataField(Kokkos::DynRankView< outputFieldValueType, outputFieldProperties... > outputFields, const Kokkos::DynRankView< inputDataValueType, inputDataPropertes... > inputData, const Kokkos::DynRankView< inputFieldValueType, inputFieldProperties... > inputFields, const bool reciprocal=false)
Scalar multiplication of data and fields; please read the description below.
static void dotMultiplyDataField(Kokkos::DynRankView< outputFieldValueType, outputFieldProperties... > outputFields, const Kokkos::DynRankView< inputDataValueType, inputDataProperties... > inputData, const Kokkos::DynRankView< inputFieldValueType, inputFieldProperties... > inputFields)
Dot product of data and fields; please read the description below.
static void applyLeftFieldSigns(Kokkos::DynRankView< inoutOperatorValueType, inoutOperatorProperties... > inoutOperator, const Kokkos::DynRankView< fieldSignValueType, fieldSignProperties... > fieldSigns)
Applies left (row) signs, stored in the user-provided container fieldSigns and indexed by (C,...
static void applyFieldSigns(Kokkos::DynRankView< inoutFunctionValueType, inoutFunctionProperties... > inoutFunction, const Kokkos::DynRankView< fieldSignValueType, fieldSignProperties... > fieldSigns)
Applies field signs, stored in the user-provided container fieldSigns and indexed by (C,...
static TransformedBasisValues< Scalar, DeviceType > getHDIVtransformVALUE(const Data< Scalar, DeviceType > &jacobianDividedByJacobianDet, const BasisValues< Scalar, DeviceType > &refBasisValues)
Transformation of a (vector) value field in the H-div space, defined at points on a reference cell,...
static void HCURLtransformVALUE(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< jacobianInverseValueType, jacobianInverseProperties... > jacobianInverse, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of a (vector) value field in the H-curl space, defined at points on a reference cell,...
static void vectorMultiplyDataData(Kokkos::DynRankView< outputDataValueType, outputDataProperties... > outputData, const Kokkos::DynRankView< inputDataLeftValueType, inputDataLeftProperties... > inputDataLeft, const Kokkos::DynRankView< inputDataRightValueType, inputDataRightProperties... > inputDataRight)
Cross or outer product of data and data; please read the description below.
static TransformedBasisValues< Scalar, DeviceType > getHVOLtransformVALUE(const Data< Scalar, DeviceType > &jacobianDetInverse, const BasisValues< Scalar, DeviceType > &refBasisValues)
Transformation of a (scalar) value field in the H-vol space, defined at points on a reference cell,...
static void vectorMultiplyDataField(Kokkos::DynRankView< outputFieldValueType, outputFieldProperties... > outputFields, const Kokkos::DynRankView< inputDataValueType, inputDataProperties... > inputData, const Kokkos::DynRankView< inputFieldValueType, inputFieldProperties... > inputFields)
Cross or outer product of data and fields; please read the description below.
static void scalarMultiplyDataData(Kokkos::DynRankView< outputDataValuetype, outputDataProperties... > outputData, const Kokkos::DynRankView< inputDataLeftValueType, inputDataLeftProperties... > inputDataLeft, const Kokkos::DynRankView< inputDataRightValueType, inputDataRightProperties... > inputDataRight, const bool reciprocal=false)
Scalar multiplication of data and data; please read the description below.
static void HDIVtransformVALUE(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< jacobianValueType, jacobianProperties... > jacobian, const Kokkos::DynRankView< jacobianDetValueType, jacobianDetProperties... > jacobianDet, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of a (vector) value field in the H-div space, defined at points on a reference cell,...
static void mapHDivDataFromPhysToRef(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< jacobianInverseValueType, jacobianInverseProperties... > jacobianInv, const Kokkos::DynRankView< jacobianDetValueType, jacobianDetProperties... > jacobianDet, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of a (vector) data in the H-div space, defined in the physical space,...
static void mapHVolDataFromPhysToRef(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< jacobianDetValueType, jacobianDetProperties... > jacobianDet, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of a (scalar) data in the H-vol space, defined in the physical space,...
static void HDIVtransformDIV(Kokkos::DynRankView< outputValValueType, outputValProperties... > outputVals, const Kokkos::DynRankView< jacobianDetValueType, jacobianDetProperties... > jacobianDet, const Kokkos::DynRankView< inputValValueType, inputValProperties... > inputVals)
Transformation of a divergence field in the H-div space, defined at points on a reference cell,...
static void tensorMultiplyDataField(Kokkos::DynRankView< outputFieldValueType, outputFieldProperties... > outputFields, const Kokkos::DynRankView< inputDataValueType, inputDataProperties... > inputData, const Kokkos::DynRankView< inputFieldValueType, inputFieldProperties... > inputFields, const char transpose='N')
Matrix-vector or matrix-matrix product of data and fields; please read the description below.
static void HGRADtransformVALUE(Kokkos::DynRankView< outputValueType, outputProperties... > output, const Kokkos::DynRankView< inputValueType, inputProperties... > input)
Transformation of a (scalar) value field in the H-grad space, defined at points on a reference cell,...
static void HGRADtransformGRAD(OutputValViewType outputVals, const JacobianInverseViewType jacobianInverse, const InputValViewType inputVals)
Transformation of a gradient field in the H-grad space, defined at points on a reference cell,...
Structure-preserving representation of transformed vector data; reference space values and transforma...