Lines Matching refs:num_levels
157 PetscInt num_levels, l; in PCGetCoarseOperators_BoomerAMG() local
164 num_levels = hypre_ParAMGDataNumLevels((hypre_ParAMGData *)jac->hsolver); in PCGetCoarseOperators_BoomerAMG()
165 PetscCall(PetscMalloc1(num_levels, &mattmp)); in PCGetCoarseOperators_BoomerAMG()
167 for (l = 1; l < num_levels; l++) { in PCGetCoarseOperators_BoomerAMG()
168 …PetscCall(MatCreateFromParCSR(A_array[l], MATAIJ, PETSC_OWN_POINTER, &mattmp[num_levels - 1 - l])); in PCGetCoarseOperators_BoomerAMG()
172 *nlevels = num_levels; in PCGetCoarseOperators_BoomerAMG()
186 PetscInt num_levels, l; in PCGetInterpolations_BoomerAMG() local
193 num_levels = hypre_ParAMGDataNumLevels((hypre_ParAMGData *)jac->hsolver); in PCGetInterpolations_BoomerAMG()
194 PetscCall(PetscMalloc1(num_levels, &mattmp)); in PCGetInterpolations_BoomerAMG()
196 for (l = 1; l < num_levels; l++) { in PCGetInterpolations_BoomerAMG()
197 …PetscCall(MatCreateFromParCSR(P_array[num_levels - 1 - l], MATAIJ, PETSC_OWN_POINTER, &mattmp[l - … in PCGetInterpolations_BoomerAMG()
199 P_array[num_levels - 1 - l] = NULL; in PCGetInterpolations_BoomerAMG()
201 *nlevels = num_levels; in PCGetInterpolations_BoomerAMG()
213 PetscInt num_levels, fine_nodes = 0, coarse_nodes; in PCHYPREGetCFMarkers_BoomerAMG() local
221 num_levels = hypre_ParAMGDataNumLevels((hypre_ParAMGData *)jac->hsolver); in PCHYPREGetCFMarkers_BoomerAMG()
222 PetscCall(PetscMalloc1(num_levels, &n_per_temp)); in PCHYPREGetCFMarkers_BoomerAMG()
223 PetscCall(PetscMalloc1(num_levels - 1, &markertmp)); in PCHYPREGetCFMarkers_BoomerAMG()
225 for (PetscInt l = 0, CFMaxIndex = num_levels - 2; CFMaxIndex >= 0; l++, CFMaxIndex--) { in PCHYPREGetCFMarkers_BoomerAMG()
237 n_per_temp[num_levels - 1] = fine_nodes; in PCHYPREGetCFMarkers_BoomerAMG()