Skip to content

Commit 4ebf21c

Browse files
author
Dmitri Naumov
committed
Merge branch 'BenchmarkMohrCoulombAbboSloanNew' into 'master'
Adjust preconditioner in PETSc benchmark MohrCoulombAbboSloan See merge request ogs/ogs!5402
2 parents a10ee10 + c270bfd commit 4ebf21c

File tree

7 files changed

+61
-54
lines changed

7 files changed

+61
-54
lines changed

ProcessLib/TimeLoop.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ bool TimeLoop::executeTimeStep()
531531
bool TimeLoop::calculateNextTimeStep()
532532
{
533533
const double prev_dt = _dt();
534+
// keep a copy of _current_time to check if a new point in time is computed
534535
auto const current_time = _current_time;
535536

536537
const std::size_t timesteps = _accepted_steps + 1;
@@ -548,11 +549,17 @@ bool TimeLoop::calculateNextTimeStep()
548549
outputSolutions(timesteps, current_time(), &Output::doOutput);
549550
}
550551

552+
// check if the newly computed time point (=_current_time + _dt()) differs
553+
// from the previously computed time point (current_time) saved at the
554+
// beginning of the method
551555
if (current_time == (_current_time + _dt()))
552556
{
553-
ERR("Time step size of {} is too small.\n"
554-
"Time stepping stops at step {:d} and at time of {}.",
555-
_dt, timesteps, _current_time);
557+
DBUG("current time == previous time + dt : {:a} == {:a} + {:a} = {:a}",
558+
current_time(), _current_time(), _dt(), _current_time() + _dt());
559+
ERR("The time increment {} results in exactly the same time {} as the "
560+
"last rejected time step.\n"
561+
"Time stepping stops at time step {:d} and time {}.",
562+
_dt, current_time, timesteps, _current_time);
556563
return false;
557564
}
558565

Tests/Data/Mechanics/MohrCoulombAbboSloan/PetscMpi/slope_hexa.prj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
</eigen>
283283
<petsc>
284284
<prefix>gw</prefix>
285-
<parameters>-gw_ksp_type bcgs -gw_pc_type jacobi -gw_ksp_rtol 1.e-16 -gw_ksp_max_it 10000</parameters>
285+
<parameters>-gw_ksp_type bcgs -gw_pc_type sor -gw_ksp_rtol 1.e-16 -gw_ksp_max_it 10000</parameters>
286286
</petsc>
287287
</linear_solver>
288288
</linear_solvers>

Tests/Data/Mechanics/MohrCoulombAbboSloan/PetscMpi/slope_t_5_000000.pvtu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<VTKFile type="PUnstructuredGrid" version="1.0" byte_order="LittleEndian" header_type="UInt64" compressor="vtkZLibDataCompressor">
33
<PUnstructuredGrid GhostLevel="1">
44
<FieldData>
5-
<DataArray type="Int8" Name="OGS_VERSION" NumberOfTuples="18" format="binary" RangeMin="45" RangeMax="103">
6-
AQAAAAAAAAAAgAAAAAAAABIAAAAAAAAAGgAAAAAAAAA=eF4z0zPVM9Y1MtNNT0xMTU0xSkwBACleBQs=
5+
<DataArray type="Int8" Name="OGS_VERSION" NumberOfTuples="19" format="binary" RangeMin="45" RangeMax="103">
6+
AQAAAAAAAAAAgAAAAAAAABMAAAAAAAAAGwAAAAAAAAA=eF4z0zPVM9U1MjXXTTcxTzU0MDFLAgAoqQRZ
77
</DataArray>
88
</FieldData>
99
<PPointData>

Tests/Data/Mechanics/MohrCoulombAbboSloan/PetscMpi/slope_t_5_000000_0.vtu

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

Tests/Data/Mechanics/MohrCoulombAbboSloan/PetscMpi/slope_t_5_000000_1.vtu

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

Tests/Data/Mechanics/MohrCoulombAbboSloan/PetscMpi/slope_t_5_000000_2.vtu

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

Tests/Data/Mechanics/MohrCoulombAbboSloan/PetscMpi/slope_t_5_000000_3.vtu

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)