Skip to content

Commit 76f9a11

Browse files
committed
Minor fix
1 parent 8216334 commit 76f9a11

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

Solver/src/libs/timeintegrator/ExplicitMethods.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ end subroutine TakeRKOptStep
14921492
! ------------------------------
14931493
! Routine for Multi Level RK3
14941494
! ------------------------------
1495-
SUBROUTINE TakeMLRK3Step( mesh, particles, t, deltaT, ComputeTimeDerivative, dt_vec, dts, global_dt, iter)
1495+
SUBROUTINE TakeMLRK3Step( mesh, particles, t, deltaT, ComputeTimeDerivative, dt_vec, dts, global_dt, iter, dtAdaptation)
14961496
!
14971497
! ----------------------------------
14981498
! Williamson's 3rd order Runge-Kutta
@@ -1516,6 +1516,7 @@ SUBROUTINE TakeMLRK3Step( mesh, particles, t, deltaT, ComputeTimeDerivative, dt_
15161516
logical, intent(in), optional :: dts
15171517
real(kind=RP), intent(in), optional :: global_dt
15181518
integer, intent(in), optional :: iter
1519+
logical, intent(in), optional :: dtAdaptation
15191520
!
15201521
! ---------------
15211522
! Local variables

Solver/src/libs/timeintegrator/TimeIntegrator.f90

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -318,17 +318,7 @@ SUBROUTINE constructTimeIntegrator(self,controlVariables, sem, initial_iter, ini
318318
! ----------------
319319
!
320320
call self % autosave % Configure (controlVariables, initial_time)
321-
! Check the type input and allocate the pAdaptator
322-
adaptationType = getAdaptationType()
323-
select case (adaptationType)
324-
case(0)
325-
allocate(pAdaptationTE_t::self % pAdaptator)
326-
case(1)
327-
allocate(pAdaptationRL_t::self % pAdaptator)
328-
case default
329-
error stop 'Adaptation type not recognized'
330-
end select
331-
call self % pAdaptator % construct (controlVariables, initial_time, sem % mesh) ! If not requested, the constructor returns doing nothing
321+
332322
call surfacesMesh % autosaveConfig (controlVariables, initial_time) ! If not requested, the procedure returns only setting not save values
333323

334324
call self % TauEstimator % construct(controlVariables, sem)

0 commit comments

Comments
 (0)