Searched refs:num_levels (Results 1 – 6 of 6) sorted by relevance
| /libCEED/examples/petsc/ |
| H A D | multigrid.c | 52 …_size, *g_size, dim = 3, fine_level, mesh_elem[3] = {3, 3, 3}, num_comp_u = 1, num_levels = degree, in main() local 149 num_levels = degree; in main() 152 num_levels = ceil(log(degree) / log(2)) + 1; in main() 155 PetscCall(PetscMalloc1(num_levels, &level_degrees)); in main() 156 fine_level = num_levels - 1; in main() 160 for (PetscInt i = 0; i < num_levels; i++) level_degrees[i] = i + 1; in main() 163 for (PetscInt i = 0; i < num_levels - 1; i++) level_degrees[i] = pow(2, i); in main() 167 PetscCall(PetscMalloc1(num_levels, &dm)); in main() 168 PetscCall(PetscMalloc1(num_levels, &X)); in main() 169 PetscCall(PetscMalloc1(num_levels, &X_loc)); in main() [all …]
|
| /libCEED/examples/solids/ |
| H A D | elasticity.c | 71 PetscInt num_levels = 1, fine_level = 0; in main() local 88 num_levels = app_ctx->num_levels; in main() 89 fine_level = num_levels - 1; in main() 139 PetscCall(PetscMalloc1(num_levels, &level_dms)); in main() 140 for (PetscInt level = 0; level < num_levels; level++) { in main() 182 PetscCall(PetscMalloc1(num_levels, &U_g)); in main() 183 PetscCall(PetscMalloc1(num_levels, &U_loc)); in main() 184 PetscCall(PetscMalloc1(num_levels, &U_g_size)); in main() 185 PetscCall(PetscMalloc1(num_levels, &U_l_size)); in main() 186 PetscCall(PetscMalloc1(num_levels, &U_loc_size)); in main() [all …]
|
| /libCEED/examples/solids/src/ |
| H A D | cl-options.c | 164 app_ctx->num_levels = ceil(log(app_ctx->degree) / log(2)) + 1; in ProcessCommandLineOptions() 167 app_ctx->num_levels = app_ctx->degree; in ProcessCommandLineOptions() 170 app_ctx->num_levels = 1; in ProcessCommandLineOptions() 175 PetscCall(PetscMalloc1(app_ctx->num_levels, &(app_ctx->level_degrees))); in ProcessCommandLineOptions() 179 for (int i = 0; i < app_ctx->num_levels - 1; i++) app_ctx->level_degrees[i] = pow(2, i); in ProcessCommandLineOptions() 180 app_ctx->level_degrees[app_ctx->num_levels - 1] = app_ctx->degree; in ProcessCommandLineOptions() 183 for (int i = 0; i < app_ctx->num_levels; i++) app_ctx->level_degrees[i] = i + 1; in ProcessCommandLineOptions()
|
| H A D | misc.c | 83 PetscInt num_levels = form_jacob_ctx->num_levels; in FormJacobian() local 87 for (PetscInt level = 0; level < num_levels; level++) { in FormJacobian()
|
| H A D | setup-libceed.c | 497 CeedInt fine_level = app_ctx->num_levels - 1; in SetupLibceedLevel()
|
| /libCEED/examples/solids/include/ |
| H A D | structs.h | 57 PetscInt num_levels; member 99 PetscInt num_levels; member
|