Lines Matching refs:dmAdj
360 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()
433 PetscCall(DMSetAuxiliaryVec(dmAdj, NULL, 0, 0, uErrLoc)); in ComputeAdjoint()
436 PetscCall(DMPlexComputeCellwiseIntegralFEM(dmAdj, uAdj, errorEst, user)); in ComputeAdjoint()
437 PetscCall(DMSetAuxiliaryVec(dmAdj, NULL, 0, 0, NULL)); in ComputeAdjoint()
457 PetscCall(DMDestroy(&dmAdj)); in ComputeAdjoint()