Home
last modified time | relevance | path

Searched refs:potential_dm (Results 1 – 2 of 2) sorted by relevance

/petsc/src/snes/tests/
H A Dex15.c472 DM potential_dm; in main() local
480 PetscCall(DMCreateSubDM(dm, 1, &fields, &potential_IS, &potential_dm)); in main()
481 PetscCall(DMCreateMassMatrix(sw, potential_dm, &M_p)); in main()
483 PetscCall(DMGetGlobalVector(potential_dm, &temp_rho)); in main()
494 PetscCall(DMRestoreGlobalVector(potential_dm, &temp_rho)); in main()
495 PetscCall(DMDestroy(&potential_dm)); in main()
/petsc/src/dm/impls/swarm/tests/
H A Dex6.c372 DM dm, potential_dm; in ComputeFieldAtParticles_Mixed() local
394 PetscCall(DMCreateSubDM(dm, 1, &pot_field, &potential_IS, &potential_dm)); in ComputeFieldAtParticles_Mixed()
400 PetscCall(DMCreateMassMatrix(sw, potential_dm, &M_p)); in ComputeFieldAtParticles_Mixed()
406 PetscCall(DMGetGlobalVector(potential_dm, &temp_rho)); in ComputeFieldAtParticles_Mixed()
416 PetscCall(DMRestoreGlobalVector(potential_dm, &temp_rho)); in ComputeFieldAtParticles_Mixed()
417 PetscCall(DMDestroy(&potential_dm)); in ComputeFieldAtParticles_Mixed()