Home
last modified time | relevance | path

Searched refs:divisor_threshold (Results 1 – 2 of 2) sorted by relevance

/libCEED/examples/fluids/problems/
H A Dbc_freestream.c232 CeedScalar divisor_threshold = 10 * CEED_EPSILON; in CheckQWithTolerance() local
235 relative_error[0] = RelativeError(Q_s[0], Q_a[0], Q_b[0], divisor_threshold); in CheckQWithTolerance()
236 relative_error[4] = RelativeError(Q_s[4], Q_a[4], Q_b[4], divisor_threshold); in CheckQWithTolerance()
240 relative_error[i] = RelativeError(u_magnitude, Q_a[i], Q_b[i], divisor_threshold); in CheckQWithTolerance()
444 CeedScalar divisor_threshold = 10 * CEED_EPSILON; in TestComputeHLLSpeeds_Roe_fwd() local
447 ds_left_err = RelativeError(ds_left_fd, ds_left, ds_left_fd, divisor_threshold); in TestComputeHLLSpeeds_Roe_fwd()
448 ds_right_err = RelativeError(ds_right_fd, ds_right, ds_right_fd, divisor_threshold); in TestComputeHLLSpeeds_Roe_fwd()
493 CeedScalar divisor_threshold = 10 * CEED_EPSILON; in TestTotalSpecificEnthalpy_fwd() local
496 dH_err = RelativeError(dH_fd, dH, dH_fd, divisor_threshold); in TestTotalSpecificEnthalpy_fwd()
532 CeedScalar divisor_threshold = 10 * CEED_EPSILON; in TestRowSetup_fwd() local
[all …]
H A Dnewtonian.c24 CeedScalar divisor_threshold = 10 * CEED_EPSILON; in CheckQWithTolerance() local
27 relative_error[0] = (Q_a[0] - Q_b[0]) / (fabs(Q_s[0]) > divisor_threshold ? Q_s[0] : 1); in CheckQWithTolerance()
28 relative_error[4] = (Q_a[4] - Q_b[4]) / (fabs(Q_s[4]) > divisor_threshold ? Q_s[4] : 1); in CheckQWithTolerance()
31 CeedScalar u_divisor = u_magnitude > divisor_threshold ? u_magnitude : 1; in CheckQWithTolerance()