Searched refs:rp (Results 1 – 3 of 3) sorted by relevance
| /libCEED/examples/petsc/ |
| H A D | bps.c | 55 static PetscErrorCode RunWithDM(RunParams rp, DM dm, const char *ceed_resource) { in RunWithDM() argument 104 PetscCall(MatCreateShell(rp->comm, l_size, l_size, g_size, g_size, op_apply_ctx, &mat_O)); in RunWithDM() 110 if (!rp->test_mode) { in RunWithDM() 111 PetscInt P = rp->degree + 1, Q = P + rp->q_extra; in RunWithDM() 116 bool is_combined_bp = rp->bp_choice > CEED_BP6; in RunWithDM() 120 …PetscCall(PetscSNPrintf(bp_name, 6, "%d + %d", rp->bp_choice % 2 ? 2 : 1, rp->bp_choice - CEED_BP4… in RunWithDM() 122 PetscCall(PetscSNPrintf(bp_name, 6, "%d", rp->bp_choice + 1)); in RunWithDM() 134 PetscCall(MPI_Comm_size(rp->comm, &comm_size)); in RunWithDM() 135 PetscCall(PetscPrintf(rp->comm, in RunWithDM() 155 …bp_name, rp->hostname, comm_size, rp->ranks_per_node, vec_type, used_resource, CeedMemTypes[mem_ty… in RunWithDM() [all …]
|
| /libCEED/examples/petsc/src/ |
| H A D | petscutils.c | 412 PetscErrorCode CreateDistributedDM(RunParams rp, DM *dm) { in CreateDistributedDM() argument 415 if (rp->read_mesh) { in CreateDistributedDM() 416 PetscCall(DMPlexCreateFromFile(PETSC_COMM_WORLD, rp->filename, NULL, PETSC_TRUE, dm)); in CreateDistributedDM() 418 if (rp->user_l_nodes) { in CreateDistributedDM() 421 PetscCall(MPI_Comm_size(rp->comm, &size)); in CreateDistributedDM() 422 …for (PetscInt g_elem = PetscMax(1, size * rp->local_nodes / PetscPowInt(rp->degree, rp->dim));; g_… in CreateDistributedDM() 423 Split3(g_elem, rp->mesh_elem, true); in CreateDistributedDM() 424 if (Max3(rp->mesh_elem) / Min3(rp->mesh_elem) <= 2) break; in CreateDistributedDM() 428 …PetscCall(DMPlexCreateBoxMesh(PETSC_COMM_WORLD, rp->dim, rp->simplex, rp->mesh_elem, NULL, NULL, N… in CreateDistributedDM()
|
| /libCEED/examples/petsc/include/ |
| H A D | petscutils.h | 31 PetscErrorCode CreateDistributedDM(RunParams rp, DM *dm);
|