Home
last modified time | relevance | path

Searched refs:rtol (Results 1 – 3 of 3) sorted by relevance

/honee/problems/
H A Dnewtonian.c736 CeedScalar rtol; in UnitTests_Newtonian() local
755 rtol = 20 * CEED_EPSILON; in UnitTests_Newtonian()
756 PetscCall(TestState(STATEVAR_PRIMITIVE, STATEVAR_CONSERVATIVE, gas, Y0, rtol, rtol, rtol)); in UnitTests_Newtonian()
757 PetscCall(TestState(STATEVAR_PRIMITIVE, STATEVAR_ENTROPY, gas, Y0, rtol, rtol, rtol)); in UnitTests_Newtonian()
758 PetscCall(TestState(STATEVAR_CONSERVATIVE, STATEVAR_PRIMITIVE, gas, U0, rtol, rtol, rtol)); in UnitTests_Newtonian()
759 PetscCall(TestState(STATEVAR_CONSERVATIVE, STATEVAR_ENTROPY, gas, U0, rtol, rtol, rtol)); in UnitTests_Newtonian()
760 PetscCall(TestState(STATEVAR_ENTROPY, STATEVAR_CONSERVATIVE, gas, V0, rtol, rtol, rtol)); in UnitTests_Newtonian()
761 PetscCall(TestState(STATEVAR_ENTROPY, STATEVAR_PRIMITIVE, gas, V0, rtol, rtol, rtol)); in UnitTests_Newtonian()
763 rtol = 5e-6; in UnitTests_Newtonian()
764 PetscCall(TestState_fwd(STATEVAR_PRIMITIVE, STATEVAR_CONSERVATIVE, gas, Y0, rtol, rtol, rtol)); in UnitTests_Newtonian()
[all …]
H A Dbc_freestream.c17 static PetscErrorCode RiemannSolverUnitTests(NewtonianIGProperties gas, CeedScalar rtol);
341 static PetscErrorCode TestComputeHLLSpeeds_Roe_fwd(NewtonianIGProperties gas, CeedScalar rtol) { in TestComputeHLLSpeeds_Roe_fwd() argument
408 …if (fabs(ds_left_err) >= rtol) printf("%s ds_left error %g (expected %.10e, got %.10e)\n", buf, ds… in TestComputeHLLSpeeds_Roe_fwd()
409 …if (fabs(ds_right_err) >= rtol) printf("%s ds_right error %g (expected %.10e, got %.10e)\n", buf, … in TestComputeHLLSpeeds_Roe_fwd()
416 static PetscErrorCode TestTotalSpecificEnthalpy_fwd(NewtonianIGProperties gas, CeedScalar rtol) { in TestTotalSpecificEnthalpy_fwd() argument
456 …if (fabs(dH_err) >= rtol) printf("%s dH error %g (expected %.10e, got %.10e)\n", buf, dH_err, dH_f… in TestTotalSpecificEnthalpy_fwd()
463 static PetscErrorCode TestRowSetup_fwd(NewtonianIGProperties gas, CeedScalar rtol) { in TestRowSetup_fwd() argument
496 …if (fabs(dR_err.left) >= rtol) printf("%s dR.left error %g (expected %.10e, got %.10e)\n", buf, dR… in TestRowSetup_fwd()
497 …if (fabs(dR_err.right) >= rtol) printf("%s dR.right error %g (expected %.10e, got %.10e)\n", buf, … in TestRowSetup_fwd()
504 static PetscErrorCode RiemannSolverUnitTests(NewtonianIGProperties gas, CeedScalar rtol) { in RiemannSolverUnitTests() argument
[all …]
/honee/tests/
H A Dsmartsim_regression_framework.py56 def verify_training_data(database_array, correct_array, ceed_resource, atol=1e-8, rtol=1e-8): argument
65 if not np.allclose(database_array, correct_array, atol=atol, rtol=rtol):
67 … total_tolerances = atol + rtol * np.abs(correct_array) # mimic np.allclose tolerance calculation
76 atol=atol, rtol=rtol) else True