anchor.diff:  ! ================================================================================================ !
   !  FILE UNITS MODULE
  -!  V.K. Berglyd Olsen, BE-ABP-HSS
  -!  Last modified: 2018-12-13
  +! ===================
  +!  V.K. Berglyd Olsen, BE-ABP-HSS
  +!  Created: 2018-12-13
  +!  Updated: 2019-05-02
   !
   !  Module for keeping track of opened file units, their file names, and open the files correctly
   !  depending on build flags like BOINC or FIO.
  +!
  +!  Note: The maximum number of allowed open units is 256. To ensure we cannot run out of units, the
  +!  module sets the last assigned unit number to 250. The log file is at 251. this leaves 4 units for
  +!  debug use in the code, if absolutely necessary.
   ! ================================================================================================ !
   module mod_units
   
  
positive.code: 
    use crcoall
  
    implicit none
  
    integer,                    intent(in)  :: unit
    character(len=*),           intent(in)  :: file
    logical,                    intent(in)  :: formatted
  
negative.code: 
    unit = -1
    do i=units_minUnit,units_maxUnit
      if(allocated(units_uList(i)%file)) then
        if(units_uList(i)%file == file) then
          unit = i
          exit
        end if
      end if
    end do
  
  