Home
last modified time | relevance | path

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

/petsc/src/snes/tutorials/
H A Dex13.c360 DM dm, dmAdj; in ComputeAdjoint() local
367 PetscCall(DMClone(dm, &dmAdj)); in ComputeAdjoint()
368 PetscCall(SNESSetDM(snesAdj, dmAdj)); in ComputeAdjoint()
369 PetscCall(SetupDiscretization(dmAdj, "adjoint", SetupAdjointProblem, user)); in ComputeAdjoint()
370 PetscCall(DMCreateGlobalVector(dmAdj, &uAdj)); in ComputeAdjoint()
373 PetscCall(DMPlexSetSNESLocalFEM(dmAdj, PETSC_FALSE, &user)); in ComputeAdjoint()
395 PetscCall(DMGetLocalVector(dmAdj, &uAdjLoc)); in ComputeAdjoint()
396 PetscCall(DMGlobalToLocalBegin(dmAdj, uAdj, INSERT_VALUES, uAdjLoc)); in ComputeAdjoint()
397 PetscCall(DMGlobalToLocalEnd(dmAdj, uAdj, INSERT_VALUES, uAdjLoc)); in ComputeAdjoint()
402 PetscCall(DMRestoreLocalVector(dmAdj, &uAdjLoc)); in ComputeAdjoint()
[all …]