Skip to content

Commit

Permalink
Increase max unit, number of allowed open files
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Jul 6, 2023
1 parent e5b1af5 commit e0603e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ROSCO/src/ROSCO_Helpers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1491,8 +1491,11 @@ SUBROUTINE GetNewUnit ( UnIn, ErrVar )
INTEGER :: Un ! Unit number
LOGICAL :: Opened ! Flag indicating whether or not a file is opened.
INTEGER(IntKi), PARAMETER :: StartUnit = 10 ! Starting unit number to check (numbers less than 10 reserved)
INTEGER(IntKi), PARAMETER :: MaxUnit = 99 ! The maximum unit number available (or 10 less than the number of files you want to have open at a time)

! NOTE: maximum unit numbers in fortran 90 and later is 2**31-1. However, there are limits within the OS.
! macos -- 256 (change with ulimit -n)
! linux -- 1024 (change with ulimit -n)
! windows -- 512 (not sure how to change -- ADP)
INTEGER(IntKi), PARAMETER :: MaxUnit = 1024 ! The maximum unit number available (or 10 less than the number of files you want to have open at a time)

! Initialize subroutine outputs

Expand Down

0 comments on commit e0603e5

Please sign in to comment.