Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 56) sorted by relevance

123

/libCEED/include/ceed/jit-source/hip/
H A Dhip-ref-restriction-curl-oriented.h28 CeedScalar value = 0.0; in CurlOrientedNoTranspose() local
29 value += loc_node > 0 ? u[ind_dl + comp * RSTR_COMP_STRIDE] * curl_orient_dl : 0.0; in CurlOrientedNoTranspose()
30 value += u[ind_d + comp * RSTR_COMP_STRIDE] * curl_orient_d; in CurlOrientedNoTranspose()
31value += loc_node < (RSTR_ELEM_SIZE - 1) ? u[ind_du + comp * RSTR_COMP_STRIDE] * curl_orient_du : … in CurlOrientedNoTranspose()
32 v[loc_node + comp * RSTR_ELEM_SIZE * RSTR_NUM_ELEM + elem * RSTR_ELEM_SIZE] = value; in CurlOrientedNoTranspose()
53 CeedScalar value = 0.0; in CurlOrientedUnsignedNoTranspose() local
54 value += loc_node > 0 ? u[ind_dl + comp * RSTR_COMP_STRIDE] * curl_orient_dl : 0.0; in CurlOrientedUnsignedNoTranspose()
55 value += u[ind_d + comp * RSTR_COMP_STRIDE] * curl_orient_d; in CurlOrientedUnsignedNoTranspose()
56value += loc_node < (RSTR_ELEM_SIZE - 1) ? u[ind_du + comp * RSTR_COMP_STRIDE] * curl_orient_du : … in CurlOrientedUnsignedNoTranspose()
57 v[loc_node + comp * RSTR_ELEM_SIZE * RSTR_NUM_ELEM + elem * RSTR_ELEM_SIZE] = value; in CurlOrientedUnsignedNoTranspose()
[all …]
H A Dhip-ref-restriction-at-points.h33 CeedScalar value[RSTR_NUM_COMP]; in AtPointsTranspose() local
40 for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) value[comp] = 0.0; in AtPointsTranspose()
49 value[comp] += u[loc_node + comp * RSTR_ELEM_SIZE * RSTR_NUM_ELEM + elem * RSTR_ELEM_SIZE]; in AtPointsTranspose()
53 …for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) v[ind + comp * RSTR_COMP_STRIDE] += value[com… in AtPointsTranspose()
H A Dhip-ref-restriction-offset.h45 CeedScalar value[RSTR_NUM_COMP]; in OffsetTranspose() local
52 for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) value[comp] = 0.0; in OffsetTranspose()
60 value[comp] += u[loc_node + comp * RSTR_ELEM_SIZE * RSTR_NUM_ELEM + elem * RSTR_ELEM_SIZE]; in OffsetTranspose()
64 …for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) v[ind + comp * RSTR_COMP_STRIDE] += value[com… in OffsetTranspose()
H A Dhip-ref-restriction-oriented.h51 CeedScalar value[RSTR_NUM_COMP]; in OrientedTranspose() local
58 for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) value[comp] = 0.0; in OrientedTranspose()
67value[comp] += u[loc_node + comp * RSTR_ELEM_SIZE * RSTR_NUM_ELEM + elem * RSTR_ELEM_SIZE] * (orie… in OrientedTranspose()
71 …for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) v[ind + comp * RSTR_COMP_STRIDE] += value[com… in OrientedTranspose()
/libCEED/include/ceed/jit-source/cuda/
H A Dcuda-ref-restriction-curl-oriented.h28 CeedScalar value = 0.0; in CurlOrientedNoTranspose() local
29 value += loc_node > 0 ? u[ind_dl + comp * RSTR_COMP_STRIDE] * curl_orient_dl : 0.0; in CurlOrientedNoTranspose()
30 value += u[ind_d + comp * RSTR_COMP_STRIDE] * curl_orient_d; in CurlOrientedNoTranspose()
31value += loc_node < (RSTR_ELEM_SIZE - 1) ? u[ind_du + comp * RSTR_COMP_STRIDE] * curl_orient_du : … in CurlOrientedNoTranspose()
32 v[loc_node + comp * RSTR_ELEM_SIZE * RSTR_NUM_ELEM + elem * RSTR_ELEM_SIZE] = value; in CurlOrientedNoTranspose()
53 CeedScalar value = 0.0; in CurlOrientedUnsignedNoTranspose() local
54 value += loc_node > 0 ? u[ind_dl + comp * RSTR_COMP_STRIDE] * curl_orient_dl : 0.0; in CurlOrientedUnsignedNoTranspose()
55 value += u[ind_d + comp * RSTR_COMP_STRIDE] * curl_orient_d; in CurlOrientedUnsignedNoTranspose()
56value += loc_node < (RSTR_ELEM_SIZE - 1) ? u[ind_du + comp * RSTR_COMP_STRIDE] * curl_orient_du : … in CurlOrientedUnsignedNoTranspose()
57 v[loc_node + comp * RSTR_ELEM_SIZE * RSTR_NUM_ELEM + elem * RSTR_ELEM_SIZE] = value; in CurlOrientedUnsignedNoTranspose()
[all …]
H A Dcuda-ref-restriction-at-points.h33 CeedScalar value[RSTR_NUM_COMP]; in AtPointsTranspose() local
40 for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) value[comp] = 0.0; in AtPointsTranspose()
49 value[comp] += u[loc_node + comp * RSTR_ELEM_SIZE * RSTR_NUM_ELEM + elem * RSTR_ELEM_SIZE]; in AtPointsTranspose()
53 …for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) v[ind + comp * RSTR_COMP_STRIDE] += value[com… in AtPointsTranspose()
H A Dcuda-ref-restriction-offset.h45 CeedScalar value[RSTR_NUM_COMP]; in OffsetTranspose() local
52 for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) value[comp] = 0.0; in OffsetTranspose()
60 value[comp] += u[loc_node + comp * RSTR_ELEM_SIZE * RSTR_NUM_ELEM + elem * RSTR_ELEM_SIZE]; in OffsetTranspose()
64 …for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) v[ind + comp * RSTR_COMP_STRIDE] += value[com… in OffsetTranspose()
H A Dcuda-ref-restriction-oriented.h51 CeedScalar value[RSTR_NUM_COMP]; in OrientedTranspose() local
58 for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) value[comp] = 0.0; in OrientedTranspose()
67value[comp] += u[loc_node + comp * RSTR_ELEM_SIZE * RSTR_NUM_ELEM + elem * RSTR_ELEM_SIZE] * (orie… in OrientedTranspose()
71 …for (CeedInt comp = 0; comp < RSTR_NUM_COMP; comp++) v[ind + comp * RSTR_COMP_STRIDE] += value[com… in OrientedTranspose()
H A Dcuda-gen-templates.h60 …tandard1d_Single(SharedData_Cuda &data, const CeedInt n, const CeedScalar value, CeedScalar *__res… in SetEVecStandard1d_Single() argument
65 r_v[target_comp] = value; in SetEVecStandard1d_Single()
181 …tandard2d_Single(SharedData_Cuda &data, const CeedInt n, const CeedScalar value, CeedScalar *__res… in SetEVecStandard2d_Single() argument
187 r_v[target_comp] = value; in SetEVecStandard2d_Single()
310 …tandard3d_Single(SharedData_Cuda &data, const CeedInt n, const CeedScalar value, CeedScalar *__res… in SetEVecStandard3d_Single() argument
317 r_v[target_node_z + target_comp * P_1D] = value; in SetEVecStandard3d_Single()
/libCEED/tests/
H A Dt127-vector.c26 CeedScalar value = (i - start) % step == 0 ? 42.0 : 1.0; in main() local
28 if (read_array[i] != value) { in main()
30 …setting value in x at index %" CeedInt_FMT ", computed: %f actual: %f\n", i, read_array[i], value); in main()
45 CeedScalar value = (i - start) % step == 0 ? 42.0 : 0.0; in main() local
47 if (read_array[i] != value) { in main()
49 …copying value to y at index %" CeedInt_FMT ", computed: %f actual: %f\n", i, read_array[i], value); in main()
H A Dt101-vector.c11 static int CheckValues(Ceed ceed, CeedVector x, CeedScalar value) { in CheckValues() argument
18 …if (read_array[i] != value) printf("Error reading array[%" CeedInt_FMT "] = %f", i, (CeedScalar)re… in CheckValues()
H A Djunit_common.py79 return self.value
82 return self.value
344 value = match.group(2) if match.group(2) else match.group(3)
348 value = [constraint.strip() for constraint in value.split(',')]
351 known[key] = test_fields[index].type(value) # type: ignore
354 known[key] = get_origin(test_fields[index].type)(value) # type: ignore
356 other[key] = value
/libCEED/examples/fluids/
H A Dpytorch_pkgconfig.py16 def add_variable(file, variable, value): argument
20 def add_keyword(file, key, value): argument
63 for variable, value in variables.items():
64 add_variable(file, variable, value)
68 for keyword, value in keywords.items():
69 add_keyword(file, keyword, value)
H A DMakefile84 $(info [ value]: $(value $*))
85 $(info [expanded value]: $($*))
H A DREADME.md36 - Default value
311 - Default value
431 - Default value
480 - Default value
519 - Default value
682 - Default value
741 - Default value
795 - Default value
849 - Default value
893 - Default value
[all …]
/libCEED/
H A DDoxyfile11 # TAG = value [value, ...]
13 # TAG += value [value, ...]
35 # The default value is: UTF-8.
43 # The default value is: My Project.
80 # The default value is: NO.
87 # directories at level 8 which is the default and also the maximum value. The
90 # Minimum value: 0, maximum value: 8, default value: 8.
99 # The default value is: NO.
114 # The default value is: English.
121 # The default value is: YES.
[all …]
/libCEED/examples/fluids/meshes/
H A DMakefile27 $(info [ value]: $(value $*))
28 $(info [expanded value]: $($*))
/libCEED/examples/fluids/include/
H A Dmat-ceed.h24 PETSC_CEED_INTERN PetscErrorCode MatCeedSetContextDouble(Mat mat, const char *name, double value);
25 PETSC_CEED_INTERN PetscErrorCode MatCeedGetContextDouble(Mat mat, const char *name, double *value);
26 PETSC_CEED_EXTERN PetscErrorCode MatCeedSetContextReal(Mat mat, const char *name, PetscReal value);
27 PETSC_CEED_EXTERN PetscErrorCode MatCeedGetContextReal(Mat mat, const char *name, PetscReal *value);
/libCEED/examples/solids/include/
H A Dsetup-libceed.h24 …nFromPlex(Ceed ceed, DM dm, CeedInt height, DMLabel domain_label, CeedInt value, CeedElemRestricti…
27 …orDomain(Ceed ceed, DM dm, CeedInt height, DMLabel domain_label, PetscInt value, CeedInt Q, CeedIn…
/libCEED/benchmarks/
H A DREADME.md30 bound of the problem sizes, per compute node; the default value is 3*2^20.
32 tests will be run (the lowest degree is 1); the default value is 8.
/libCEED/examples/fluids/src/
H A Dmat-ceed.c755 PetscErrorCode MatCeedSetContextDouble(Mat mat, const char *name, double value) { in MatCeedSetContextDouble() argument
766 double set_value = 2 * value + 1.0; in MatCeedSetContextDouble()
769 if (set_value != value) { in MatCeedSetContextDouble()
770 PetscCallCeed(ctx->ceed, CeedOperatorSetContextDouble(ctx->op_mult, label, &value)); in MatCeedSetContextDouble()
778 double set_value = 2 * value + 1.0; in MatCeedSetContextDouble()
781 if (set_value != value) { in MatCeedSetContextDouble()
782 … PetscCallCeed(ctx->ceed, CeedOperatorSetContextDouble(ctx->op_mult_transpose, label, &value)); in MatCeedSetContextDouble()
806 PetscErrorCode MatCeedGetContextDouble(Mat mat, const char *name, double *value) { in MatCeedGetContextDouble() argument
825 *value = values_ceed[0]; in MatCeedGetContextDouble()
843 PetscErrorCode MatCeedSetContextReal(Mat mat, const char *name, PetscReal value) { in MatCeedSetContextReal() argument
[all …]
/libCEED/backends/sycl/
H A Dceed-sycl-compile.sycl.cpp35 for (const auto &[name, value] : constants) {
36 oss << "#define " << name << " " << value << "\n";
/libCEED/python/tests/
H A Dtest-3-basis.py299 value = dfeval(xq[0 * Q + i], xq[1 * Q + i])
300 assert math.fabs(out_array[0 * Q + i] - value) < 10. * TOL
302 value = dfeval(xq[1 * Q + i], xq[0 * Q + i])
303 assert math.fabs(out_array[1 * Q + i] - value) < 10. * TOL
H A Dtest-1-vector.py23 def check_values(ceed, x, value): argument
26 assert b[i] == value
55 value = 1
/libCEED/interface/
H A Dceed-vector.c377 int CeedVectorSetValue(CeedVector vec, CeedScalar value) { in CeedVectorSetValue() argument
383 CeedCall(vec->SetValue(vec, value)); in CeedVectorSetValue()
391 for (CeedSize i = 0; i < length; i++) array[i] = value; in CeedVectorSetValue()
412 …orSetValueStrided(CeedVector vec, CeedSize start, CeedSize stop, CeedSize step, CeedScalar value) { in CeedVectorSetValueStrided() argument
423 CeedCall(vec->SetValueStrided(vec, start, stop, step, value)); in CeedVectorSetValueStrided()
431 for (CeedSize i = start; i < stop; i += step) array[i] = value; in CeedVectorSetValueStrided()

123