Lines Matching refs:pack

135     DM pack;  in LandauFormJacobian_Internal()  local
136 PetscCall(VecGetDM(a_X, &pack)); in LandauFormJacobian_Internal()
137 PetscCheck(pack, PETSC_COMM_SELF, PETSC_ERR_PLIB, "pack has no DM"); in LandauFormJacobian_Internal()
154 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); in LandauFormJacobian_Internal()
160 PetscCall(DMCompositeGetLocalAccessArray(pack, a_X, nDMs, NULL, locXArray)); in LandauFormJacobian_Internal()
161 PetscCall(DMCompositeGetAccessArray(pack, a_X, nDMs, NULL, globXArray)); in LandauFormJacobian_Internal()
181 PetscCall(DMCompositeRestoreLocalAccessArray(pack, a_X, nDMs, NULL, locXArray)); in LandauFormJacobian_Internal()
182 PetscCall(DMCompositeRestoreAccessArray(pack, a_X, nDMs, NULL, globXArray)); in LandauFormJacobian_Internal()
589 …CreateVMeshes(MPI_Comm comm_self, const PetscInt dim, const char prefix[], LandauCtx *ctx, DM pack) in LandauDMCreateVMeshes() argument
723 PetscCall(DMSetOptionsPrefix(pack, prefix)); in LandauDMCreateVMeshes()
747 PetscCall(DMSetDimension(pack, dim)); in LandauDMCreateVMeshes()
748 PetscCall(PetscObjectSetName((PetscObject)pack, "Mesh")); in LandauDMCreateVMeshes()
749 PetscCall(DMSetApplicationContext(pack, ctx)); in LandauDMCreateVMeshes()
753 static PetscErrorCode SetupDS(DM pack, PetscInt dim, PetscInt grid, const char prefix[], LandauCtx … in SetupDS() argument
2028 PetscErrorCode DMPlexLandauCreateMassMatrix(DM pack, Mat *Amat);
2049 …ndauCreateVelocitySpace(MPI_Comm comm, PetscInt dim, const char prefix[], Vec *X, Mat *J, DM *pack) in DMPlexLandauCreateVelocitySpace() argument
2064 PetscCall(DMCompositeCreate(PETSC_COMM_SELF, pack)); in DMPlexLandauCreateVelocitySpace()
2067 …PetscCall(LandauDMCreateVMeshes(PETSC_COMM_SELF, dim, prefix, ctx, *pack)); // creates grids (Fore… in DMPlexLandauCreateVelocitySpace()
2094 PetscCall(DMCompositeAddDM(*pack, ctx->plex[grid])); in DMPlexLandauCreateVelocitySpace()
2097 PetscCall(DMCompositeAddDM(*pack, ctx->plex[grid])); in DMPlexLandauCreateVelocitySpace()
2105 …for (PetscInt grid = 0; grid < ctx->num_grids; grid++) PetscCall(DMCompositeAddDM(*pack, ctx->plex… in DMPlexLandauCreateVelocitySpace()
2116 PetscCall(DMSetApplicationContext(*pack, ctx)); in DMPlexLandauCreateVelocitySpace()
2118 PetscCall(DMCreateMatrix(*pack, &ctx->J)); in DMPlexLandauCreateVelocitySpace()
2124 PetscCall(DMCreateGlobalVector(*pack, X)); in DMPlexLandauCreateVelocitySpace()
2168 PetscCall(DMPlexLandauCreateMassMatrix(*pack, NULL)); in DMPlexLandauCreateVelocitySpace()
2217 PetscErrorCode DMPlexLandauAccess(DM pack, Vec X, PetscErrorCode (*func)(DM, Vec, PetscInt, PetscIn… in DMPlexLandauAccess() argument
2222 …PetscCall(DMGetApplicationContext(pack, &ctx)); // uses ctx->num_grids; ctx->plex[grid]; ctx->batc… in DMPlexLandauAccess()
2225 PetscCall(DMGetDimension(pack, &dim)); in DMPlexLandauAccess()
2396 DM pack; in DMPlexLandauPrintNorms() local
2403 PetscCall(VecGetDM(X, &pack)); in DMPlexLandauPrintNorms()
2404 PetscCheck(pack, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Vector has no DM"); in DMPlexLandauPrintNorms()
2405 PetscCall(DMGetDimension(pack, &dim)); in DMPlexLandauPrintNorms()
2407 PetscCall(DMGetApplicationContext(pack, &ctx)); in DMPlexLandauPrintNorms()
2410 PetscCall(DMCompositeGetNumberDM(pack, &nDMs)); in DMPlexLandauPrintNorms()
2413 PetscCall(DMCompositeGetAccessArray(pack, X, nDMs, NULL, globXArray)); in DMPlexLandauPrintNorms()
2465 PetscCall(DMCompositeGetAccessArray(pack, globGamma, nDMs, NULL, globGammaArray)); in DMPlexLandauPrintNorms()
2472 PetscCall(DMCompositeRestoreAccessArray(pack, globGamma, nDMs, NULL, globGammaArray)); in DMPlexLandauPrintNorms()
2474 PetscCall(DMCompositeGetAccessArray(pack, globGamma, nDMs, NULL, globGammaArray)); in DMPlexLandauPrintNorms()
2475 PetscCall(DMCompositeGetAccessArray(pack, Mf, nDMs, NULL, globMfArray)); in DMPlexLandauPrintNorms()
2502 PetscCall(DMCompositeRestoreAccessArray(pack, globGamma, nDMs, NULL, globGammaArray)); in DMPlexLandauPrintNorms()
2503 PetscCall(DMCompositeRestoreAccessArray(pack, Mf, nDMs, NULL, globMfArray)); in DMPlexLandauPrintNorms()
2524 PetscCall(DMCompositeRestoreAccessArray(pack, X, nDMs, NULL, globXArray)); in DMPlexLandauPrintNorms()
2557 PetscErrorCode DMPlexLandauCreateMassMatrix(DM pack, Mat *Amat) in DMPlexLandauCreateMassMatrix() argument
2566 PetscValidHeaderSpecific(pack, DM_CLASSID, 1); in DMPlexLandauCreateMassMatrix()
2568 PetscCall(DMGetApplicationContext(pack, &ctx)); in DMPlexLandauCreateMassMatrix()
2571 PetscCall(DMGetDimension(pack, &dim)); in DMPlexLandauCreateMassMatrix()
2572 PetscCall(DMCompositeCreate(PetscObjectComm((PetscObject)pack), &mass_pack)); in DMPlexLandauCreateMassMatrix()
2616 …PetscCheck(N1 == N2, PetscObjectComm((PetscObject)pack), PETSC_ERR_PLIB, "Incorrect matrix sizes: … in DMPlexLandauCreateMassMatrix()
2631 …PetscCall(PetscInfo(pack, "Realloc buffer %" PetscInt_FMT " to %" PetscInt_FMT " (row size %" Pets… in DMPlexLandauCreateMassMatrix()
2679 DM pack; in DMPlexLandauIFunction() local
2686 PetscCall(TSGetDM(ts, &pack)); in DMPlexLandauIFunction()
2687 PetscCall(DMGetApplicationContext(pack, &ctx)); in DMPlexLandauIFunction()
2695 PetscCall(DMGetDimension(pack, &dim)); in DMPlexLandauIFunction()
2750 DM pack; in DMPlexLandauIJacobian() local
2757 PetscCall(TSGetDM(ts, &pack)); in DMPlexLandauIJacobian()
2758 PetscCall(DMGetApplicationContext(pack, &ctx)); in DMPlexLandauIJacobian()
2761 PetscCall(DMGetDimension(pack, &dim)); in DMPlexLandauIJacobian()