Lines Matching refs:coarseRatio
62 const PetscReal coarseRatio = refRatio == (PetscReal)PETSC_DEFAULT ? PetscSqr(0.5) : 1 / refRatio; in DMPlexLabelToMetricConstraint() local
121 metric[v * 4 + 0] += vol * coarseRatio * sol[0]; in DMPlexLabelToMetricConstraint()
122 metric[v * 4 + 1] += vol * coarseRatio * sol[1]; in DMPlexLabelToMetricConstraint()
123 metric[v * 4 + 2] += vol * coarseRatio * sol[1]; in DMPlexLabelToMetricConstraint()
124 metric[v * 4 + 3] += vol * coarseRatio * sol[2]; in DMPlexLabelToMetricConstraint()
126 metric[v * 9 + 0] += vol * coarseRatio * sol[0]; in DMPlexLabelToMetricConstraint()
127 metric[v * 9 + 1] += vol * coarseRatio * sol[1]; in DMPlexLabelToMetricConstraint()
128 metric[v * 9 + 3] += vol * coarseRatio * sol[1]; in DMPlexLabelToMetricConstraint()
129 metric[v * 9 + 2] += vol * coarseRatio * sol[2]; in DMPlexLabelToMetricConstraint()
130 metric[v * 9 + 6] += vol * coarseRatio * sol[2]; in DMPlexLabelToMetricConstraint()
131 metric[v * 9 + 4] += vol * coarseRatio * sol[3]; in DMPlexLabelToMetricConstraint()
132 metric[v * 9 + 5] += vol * coarseRatio * sol[4]; in DMPlexLabelToMetricConstraint()
133 metric[v * 9 + 7] += vol * coarseRatio * sol[4]; in DMPlexLabelToMetricConstraint()
134 metric[v * 9 + 8] += vol * coarseRatio * sol[5]; in DMPlexLabelToMetricConstraint()