Lines Matching refs:vdraw

3054       PetscViewer vdraw, vstdout;  in SNESComputeJacobian()  local
3073 …omm((PetscObject)snes), NULL, "Explicit Jacobians", PETSC_DECIDE, PETSC_DECIDE, 300, 300, &vdraw)); in SNESComputeJacobian()
3074 if (flag_contour) PetscCall(PetscViewerPushFormat(vdraw, PETSC_VIEWER_DRAW_CONTOUR)); in SNESComputeJacobian()
3075 } else vdraw = NULL; in SNESComputeJacobian()
3078 if (vdraw) PetscCall(MatView(Bexp, vdraw)); in SNESComputeJacobian()
3081 if (vdraw) PetscCall(MatView(FDexp, vdraw)); in SNESComputeJacobian()
3085 if (vdraw) { /* Always use contour for the difference */ in SNESComputeJacobian()
3086 PetscCall(PetscViewerPushFormat(vdraw, PETSC_VIEWER_DRAW_CONTOUR)); in SNESComputeJacobian()
3087 PetscCall(MatView(FDexp, vdraw)); in SNESComputeJacobian()
3088 PetscCall(PetscViewerPopFormat(vdraw)); in SNESComputeJacobian()
3090 if (flag_contour) PetscCall(PetscViewerPopFormat(vdraw)); in SNESComputeJacobian()
3091 PetscCall(PetscViewerDestroy(&vdraw)); in SNESComputeJacobian()
3110 PetscViewer vdraw, vstdout; in SNESComputeJacobian() local
3140 …Comm((PetscObject)snes), NULL, "Colored Jacobians", PETSC_DECIDE, PETSC_DECIDE, 300, 300, &vdraw)); in SNESComputeJacobian()
3141 if (flag_contour) PetscCall(PetscViewerPushFormat(vdraw, PETSC_VIEWER_DRAW_CONTOUR)); in SNESComputeJacobian()
3142 } else vdraw = NULL; in SNESComputeJacobian()
3145 if (vdraw) PetscCall(MatView(B, vdraw)); in SNESComputeJacobian()
3148 if (vdraw) PetscCall(MatView(Bfd, vdraw)); in SNESComputeJacobian()
3155 if (vdraw) { /* Always use contour for the difference */ in SNESComputeJacobian()
3156 PetscCall(PetscViewerPushFormat(vdraw, PETSC_VIEWER_DRAW_CONTOUR)); in SNESComputeJacobian()
3157 PetscCall(MatView(Bfd, vdraw)); in SNESComputeJacobian()
3158 PetscCall(PetscViewerPopFormat(vdraw)); in SNESComputeJacobian()
3160 if (flag_contour) PetscCall(PetscViewerPopFormat(vdraw)); in SNESComputeJacobian()
3202 PetscCall(PetscViewerDestroy(&vdraw)); in SNESComputeJacobian()