Skip to content

Commit 800f183

Browse files
committed
Minor fix
1 parent 183c436 commit 800f183

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

Solver/src/libs/timeintegrator/TimeIntegrator.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ SUBROUTINE constructTimeIntegrator(self,controlVariables, sem, initial_iter, ini
184184
self % Compute_dt = .FALSE.
185185
self % dt = controlVariables % doublePrecisionValueForKey("dt")
186186
ELSE
187-
error stop '"cfl" or "dt" keyword must be specified for the time integrator'
187+
if (.not. self % adaptive_dt) then
188+
error stop '"cfl", "dt" or "adaptive dt=.true." keywords must be specified for the time integrator'
189+
end if
188190
END IF
189191
!
190192
! ----------------------

Solver/src/libs/timeintegrator/pAdaptationClassRL.f90

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ subroutine pAdaptation_Construct(this, controlVariables, t0, mesh, adaptiveTimeS
135135
call readValueInRegion ( trim ( paramFile ) , "order across faces" , R_OrderAcrossFaces , in_label , "# end" )
136136
call readValueInRegion ( trim ( paramFile ) , "mode" , R_mode , in_label , "# end" )
137137
call readValueInRegion ( trim ( paramFile ) , "interval" , R_interval , in_label , "# end" )
138-
call readValueInRegion ( trim ( paramFile ) , "max polynomial diff" , R_Jump , in_label , "# end" )
138+
call readValueInRegion ( trim ( paramFile ) , "max polynomial diff" , R_Jump , in_label , "# end" )
139139
call readValueInRegion ( trim ( paramFile ) , "restart files" , R_restart , in_label , "# end" )
140140
call readValueInRegion ( trim ( paramFile ) , "agent file" , agentFile , in_label , "# end" )
141141
call readValueInRegion ( trim ( paramFile ) , "threshold" , R_threshold , in_label , "# end" )
@@ -484,8 +484,6 @@ subroutine pAdaptation_pAdapt(this, sem, itera, t, computeTimeDerivative, Comput
484484
integer :: Dir ! Direction
485485
integer :: NNew(3,sem % mesh % no_of_elements) ! New polynomial orders of mesh (after adaptation!)
486486
integer, save :: Stage = 0 ! Stage of p-adaptation for the increasing method
487-
CHARACTER(LEN=LINE_LENGTH) :: newInput ! Variable used to change the input in controlVariables after p-adaptation
488-
character(len=LINE_LENGTH) :: RegfileName
489487
integer :: i ! Counters
490488
character(len=LINE_LENGTH) :: AdaptedMeshFile
491489
logical :: last
@@ -559,9 +557,6 @@ subroutine pAdaptation_pAdapt(this, sem, itera, t, computeTimeDerivative, Comput
559557
else
560558
adaptationPercentage = 100.0_RP * adaptedElements / sem % mesh % no_of_elements
561559
end if
562-
563-
! Only adapt once
564-
this % Adapt = .FALSE.
565560

566561
!
567562
! -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)