Home
last modified time | relevance | path

Searched refs:tol (Results 1 – 21 of 21) sorted by relevance

/libCEED/tests/
H A Dt365-basis.c16 CeedScalar tol; in GetTolerance() local
18 if (dim == 3) tol = 0.005; in GetTolerance()
19 else tol = 1.e-4; in GetTolerance()
21 tol = 1.e-11; in GetTolerance()
23 return tol; in GetTolerance()
106 CeedScalar tol = GetTolerance(scalar_type, dim); in main() local
108 …if (fabs(sum_1 - 2.0 * sum_2) > tol) printf("[%" CeedInt_FMT "] %f != %f\n", dim, sum_1, 2.0 * sum… in main()
H A Dt361-basis.c16 CeedScalar tol; in GetTolerance() local
18 if (dim == 3) tol = 0.05; in GetTolerance()
19 else tol = 1.e-3; in GetTolerance()
21 tol = 1.e-10; in GetTolerance()
23 return 2.0 * tol; in GetTolerance()
100 CeedScalar tol = GetTolerance(scalar_type, dim); in main() local
102 … if (fabs(sum_1 - sum_2) > tol) printf("[%" CeedInt_FMT "] %0.12f != %0.12f\n", dim, sum_1, sum_2); in main()
H A Dt315-basis.c16 CeedScalar tol; in GetTolerance() local
18 if (dim == 3) tol = 5.e-3; in GetTolerance()
19 else tol = 1.e-4; in GetTolerance()
21 tol = 1.e-11; in GetTolerance()
23 return tol; in GetTolerance()
98 CeedScalar tol = GetTolerance(scalar_type, dim); in main() local
100 if (fabs(sum_1 - sum_2) > tol) printf("[%" CeedInt_FMT "] %f != %f\n", dim, sum_1, sum_2); in main()
H A Dt314-basis.c16 CeedScalar tol; in GetTolerance() local
18 if (dim == 3) tol = 0.05; in GetTolerance()
19 else tol = 1.e-3; in GetTolerance()
21 tol = 1.e-10; in GetTolerance()
23 return tol; in GetTolerance()
98 CeedScalar tol = GetTolerance(scalar_type, dim); in main() local
100 … if (fabs(sum_1 - sum_2) > tol) printf("[%" CeedInt_FMT "] %0.12f != %0.12f\n", dim, sum_1, sum_2); in main()
H A Dt357-basis.c16 CeedScalar tol; in GetTolerance() local
18 if (dim == 3) tol = 0.005; in GetTolerance()
19 else tol = 1.e-4; in GetTolerance()
21 tol = 1.e-11; in GetTolerance()
23 return tol; in GetTolerance()
104 CeedScalar tol = GetTolerance(scalar_type, dim); in main() local
106 if (fabs(sum_1 - sum_2) > tol) printf("[%" CeedInt_FMT "] %f != %f\n", dim, sum_1, sum_2); in main()
H A Dt316-basis.c16 CeedScalar tol; in GetTolerance() local
18 if (dim == 3) tol = 0.005; in GetTolerance()
19 else tol = 1.e-4; in GetTolerance()
21 tol = 1.e-11; in GetTolerance()
23 return tol; in GetTolerance()
98 CeedScalar tol = GetTolerance(scalar_type, dim); in main() local
100 if (fabs(sum_1 - sum_2) > tol) printf("[%" CeedInt_FMT "] %f != %f\n", dim, sum_1, sum_2); in main()
H A Dt319-basis.c28 CeedScalar tol; in GetTolerance() local
30 if (dim == 3) tol = 1.e-4; in GetTolerance()
31 else tol = 1.e-5; in GetTolerance()
33 tol = 1.e-11; in GetTolerance()
35 return tol; in GetTolerance()
40 CeedScalar tol; in VerifyProjectedBasis() local
46 tol = GetTolerance(scalar_type, dim); in VerifyProjectedBasis()
77 …if (fabs(u - u_array[i]) > tol) printf("[%" CeedInt_FMT ", %" CeedInt_FMT "] %f != %f\n", dim, i, … in VerifyProjectedBasis()
99 if (fabs(du - du_array[p_to_dim * d + i]) > tol) { in VerifyProjectedBasis()
224 CeedScalar tol = 100 * CEED_EPSILON; in main() local
[all …]
/libCEED/examples/python/
H A Dex3_volume.py169 tol = 200 * libceed.EPSILON if dim == 1 else 1e-5
170 if abs(volume - exact_volume) > tol:
H A Dex1_volume.py172 tol = 200 * libceed.EPSILON if dim == 1 else 1e-5
173 if abs(volume - exact_volume) > tol:
H A Dex2_surface.py177 tol = 10000 * libceed.EPSILON if dim == 1 else 1e-1
178 if abs(surface_area - exact_surface_area) > tol:
/libCEED/examples/petsc/
H A Darea.c203 PetscReal tol = 5e-6; in main() local
204 if (!test_mode || error > tol) { in main()
H A Dbpssphere.c282 PetscReal tol = 5e-4; in main() local
283 if (!test_mode || l2_error > tol) { in main()
H A Dbps.c273 … PetscReal tol = rp->bp_choice < CEED_BP3 ? 5e-4 : (5e-2 + (rp->bp_choice % 2 == 1 ? 5e-3 : 0)); in RunWithDM() local
274 if (!rp->test_mode || l2_error > tol) { in RunWithDM()
H A Dmultigrid.c510 PetscReal tol = 5e-2; in main() local
511 if (!test_mode || l2_error > tol) { in main()
H A Dbpsraw.c758 PetscReal tol = 5e-2; in main() local
759 if (!test_mode || max_error > tol) { in main()
/libCEED/examples/nek/bps/
H A Dbps.usr767 tol = 1e-10
768 param(22) = tol
881 call cggos(u1,r1,h1,h2,vmult,binvm1,tol,ceed,op_mass,
916 call cggos(u1,r2,h1,h2,vmult,binvm1,tol,ceed,op_mass,
951 call cggos(u1,r3,h1,h2,vmult,binvm1,tol,ceed,op_mass,
1084 tol = 1e-10
1085 param(22) = tol
1203 call cggos(u1,r1,h1,h2,vmult,binvm1,tol,ceed,op_diffusion,
1238 call cggos(u1,r2,h1,h2,vmult,binvm1,tol,ceed,op_diffusion,
1273 call cggos(u1,r3,h1,h2,vmult,binvm1,tol,ceed,op_diffusion,
[all …]
/libCEED/examples/ceed/
H A Dex2-surface.c290 CeedScalar tol = (dim == 1 ? 10000. * CEED_EPSILON : dim == 2 ? 1E-1 : 1E-1); in main() local
292 …if (fabs(surface_area - exact_surface_area) > tol) printf("Surface area error : % .14g\n",… in main()
H A Dex3-volume.c259 CeedScalar tol = (dim == 1 ? 200. * CEED_EPSILON : dim == 2 ? 1E-5 : 1E-5); in main() local
261 if (fabs(volume - exact_volume) > tol) printf("Volume error : % .1e\n", volume - exact_volume); in main()
H A Dex1-volume.c270 CeedScalar tol = (dim == 1 ? 200. * CEED_EPSILON : dim == 2 ? 1E-5 : 1E-5); in main() local
272 if (fabs(volume - exact_volume) > tol) printf("Volume error : % .1e\n", volume - exact_volume); in main()
/libCEED/examples/rust-qfunctions/
H A Dex1-volume.c280 CeedScalar tol = (dim == 1 ? 200. * CEED_EPSILON : dim == 2 ? 1E-5 : 1E-5); in main() local
282 if (fabs(volume - exact_volume) > tol) printf("Volume error : % .1e\n", volume - exact_volume); in main()
/libCEED/interface/
H A Dceed-basis.c1362 CeedScalar tol = CEED_EPSILON; in CeedSymmetricSchurDecomposition() local
1369 if (fabs(mat_T[i + n * (i + 1)]) < tol) q += 1; in CeedSymmetricSchurDecomposition()
1373 if (fabs(mat_T[i + n * (i + 1)]) < tol) p += 1; in CeedSymmetricSchurDecomposition()
1389 if (fabs(z) > tol) { in CeedSymmetricSchurDecomposition()