There, attached. Thanks. PS: here is the patch also, just in case diff --git a/src/ksp/ksp/examples/tutorials/ex1.c b/src/ksp/ksp/examples/tutorials/ex1.c index 6382c09..d9dc69a 100644 --- a/src/ksp/ksp/examples/tutorials/ex1.c +++ b/src/ksp/ksp/examples/tutorials/ex1.c @@ -123,6 +123,11 @@ int main(int argc,char **args) routines. */ ierr = KSPSetFromOptions(ksp);CHKERRQ(ierr); + ierr = KSPSetUp(ksp);CHKERRQ(ierr); + char right_options[] = "-ksp_norm_type unpreconditioned -ksp_pc_side right"; + PetscOptionsInsertString(NULL,right_options); + ierr = KSPSetFromOptions(ksp);CHKERRQ(ierr); + ierr = KSPSetUp(ksp);CHKERRQ(ierr); if (nonzeroguess) { PetscScalar p = .5; |
ex1.c
Description: Binary data
|