Skip to content

Commit

Permalink
Merge pull request CEED#1311 from CEED/jrwrigh/fix-fluids-preload
Browse files Browse the repository at this point in the history
fluids: Fix preloading vector
  • Loading branch information
jrwrigh authored Aug 29, 2023
2 parents 7fc69c1 + fc4c3d6 commit 241b322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fluids/src/setupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ PetscErrorCode TSSolve_NS(DM dm, User user, AppCtx app_ctx, Physics phys, Vec *Q
PetscCall(TSGetSNES(*ts, &snes));
PetscCall(SNESGetTolerances(snes, NULL, &rtol, NULL, NULL, NULL));
PetscCall(SNESSetTolerances(snes, PETSC_DEFAULT, .99, PETSC_DEFAULT, PETSC_DEFAULT, PETSC_DEFAULT));
PetscCall(TSSetSolution(*ts, *Q));
PetscCall(TSSetSolution(*ts, Q_preload));
PetscCall(TSStep(*ts));
PetscCall(SNESSetTolerances(snes, PETSC_DEFAULT, rtol, PETSC_DEFAULT, PETSC_DEFAULT, PETSC_DEFAULT));
PetscCall(VecDestroy(&Q_preload));
Expand Down

0 comments on commit 241b322

Please sign in to comment.