| /libCEED/julia/LibCEED.jl/src/ |
| H A D | Misc.jl | 42 @inline function setvoigt!(V, J, ::CeedDim{1}) argument 43 @inbounds V[1] = J[1] 46 @inline function setvoigt!(V, J, ::CeedDim{2}) argument 48 V[1] = J[1] 49 V[2] = J[4] 50 V[3] = J[2] 54 @inline function setvoigt!(V, J, ::CeedDim{3}) argument 56 V[1] = J[1] 57 V[2] = J[5] 58 V[3] = J[9] [all …]
|
| /libCEED/include/ceed/jit-source/sycl/ |
| H A D | sycl-shared-basis-tensor-templates.h | 20 private CeedScalar *restrict V, local CeedScalar *restrict scratch) { in ContractX1d() argument 26 *V = 0.0; in ContractX1d() 29 *V += B[i + item_id_x * P_1D] * scratch[i]; // Contract x direction in ContractX1d() 39 … private CeedScalar *restrict V, local CeedScalar *restrict scratch) { in ContractTransposeX1d() argument 45 *V = 0.0; in ContractTransposeX1d() 48 *V += B[item_id_x + i * P_1D] * scratch[i]; // Contract x direction in ContractTransposeX1d() 110 private CeedScalar *restrict V, local CeedScalar *restrict scratch) { in ContractX2d() argument 117 *V = 0.0; in ContractX2d() 120 *V += B[i + item_id_x * P_1D] * scratch[i + item_id_y * T_1D]; // Contract x direction in ContractX2d() 130 private CeedScalar *restrict V, local CeedScalar *restrict scratch) { in ContractY2d() argument [all …]
|
| /libCEED/examples/fluids/qfunctions/ |
| H A D | newtonian_state.h | 43 CEED_QFUNCTION_HELPER void UnpackState_V(StateEntropy s, CeedScalar V[5]) { in UnpackState_V() 44 V[0] = s.S_density; in UnpackState_V() 45 for (int i = 0; i < 3; i++) V[i + 1] = s.S_momentum[i]; in UnpackState_V() 46 V[4] = s.S_energy; in UnpackState_V() 99 StateEntropy V; in StateEntropyFromPrimitive() local 106 V.S_density = (gamma - entropy) / (gamma - 1) - rho_div_p * e_kinetic; in StateEntropyFromPrimitive() 107 for (int i = 0; i < 3; i++) V.S_momentum[i] = rho_div_p * Y.velocity[i]; in StateEntropyFromPrimitive() 108 V.S_energy = -rho_div_p; in StateEntropyFromPrimitive() 109 return V; in StateEntropyFromPrimitive() 130 …ION_HELPER StatePrimitive StatePrimitiveFromEntropy(NewtonianIdealGasContext gas, StateEntropy V) { in StatePrimitiveFromEntropy() argument [all …]
|
| /libCEED/include/ceed/jit-source/cuda/ |
| H A D | cuda-shared-basis-tensor-templates.h | 20 … void ContractX1d(SharedData_Cuda &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in ContractX1d() argument 24 *V = 0.0; in ContractX1d() 27 *V += B[i + data.t_id_x * P_1D] * data.slice[i]; // Contract x direction in ContractX1d() 36 …tractTransposeX1d(SharedData_Cuda &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in ContractTransposeX1d() argument 40 *V = 0.0; in ContractTransposeX1d() 43 *V += B[data.t_id_x + i * P_1D] * data.slice[i]; // Contract x direction in ContractTransposeX1d() 129 … void ContractX2d(SharedData_Cuda &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in ContractX2d() argument 133 *V = 0.0; in ContractX2d() 136 *V += B[i + data.t_id_x * P_1D] * data.slice[i + data.t_id_y * T_1D]; // Contract x direction in ContractX2d() 145 … void ContractY2d(SharedData_Cuda &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in ContractY2d() argument [all …]
|
| H A D | cuda-shared-basis-tensor-flattened-templates.h | 21 CeedScalar *V) { in ContractX2dFlattened() argument 25 *V = 0.0; in ContractX2dFlattened() 28 *V += B[i + t_id_x * P_1D] * data.slice[i + t_id_y * T_1D]; // Contract x direction in ContractX2dFlattened() 38 CeedScalar *V) { in ContractY2dFlattened() argument 42 *V = 0.0; in ContractY2dFlattened() 45 *V += B[i + t_id_y * P_1D] * data.slice[t_id_x + i * T_1D]; // Contract y direction in ContractY2dFlattened() 55 const CeedScalar *B, CeedScalar *V) { in ContractTransposeY2dFlattened() argument 59 *V = 0.0; in ContractTransposeY2dFlattened() 62 *V += B[t_id_y + i * P_1D] * data.slice[t_id_x + i * T_1D]; // Contract y direction in ContractTransposeY2dFlattened() 72 const CeedScalar *B, CeedScalar *V) { in ContractTransposeX2dFlattened() argument [all …]
|
| H A D | cuda-shared-basis-nontensor-templates.h | 16 …_ void Contract1d(SharedData_Cuda &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in Contract1d() argument 19 *V = 0.0; in Contract1d() 22 *V += B[i + data.t_id_x * P_1D] * data.slice[i]; // Contract x direction in Contract1d() 32 …ntractTranspose1d(SharedData_Cuda &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in ContractTranspose1d() argument 37 *V += B[data.t_id_x + i * P_1D] * data.slice[i]; // Contract x direction in ContractTranspose1d()
|
| /libCEED/include/ceed/jit-source/hip/ |
| H A D | hip-shared-basis-tensor-templates.h | 20 …_ void ContractX1d(SharedData_Hip &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in ContractX1d() argument 24 *V = 0.0; in ContractX1d() 27 *V += B[i + data.t_id_x * P_1D] * data.slice[i]; // Contract x direction in ContractX1d() 36 …ntractTransposeX1d(SharedData_Hip &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in ContractTransposeX1d() argument 40 *V = 0.0; in ContractTransposeX1d() 43 *V += B[data.t_id_x + i * P_1D] * data.slice[i]; // Contract x direction in ContractTransposeX1d() 129 …_ void ContractX2d(SharedData_Hip &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in ContractX2d() argument 133 *V = 0.0; in ContractX2d() 136 *V += B[i + data.t_id_x * P_1D] * data.slice[i + data.t_id_y * T_1D]; // Contract x direction in ContractX2d() 145 …_ void ContractY2d(SharedData_Hip &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in ContractY2d() argument [all …]
|
| H A D | hip-shared-basis-tensor-flattened-templates.h | 21 CeedScalar *V) { in ContractX2dFlattened() argument 25 *V = 0.0; in ContractX2dFlattened() 28 *V += B[i + t_id_x * P_1D] * data.slice[i + t_id_y * T_1D]; // Contract x direction in ContractX2dFlattened() 38 CeedScalar *V) { in ContractY2dFlattened() argument 42 *V = 0.0; in ContractY2dFlattened() 45 *V += B[i + t_id_y * P_1D] * data.slice[t_id_x + i * T_1D]; // Contract y direction in ContractY2dFlattened() 55 const CeedScalar *B, CeedScalar *V) { in ContractTransposeY2dFlattened() argument 59 *V = 0.0; in ContractTransposeY2dFlattened() 62 *V += B[t_id_y + i * P_1D] * data.slice[t_id_x + i * T_1D]; // Contract y direction in ContractTransposeY2dFlattened() 72 const CeedScalar *B, CeedScalar *V) { in ContractTransposeX2dFlattened() argument [all …]
|
| H A D | hip-shared-basis-nontensor-templates.h | 16 …__ void Contract1d(SharedData_Hip &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in Contract1d() argument 19 *V = 0.0; in Contract1d() 22 *V += B[i + data.t_id_x * P_1D] * data.slice[i]; // Contract x direction in Contract1d() 32 …ontractTranspose1d(SharedData_Hip &data, const CeedScalar *U, const CeedScalar *B, CeedScalar *V) { in ContractTranspose1d() argument 37 *V += B[data.t_id_x + i * P_1D] * data.slice[i]; // Contract x direction in ContractTranspose1d()
|
| /libCEED/doc/sphinx/source/api/ |
| H A D | index.rst | 21 U -->|wrap data| V 27 B --> V(CeedVector) 28 O --> V 29 E --> V 30 Q --> V
|
| /libCEED/examples/petsc/ |
| H A D | area.c | 68 Vec U, U_loc, V, V_loc; in main() local 143 PetscCall(VecDuplicate(U, &V)); in main() 188 PetscCall(VecZeroEntries(V)); in main() 189 PetscCall(DMLocalToGlobalBegin(dm, V_loc, ADD_VALUES, V)); in main() 190 PetscCall(DMLocalToGlobalEnd(dm, V_loc, ADD_VALUES, V)); in main() 194 PetscCall(VecSum(V, &area)); in main() 214 PetscCall(VecDestroy(&V)); in main()
|
| /libCEED/examples/ |
| H A D | bps.md | 14 …, posed as a weak form on a Hilbert space $V^p \subset H^1$, i.e., find $u \in V^p$ such that for … 20 …express the continuous bilinear and linear forms, respectively, defined on $V^p$, and, for suffici… 54 …ned via the following variational formulation, i.e., find $u \in V^p$ such that for all $v \in V^p$ 60 where now $a (v,u)$ expresses the continuous bilinear form defined on $V^p$ for sufficiently regula…
|
| /libCEED/backends/ref/ |
| H A D | ceed-ref-qfunction.c | 17 static int CeedQFunctionApply_Ref(CeedQFunction qf, CeedInt Q, CeedVector *U, CeedVector *V) { in CeedQFunctionApply_Ref() argument 32 CeedCallBackend(CeedVectorGetArrayWrite(V[i], CEED_MEM_HOST, &impl->outputs[i])); in CeedQFunctionApply_Ref() 41 CeedCallBackend(CeedVectorRestoreArray(V[i], &impl->outputs[i])); in CeedQFunctionApply_Ref()
|
| H A D | ceed-ref-basis.c | 20 CeedVector V) { in CeedBasisApplyCore_Ref() argument 38 if (apply_add) CeedCallBackend(CeedVectorGetArray(V, CEED_MEM_HOST, &v)); in CeedBasisApplyCore_Ref() 39 else CeedCallBackend(CeedVectorGetArrayWrite(V, CEED_MEM_HOST, &v)); in CeedBasisApplyCore_Ref() 44 CeedCallBackend(CeedVectorGetLength(V, &len)); in CeedBasisApplyCore_Ref() 249 CeedCallBackend(CeedVectorRestoreArray(V, &v)); in CeedBasisApplyCore_Ref() 253 …, CeedInt num_elem, CeedTransposeMode t_mode, CeedEvalMode eval_mode, CeedVector U, CeedVector V) { in CeedBasisApply_Ref() argument 254 CeedCallBackend(CeedBasisApplyCore_Ref(basis, false, num_elem, t_mode, eval_mode, U, V)); in CeedBasisApply_Ref() 258 …, CeedInt num_elem, CeedTransposeMode t_mode, CeedEvalMode eval_mode, CeedVector U, CeedVector V) { in CeedBasisApplyAdd_Ref() argument 259 CeedCallBackend(CeedBasisApplyCore_Ref(basis, true, num_elem, t_mode, eval_mode, U, V)); in CeedBasisApplyAdd_Ref()
|
| /libCEED/backends/memcheck/ |
| H A D | ceed-memcheck-qfunction.c | 19 static int CeedQFunctionApply_Memcheck(CeedQFunction qf, CeedInt Q, CeedVector *U, CeedVector *V) { in CeedQFunctionApply_Memcheck() argument 50 CeedCallBackend(CeedVectorGetArrayWrite(V[i], CEED_MEM_HOST, &impl->outputs[i])); in CeedQFunctionApply_Memcheck() 52 CeedCallBackend(CeedVectorGetLength(V[i], &len)); in CeedQFunctionApply_Memcheck() 87 CeedCallBackend(CeedVectorRestoreArray(V[i], &impl->outputs[i])); in CeedQFunctionApply_Memcheck()
|
| /libCEED/backends/cuda-ref/ |
| H A D | ceed-cuda-ref-qfunction.c | 21 static int CeedQFunctionApply_Cuda(CeedQFunction qf, CeedInt Q, CeedVector *U, CeedVector *V) { in CeedQFunctionApply_Cuda() argument 41 CeedCallBackend(CeedVectorGetArrayWrite(V[i], CEED_MEM_DEVICE, &data->fields.outputs[i])); in CeedQFunctionApply_Cuda() 56 CeedCallBackend(CeedVectorRestoreArray(V[i], &data->fields.outputs[i])); in CeedQFunctionApply_Cuda()
|
| /libCEED/backends/hip-ref/ |
| H A D | ceed-hip-ref-qfunction.c | 21 static int CeedQFunctionApply_Hip(CeedQFunction qf, CeedInt Q, CeedVector *U, CeedVector *V) { in CeedQFunctionApply_Hip() argument 42 CeedCallBackend(CeedVectorGetArrayWrite(V[i], CEED_MEM_DEVICE, &data->fields.outputs[i])); in CeedQFunctionApply_Hip() 58 CeedCallBackend(CeedVectorRestoreArray(V[i], &data->fields.outputs[i])); in CeedQFunctionApply_Hip()
|
| /libCEED/backends/sycl-ref/ |
| H A D | ceed-sycl-ref-qfunction.sycl.cpp | 26 static int CeedQFunctionApply_Sycl(CeedQFunction qf, CeedInt Q, CeedVector *U, CeedVector *V) { in CeedQFunctionApply_Sycl() argument 53 CeedVector *V_i = V; in CeedQFunctionApply_Sycl() 99 V_i = V; in CeedQFunctionApply_Sycl()
|
| /libCEED/examples/fluids/src/ |
| H A D | petsc_ops.c | 30 Vec V; in DMGetGlobalVectorInfo() local 33 PetscCall(DMGetGlobalVector(dm, &V)); in DMGetGlobalVectorInfo() 34 if (local_size) PetscCall(VecGetLocalSize(V, local_size)); in DMGetGlobalVectorInfo() 35 if (global_size) PetscCall(VecGetSize(V, global_size)); in DMGetGlobalVectorInfo() 36 if (vec_type) PetscCall(VecGetType(V, vec_type)); in DMGetGlobalVectorInfo() 37 PetscCall(DMRestoreGlobalVector(dm, &V)); in DMGetGlobalVectorInfo()
|
| /libCEED/ |
| H A D | common.mk | 23 quiet = $(if $(V),$($(1)),$(call output,$1,$@);$($(1)))
|
| /libCEED/rust/libceed-sys/c-src/ |
| H A D | common.mk | 23 quiet = $(if $(V),$($(1)),$(call output,$1,$@);$($(1)))
|
| /libCEED/backends/magma/tuning/ |
| H A D | Makefile | 18 V ?= $(VERBOSE) macro
|
| /libCEED/backends/hip-gen/ |
| H A D | ceed-hip-gen-qfunction.c | 18 static int CeedQFunctionApply_Hip_gen(CeedQFunction qf, CeedInt Q, CeedVector *U, CeedVector *V) { in CeedQFunctionApply_Hip_gen() argument
|
| /libCEED/backends/cuda-gen/ |
| H A D | ceed-cuda-gen-qfunction.c | 18 static int CeedQFunctionApply_Cuda_gen(CeedQFunction qf, CeedInt Q, CeedVector *U, CeedVector *V) { in CeedQFunctionApply_Cuda_gen() argument
|
| /libCEED/examples/solids/include/ |
| H A D | misc.h | 19 PetscErrorCode SetupJacobianCtx(MPI_Comm comm, AppCtx app_ctx, DM dm, Vec V, Vec V_loc, CeedData ce…
|