| /libCEED/include/ceed/jit-source/magma/ |
| H A D | magma-common-tensor.h | 95 static __device__ __inline__ void read_V_2d(const T *dV, const int compstride, T rV[DIM_V][NUM_COMP… in read_V_2d() argument 99 rV[i_DIM][comp][j] = dV[comp * compstride + j * Q + tx]; in read_V_2d() 112 static __device__ __inline__ void write_V_2d(T *dV, const int compstride, T rV[DIM_V][NUM_COMP][rV_… in write_V_2d() argument 116 dV[comp * compstride + j * Q + tx] = rV[i_DIM][comp][j]; in write_V_2d() 129 static __device__ __inline__ void sum_V_2d(T *dV, const int compstride, T rV[DIM_V][NUM_COMP][rV_SI… in sum_V_2d() argument 133 dV[comp * compstride + j * Q + tx] += rV[i_DIM][comp][j]; in sum_V_2d() 183 static __device__ __inline__ void read_V_3d(const T *dV, const int compstride, T rV[DIM_V][NUM_COMP… in read_V_3d() argument 187 rV[i_DIM][comp][j] = dV[comp * compstride + j * (Q * Q) + tx]; in read_V_3d() 200 static __device__ __inline__ void write_V_3d(T *dV, const int compstride, T rV[DIM_V][NUM_COMP][rV_… in write_V_3d() argument 204 dV[comp * compstride + j * (Q * Q) + tx] = rV[i_DIM][comp][j]; in write_V_3d() [all …]
|
| H A D | magma-basis-grad-1d.h | 42 …const int dstrdU, CeedScalar *dV, const int estrdV, const int cstrdV, const int dstrdV, const int … in __launch_bounds__() 56 dV += elem_id * estrdV; in __launch_bounds__() 81 write_1d<CeedScalar, BASIS_Q, BASIS_NUM_COMP>(sV, dV, cstrdV, tx); in __launch_bounds__() 87 …const int dstrdU, CeedScalar *dV, const int estrdV, const int cstrdV, const int dstrdV, const int … in __launch_bounds__() 101 dV += elem_id * estrdV; in __launch_bounds__() 126 write_1d<CeedScalar, BASIS_P, BASIS_NUM_COMP>(sV, dV, cstrdV, tx); in __launch_bounds__() 132 …const int dstrdU, CeedScalar *dV, const int estrdV, const int cstrdV, const int dstrdV, const int … in __launch_bounds__() 146 dV += elem_id * estrdV; in __launch_bounds__() 171 sum_1d<CeedScalar, BASIS_P, BASIS_NUM_COMP>(sV, dV, cstrdV, tx); in __launch_bounds__()
|
| H A D | magma-basis-interp-1d.h | 41 …ar *dT, const CeedScalar *dU, const int estrdU, const int cstrdU, CeedScalar *dV, const int estrdV, in __launch_bounds__() 56 dV += elem_id * estrdV; in __launch_bounds__() 81 write_1d<CeedScalar, BASIS_Q, BASIS_NUM_COMP>(sV, dV, cstrdV, tx); in __launch_bounds__() 86 …ar *dT, const CeedScalar *dU, const int estrdU, const int cstrdU, CeedScalar *dV, const int estrdV, in __launch_bounds__() 101 dV += elem_id * estrdV; in __launch_bounds__() 126 write_1d<CeedScalar, BASIS_P, BASIS_NUM_COMP>(sV, dV, cstrdV, tx); in __launch_bounds__() 131 …ar *dT, const CeedScalar *dU, const int estrdU, const int cstrdU, CeedScalar *dV, const int estrdV, in __launch_bounds__() 146 dV += elem_id * estrdV; in __launch_bounds__() 171 sum_1d<CeedScalar, BASIS_P, BASIS_NUM_COMP>(sV, dV, cstrdV, tx); in __launch_bounds__()
|
| H A D | magma-basis-interp-2d.h | 67 …ar *dT, const CeedScalar *dU, const int estrdU, const int cstrdU, CeedScalar *dV, const int estrdV, in __launch_bounds__() 83 dV += elem_id * estrdV; in __launch_bounds__() 103 write_V_2d<CeedScalar, BASIS_Q, 1, BASIS_NUM_COMP, BASIS_Q, 0>(dV, cstrdV, rV, tx); in __launch_bounds__() 108 …ar *dT, const CeedScalar *dU, const int estrdU, const int cstrdU, CeedScalar *dV, const int estrdV, in __launch_bounds__() 124 dV += elem_id * estrdV; in __launch_bounds__() 144 write_V_2d<CeedScalar, BASIS_P, 1, BASIS_NUM_COMP, BASIS_P, 0>(dV, cstrdV, rV, tx); in __launch_bounds__() 149 …ar *dT, const CeedScalar *dU, const int estrdU, const int cstrdU, CeedScalar *dV, const int estrdV, in __launch_bounds__() 165 dV += elem_id * estrdV; in __launch_bounds__() 185 sum_V_2d<CeedScalar, BASIS_P, 1, BASIS_NUM_COMP, BASIS_P, 0>(dV, cstrdV, rV, tx); in __launch_bounds__()
|
| H A D | magma-basis-weight-nontensor.h | 14 …gma_weight_nontensor(int n, const CeedScalar *__restrict__ dqweight, CeedScalar *__restrict__ dV) { in __launch_bounds__() 24 dV += id * BASIS_Q; in __launch_bounds__() 42 dV[tx] = sV[tx]; in __launch_bounds__()
|
| H A D | magma-basis-interp-3d.h | 95 …ar *dT, const CeedScalar *dU, const int estrdU, const int cstrdU, CeedScalar *dV, const int estrdV, in __launch_bounds__() 111 dV += elem_id * estrdV; in __launch_bounds__() 131 write_V_3d<CeedScalar, BASIS_Q, 1, BASIS_NUM_COMP, BASIS_Q, 0>(dV, cstrdV, rV, tx); in __launch_bounds__() 136 …ar *dT, const CeedScalar *dU, const int estrdU, const int cstrdU, CeedScalar *dV, const int estrdV, in __launch_bounds__() 152 dV += elem_id * estrdV; in __launch_bounds__() 172 write_V_3d<CeedScalar, BASIS_P, 1, BASIS_NUM_COMP, BASIS_P, 0>(dV, cstrdV, rV, tx); in __launch_bounds__() 177 …ar *dT, const CeedScalar *dU, const int estrdU, const int cstrdU, CeedScalar *dV, const int estrdV, in __launch_bounds__() 193 dV += elem_id * estrdV; in __launch_bounds__() 213 sum_V_3d<CeedScalar, BASIS_P, 1, BASIS_NUM_COMP, BASIS_P, 0>(dV, cstrdV, rV, tx); in __launch_bounds__()
|
| H A D | magma-basis-grad-2d.h | 92 …const int dstrdU, CeedScalar *dV, const int estrdV, const int cstrdV, const int dstrdV, const int … 107 dV += elem_id * estrdV; 130 write_V_2d<CeedScalar, BASIS_Q, 1, BASIS_NUM_COMP, BASIS_Q, 0>(dV + (0 * dstrdV), cstrdV, rV, tx); 137 write_V_2d<CeedScalar, BASIS_Q, 1, BASIS_NUM_COMP, BASIS_Q, 0>(dV + (1 * dstrdV), cstrdV, rV, tx); 143 …const int dstrdU, CeedScalar *dV, const int estrdV, const int cstrdV, const int dstrdV, const int … 158 dV += elem_id * estrdV; 188 write_V_2d<CeedScalar, BASIS_P, 1, BASIS_NUM_COMP, BASIS_P, 0>(dV + (0 * dstrdV), cstrdV, rV, tx); 194 …const int dstrdU, CeedScalar *dV, const int estrdV, const int cstrdV, const int dstrdV, const int … 209 dV += elem_id * estrdV; 239 sum_V_2d<CeedScalar, BASIS_P, 1, BASIS_NUM_COMP, BASIS_P, 0>(dV + (0 * dstrdV), cstrdV, rV, tx);
|
| H A D | magma-basis-weight-1d.h | 26 …void magma_weight_1d_kernel(const CeedScalar *dqweight1d, CeedScalar *dV, const int v_stride, cons… in __launch_bounds__() 36 dV += elem_id * v_stride; in __launch_bounds__() 53 dV[tx] = sV[tx]; in __launch_bounds__()
|
| H A D | magma-basis-grad-3d.h | 114 …const int dstrdU, CeedScalar *dV, const int estrdV, const int cstrdV, const int dstrdV, const int … 129 dV += elem_id * estrdV; 153 write_V_3d<CeedScalar, BASIS_Q, 1, BASIS_NUM_COMP, BASIS_Q, 0>(dV + (0 * dstrdV), cstrdV, rV, tx); 160 write_V_3d<CeedScalar, BASIS_Q, 1, BASIS_NUM_COMP, BASIS_Q, 0>(dV + (1 * dstrdV), cstrdV, rV, tx); 167 write_V_3d<CeedScalar, BASIS_Q, 1, BASIS_NUM_COMP, BASIS_Q, 0>(dV + (2 * dstrdV), cstrdV, rV, tx); 173 …const int dstrdU, CeedScalar *dV, const int estrdV, const int cstrdV, const int dstrdV, const int … 188 dV += elem_id * estrdV; 225 write_V_3d<CeedScalar, BASIS_P, 1, BASIS_NUM_COMP, BASIS_P, 0>(dV + (0 * dstrdV), cstrdV, rV, tx); 231 …const int dstrdU, CeedScalar *dV, const int estrdV, const int cstrdV, const int dstrdV, const int … 246 dV += elem_id * estrdV; [all …]
|
| H A D | magma-basis-weight-2d.h | 34 …void magma_weight_2d_kernel(const CeedScalar *dqweight1d, CeedScalar *dV, const int v_stride, cons… in __launch_bounds__() 45 dV += elem_id * v_stride; in __launch_bounds__() 61 dV[j * BASIS_Q + tx] = rV[0][0][j]; in __launch_bounds__()
|
| H A D | magma-basis-weight-3d.h | 35 …void magma_weight_3d_kernel(const CeedScalar *dqweight1d, CeedScalar *dV, const int v_stride, cons… in __launch_bounds__() 46 dV += elem_id * v_stride; in __launch_bounds__() 62 dV[j * (BASIS_Q * BASIS_Q) + tx] = rV[0][0][j]; in __launch_bounds__()
|
| /libCEED/examples/fluids/qfunctions/ |
| H A D | newtonian_state.h | 113 StateEntropy dV; in StateEntropyFromPrimitive_fwd() local 124 dV.S_density = -dentropy / (gamma - 1) - de_kinetic * rho_div_p - e_kinetic * drho_div_p; in StateEntropyFromPrimitive_fwd() 125 …for (CeedInt i = 0; i < 3; i++) dV.S_momentum[i] = rho_div_p * dY.velocity[i] + drho_div_p * s.Y.v… in StateEntropyFromPrimitive_fwd() 126 dV.S_energy = -drho_div_p; in StateEntropyFromPrimitive_fwd() 127 return dV; in StateEntropyFromPrimitive_fwd() 142 …tePrimitive StatePrimitiveFromEntropy_fwd(NewtonianIdealGasContext gas, State s, StateEntropy dV) { in StatePrimitiveFromEntropy_fwd() argument 145 …for (int i = 0; i < 3; i++) dY.velocity[i] = -(dV.S_momentum[i] - V.S_momentum[i] * dV.S_energy / … in StatePrimitiveFromEntropy_fwd() 146 dY.temperature = dV.S_energy / (GasConstant(gas) * V.S_energy * V.S_energy); in StatePrimitiveFromEntropy_fwd() 150 …const CeedScalar dentropy = (1 - gamma) * (dV.S_density - e_kinetic * dV.S_energy - de_kinetic *… in StatePrimitiveFromEntropy_fwd() 151 …dY.pressure = s.Y.pressure * (-dentropy - gamma * dV.S_energy / V.S_energy) / (gam… in StatePrimitiveFromEntropy_fwd() [all …]
|
| /libCEED/examples/ceed/ |
| H A D | index.md | 18 I = \int_{\Omega} 1 \, dV . 24 \sum_e \int_{\Omega_e} v(x) 1 \, dV 54 \int_\Omega \nabla v \cdot \nabla u \, dV - \int_{\partial \Omega} v \nabla u \cdot \hat{\bm n}\, d… 60 \int_\Omega \nabla v \cdot \nabla u \, dV \approx \sum_e \int_{\partial \Omega_e} v(x) 1 \, dS . 75 I = \int_{\Omega} \left( 1 + \nabla^2 1 \right) \, dV . 81 \sum_e \int_{\Omega_e}\left( v(x) 1 + \nabla v(x) \cdot 0 \right) \, dV
|
| /libCEED/examples/ |
| H A D | bps.md | 23 …le v,u \rangle &:= \int_{\Omega} \, v \, u \, dV ,\\ \langle v,f \rangle &:= \int_{\Omega} \, v \,… 63 …\int_{\Omega}\nabla v \, \cdot \, \nabla u \, dV ,\\ \langle v,f \rangle &:= \int_{\Omega} \, v \,…
|
| /libCEED/examples/python/ |
| H A D | tutorial-6-shell.ipynb | 51 " I = \\int_{\\Omega} 1 \\, dV .\n", 58 " \\sum_e \\int_{\\Omega_e} v(x) 1 \\, dV\n", 240 …" \\int_\\Omega \\nabla v \\cdot \\nabla u \\, dV - \\int_{\\partial \\Omega} v \\nabla u \\cdot… 246 …" \\int_\\Omega \\nabla v \\cdot \\nabla u \\, dV \\approx \\sum_e \\int_{\\partial \\Omega_e} v…
|
| /libCEED/examples/fluids/ |
| H A D | index.md | 86 …}{\partial t} + \nabla \cdot \bm{F}(\bm{q}_N) - \bm{S}(\bm{q}_N) \right) \,dV = 0 \, , \; \forall … 95 …t_{\Omega} \bm v \cdot \left( \frac{\partial \bm{q}_N}{\partial t} - \bm{S}(\bm{q}_N) \right) \,dV 96 - \int_{\Omega} \nabla \bm v \!:\! \bm{F}(\bm{q}_N)\,dV & \\ 179 …t_{\Omega} \bm v \cdot \left( \frac{\partial \bm{q}_N}{\partial t} - \bm{S}(\bm{q}_N) \right) \,dV 180 - \int_{\Omega} \nabla \bm v \!:\! \bm{F}(\bm{q}_N)\,dV & \\ 183 \nabla \cdot \bm{F} \, (\bm{q}_N) - \bm{S}(\bm{q}_N) \right) \,dV &= 0 196 …t_{\Omega} \bm v \cdot \left( \frac{\partial \bm{q}_N}{\partial t} - \bm{S}(\bm{q}_N) \right) \,dV 197 - \int_{\Omega} \nabla \bm v \!:\! \bm{F}(\bm{q}_N)\,dV & \\ 199 …{\partial \bm F_{\text{adv}}}{\partial \bm q}\right) \bm\tau \nabla \cdot \bm{F} \, (\bm{q}_N) \,dV 585 \int_{\Omega} \nu_{SHOCK} \nabla \bm v \!:\! \nabla \bm q dV
|
| /libCEED/examples/solids/ |
| H A D | index.md | 54 \int_{\Omega}{ \nabla \bm{v} \tcolon \bm{\sigma}} \, dV 56 - \int_{\Omega}{\bm{v} \cdot \bm{g}} \, dV 410 \int_{\Omega_0}{\nabla_X \bm{v} \tcolon \bm{P}} \, dV 411 - \int_{\Omega_0}{\bm{v} \cdot \rho_0 \bm{g}} \, dV 516 \int_{\Omega_0} \nabla_X \bm v \!:\! \diff\bm P dV = \text{rhs}, \quad \forall \bm v \in \mathcal V…
|