Skip to content

Commit f0d52c0

Browse files
committed
increase the cut-back factor to 0.85 for a better time stepping behavior
1 parent ed06ad4 commit f0d52c0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/TimeStepping/TimeSteppingBlock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TimeSteppingBlock{
2929
PetscReal _dtmax=0.1,_dtmin=1.0e-12,_dt0=1.0e-5;
3030
PetscInt _interval=1;
3131
PetscInt _nOpts=4;
32-
PetscReal _CutFactor=0.8,_GrowthFactor=1.1;
32+
PetscReal _CutFactor=0.85,_GrowthFactor=1.1;
3333
bool _IsAdaptive=false;
3434

3535
void Reset(){
@@ -39,7 +39,7 @@ class TimeSteppingBlock{
3939
_dtmax=0.1;
4040
_dtmin=1.0e-12;
4141
_dt0=1.0e-5;
42-
_CutFactor=0.8;
42+
_CutFactor=0.85;
4343
_GrowthFactor=1.1;
4444
_interval=1;
4545
_nOpts=4;

src/TimeStepping/TimeStepping.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ TimeStepping::TimeStepping(){
1616
_dt0=1.0e-5;
1717
_interval=1;
1818
_IsAdaptive=false;
19-
_CutFactor=0.8;_GrowthFactor=1.1;
20-
_nOpts=5;
19+
_CutFactor=0.85;_GrowthFactor=1.1;
20+
_nOpts=4;
2121
}

0 commit comments

Comments
 (0)