Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/adv_diff_2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ int main(int argc,char **argv)
PetscCall(DMDASetUniformCoordinates(da, 0.0, L_x, 0.0, L_y, 0.0, 0.0));
PetscCall(KSPSetDM(ksp,(DM)da));
// We generate the matrix ourselves
PetscCall(KSPSetDMActive(ksp, PETSC_FALSE));
PetscCall(KSPSetDMActive(ksp, KSP_DMACTIVE_ALL, PETSC_FALSE));

// Create empty matrix and vectors
PetscCall(DMCreateMatrix(da, &A));
Expand Down Expand Up @@ -322,4 +322,4 @@ PetscErrorCode ComputeMat(DM da, Mat A, PetscScalar u, PetscScalar v, PetscScala
PetscCall(MatAssemblyEnd(A,MAT_FINAL_ASSEMBLY));

return PETSC_SUCCESS;
}
}
Loading