Lines Matching refs:M_p
918 Mat M_p, D_p; in ComputeMomentFields() local
933 PetscCall(DMCreateMassMatrix(sw, ctx->dmN, &M_p)); in ComputeMomentFields()
961 PetscCall(MatMultTranspose(M_p, f, nrhs)); in ComputeMomentFields()
964 PetscCall(MatMultTranspose(M_p, tmpMom, prhs)); in ComputeMomentFields()
968 PetscCall(MatMultTranspose(M_p, tmpMom, erhs)); in ComputeMomentFields()
975 PetscCall(MatMultTransposeAdd(M_p, tmpMom, pflux, pflux)); in ComputeMomentFields()
979 PetscCall(MatMultTransposeAdd(M_p, tmpMom, eflux, eflux)); in ComputeMomentFields()
986 PetscCall(MatDestroy(&M_p)); in ComputeMomentFields()
2184 static PetscErrorCode ComputeFieldAtParticles_Primal(SNES snes, DM sw, Mat M_p, PetscReal E[]) in ComputeFieldAtParticles_Primal() argument
2211 PetscCall(MatViewFromOptions(M_p, NULL, "-mp_view")); in ComputeFieldAtParticles_Primal()
2215 PetscCall(MatMultTranspose(M_p, f, rhoRhs)); in ComputeFieldAtParticles_Primal()
2305 static PetscErrorCode ComputeFieldAtParticles_Mixed(SNES snes, DM sw, Mat M_p, PetscReal E[]) in ComputeFieldAtParticles_Mixed() argument
2334 PetscCall(MatViewFromOptions(M_p, NULL, "-mp_view")); in ComputeFieldAtParticles_Mixed()
2338 PetscCall(MatMultTranspose(M_p, f, rhoRhs)); in ComputeFieldAtParticles_Mixed()
2435 Mat M_p; in ComputeFieldAtParticles() local
2449 PetscCall(DMCreateMassMatrix(sw, ctx->dmPot, &M_p)); in ComputeFieldAtParticles()
2461 PetscCall(ComputeFieldAtParticles_Primal(snes, sw, M_p, E)); in ComputeFieldAtParticles()
2464 PetscCall(ComputeFieldAtParticles_Mixed(snes, sw, M_p, E)); in ComputeFieldAtParticles()
2472 PetscCall(MatDestroy(&M_p)); in ComputeFieldAtParticles()