Skip to content

Commit 94b4727

Browse files
author
Hodges
committed
FDS Source: allow locking time step during FREEZE_TIME
1 parent 6fc5d42 commit 94b4727

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Source/main.f90

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ PROGRAM FDS
544544
IF (UNFREEZE_TIME > 0._EB) THEN
545545
FREEZE_VELOCITY=.TRUE.
546546
SOLID_PHASE_ONLY=.TRUE.
547+
LOCK_TIME_STEP=.TRUE.
547548
ENDIF
548549

549550
IF (MY_RANK==0 .AND. VERBOSE) CALL VERBOSE_PRINTOUT('Starting the time-stepping')
@@ -586,6 +587,16 @@ PROGRAM FDS
586587
IF ((UNFREEZE_TIME > 0._EB).AND.(T>UNFREEZE_TIME)) THEN
587588
FREEZE_VELOCITY=.FALSE.
588589
SOLID_PHASE_ONLY=.FALSE.
590+
LOCK_TIME_STEP=.FALSE.
591+
592+
UNFREEZE_DT_LOOP: DO NM=LOWER_MESH_INDEX,UPPER_MESH_INDEX
593+
CALL CHECK_STABILITY(DT,DT_NEW,T,NM)
594+
ENDDO UNFREEZE_DT_LOOP
595+
IF (N_MPI_PROCESSES>1) THEN
596+
CALL MPI_ALLGATHERV(MPI_IN_PLACE,0,MPI_DATATYPE_NULL,DT_NEW(1:NMESHES),&
597+
COUNTS,DISPLS,MPI_DOUBLE_PRECISION,MPI_COMM_WORLD,IERR)
598+
ENDIF
599+
DT = MINVAL(DT_NEW)
589600
ENDIF
590601

591602
!================================================================================================================================

Source/velo.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ MODULE VELO
1212
PRIVATE
1313

1414
PUBLIC VELOCITY_PREDICTOR,VELOCITY_CORRECTOR,NO_FLUX,BAROCLINIC_CORRECTION,MATCH_VELOCITY,MATCH_VELOCITY_FLUX,&
15-
VELOCITY_BC,COMPUTE_VISCOSITY,VISCOSITY_BC,VELOCITY_FLUX,VELOCITY_FLUX_CYLINDRICAL
15+
VELOCITY_BC,COMPUTE_VISCOSITY,VISCOSITY_BC,VELOCITY_FLUX,VELOCITY_FLUX_CYLINDRICAL,&
16+
CHECK_STABILITY
1617

1718

1819
CONTAINS

0 commit comments

Comments
 (0)