Lines Matching refs:h_min

13 …PetscReal h_min = 1.0e-30, h_max = 1.0e+30, a_max = 1.0e+05, p = 1.0, target = 1000.0, beta = 1.3,…  in DMPlexMetricSetFromOptions()  local
37 …tric_h_min", "Minimum tolerated metric magnitude", "DMPlexMetricEnforceSPD", h_min, &h_min, NULL)); in DMPlexMetricSetFromOptions()
38 PetscCall(DMPlexMetricSetMinimumMagnitude(dm, h_min)); in DMPlexMetricSetFromOptions()
402 PetscErrorCode DMPlexMetricSetMinimumMagnitude(DM dm, PetscReal h_min) in DMPlexMetricSetMinimumMagnitude() argument
408 …PetscCheck(h_min > 0.0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Metric magnitudes must be in (… in DMPlexMetricSetMinimumMagnitude()
409 plex->metricCtx->h_min = h_min; in DMPlexMetricSetMinimumMagnitude()
426 PetscErrorCode DMPlexMetricGetMinimumMagnitude(DM dm, PetscReal *h_min) in DMPlexMetricGetMinimumMagnitude() argument
432 *h_min = plex->metricCtx->h_min; in DMPlexMetricGetMinimumMagnitude()
1053 static PetscErrorCode DMPlexMetricModify_Private(PetscInt dim, PetscReal h_min, PetscReal h_max, Pe… in DMPlexMetricModify_Private() argument
1056 …PetscReal *eigs, max_eig, l_min = 1.0 / (h_max * h_max), l_max = 1.0 / (h_min * h_min), la_min =… in DMPlexMetricModify_Private()
1170 PetscReal h_min = 1.0e-30, h_max = 1.0e+30, a_max = 1.0e+15; in DMPlexMetricEnforceSPD() local
1178 PetscCall(DMPlexMetricGetMinimumMagnitude(dm, &h_min)); in DMPlexMetricEnforceSPD()
1180 h_min = PetscMax(h_min, 1.0e-30); in DMPlexMetricEnforceSPD()
1182 …PetscCheck(h_min < h_max, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Minimum metric magnitude sho… in DMPlexMetricEnforceSPD()
1201 PetscCall(DMPlexMetricModify_Private(1, h_min, h_max, a_max, met, det)); in DMPlexMetricEnforceSPD()
1216 PetscCall(DMPlexMetricModify_Private(nrow, h_min, h_max, a_max, vmet, vdet)); in DMPlexMetricEnforceSPD()
1268 …PetscReal p, h_min = 1.0e-30, h_max = 1.0e+30, a_max = 0.0, factGlob, fact, target, realIntegra… in DMPlexMetricNormalize() local
1318 PetscCall(DMPlexMetricGetMinimumMagnitude(dm, &h_min)); in DMPlexMetricNormalize()
1320 h_min = PetscMax(h_min, 1.0e-30); in DMPlexMetricNormalize()
1322 …PetscCheck(h_min < h_max, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Minimum metric magnitude sho… in DMPlexMetricNormalize()
1333 if (restrictSizes) PetscCall(DMPlexMetricModify_Private(1, h_min, h_max, a_max, met, det)); in DMPlexMetricNormalize()
1349 if (restrictSizes) PetscCall(DMPlexMetricModify_Private(nrow, h_min, h_max, a_max, Mp, detM)); in DMPlexMetricNormalize()