Skip to content

Commit e0691c0

Browse files
committed
allow L1H to survive into the second step of a buckling run
1 parent d166cda commit e0691c0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Source/LK5/LINK5.f90

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,12 @@ SUBROUTINE LINK5
271271
CALL OUTA_HERE ( 'Y' )
272272
ENDIF
273273

274-
CALL FILE_CLOSE ( L1H, LINK1H, L1HSTAT, 'Y' )
274+
IF ((SOL_NAME(1:8) == 'BUCKLING') .AND. (LOAD_ISTEP == 1)) THEN
275+
! ensure L1H survives for the second round
276+
CALL FILE_CLOSE ( L1H, LINK1H, 'KEEP', 'Y' )
277+
ELSE
278+
CALL FILE_CLOSE ( L1H, LINK1H, L1HSTAT, 'Y' )
279+
END IF
275280

276281
ENDIF
277282

0 commit comments

Comments
 (0)