Lines Matching refs:h_max

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
39 …tric_h_max", "Maximum tolerated metric magnitude", "DMPlexMetricEnforceSPD", h_max, &h_max, NULL)); in DMPlexMetricSetFromOptions()
40 PetscCall(DMPlexMetricSetMaximumMagnitude(dm, h_max)); in DMPlexMetricSetFromOptions()
447 PetscErrorCode DMPlexMetricSetMaximumMagnitude(DM dm, PetscReal h_max) in DMPlexMetricSetMaximumMagnitude() argument
453 …PetscCheck(h_max > 0.0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Metric magnitudes must be in (… in DMPlexMetricSetMaximumMagnitude()
454 plex->metricCtx->h_max = h_max; in DMPlexMetricSetMaximumMagnitude()
471 PetscErrorCode DMPlexMetricGetMaximumMagnitude(DM dm, PetscReal *h_max) in DMPlexMetricGetMaximumMagnitude() argument
477 *h_max = plex->metricCtx->h_max; in DMPlexMetricGetMaximumMagnitude()
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
1179 PetscCall(DMPlexMetricGetMaximumMagnitude(dm, &h_max)); in DMPlexMetricEnforceSPD()
1181 h_max = PetscMin(h_max, 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
1319 PetscCall(DMPlexMetricGetMaximumMagnitude(dm, &h_max)); in DMPlexMetricNormalize()
1321 h_max = PetscMin(h_max, 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()