Changeset 57a9cce in flexpart.git


Ignore:
Timestamp:
Oct 12, 2016, 2:06:05 PM (8 years ago)
Author:
Don Morton <Don.Morton@…>
Branches:
FPv9.3.1, FPv9.3.2, fp9.3.1-20161214-nc4, grib2nc4_repair
Children:
27b27d1
Parents:
e7403c8
Message:

Miscellaneous changes, discussed in flexpart.eu Ticket #163

https://www.flexpart.eu/ticket/163

Location:
flexpart_code
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • flexpart_code/FLEXPART.F90

    r496c607 r57a9cce  
    7979  !*******************************************************
    8080#if defined CTBTO
    81   print*,'Welcome to FLEXPART Version 9.0 CTBTO'
     81  print*,'Welcome to FLEXPART Version 9.3.1f CTBTO'
    8282#else
    83   print*,'Welcome to FLEXPART Version 9.0'
     83  print*,'Welcome to FLEXPART Version 9.3.1f'
    8484#endif
    8585
  • flexpart_code/GRIB2FLEXPART.F90

    rf155f96 r57a9cce  
    5959  !*******************************************************
    6060#if defined CTBTO
    61   print*,'Welcome to GRIB2FLEXPART Version 1.0 CTBTO'
     61  print*,'Welcome to GRIB2FLEXPART Version 9.3.1f CTBTO'
    6262#else
    63   print*,'Welcome to GRIB2FLEXPART Version 1.0'
     63  print*,'Welcome to GRIB2FLEXPART Version 9.3.1f'
    6464#endif
    6565
     
    217217  write (current_time, *) time()
    218218  ! generate tmp file name using PID and timestamp
    219   tmp_file_name = "overwritecheck_"//trim(adjustl(pid))//"_"//trim(adjustl(current_time))//".tmp"
    220   tmp_file_path = trim(dump_path)//"/"//trim(tmp_file_name)
     219  !! tmp_file_name = "overwritecheck_"//trim(adjustl(pid))//"_"//trim(adjustl(current_time))//".tmp"
     220  !! tmp_file_path = trim(dump_path)//"/"//trim(tmp_file_name)
    221221
    222222  ! create tmp file in output directory
    223   open(10001, file=trim(tmp_file_path), status="new", action="write", iostat=open_status)
     223  !! open(10001, file=trim(tmp_file_path), status="new", action="write", iostat=open_status)
    224224  ! check for tmp file
    225   if ( open_status /= 0 ) then
    226     print *, "Output directory does not exist or is not writeable"
    227     stop 'Error: Incorrect arguments'
    228   endif
     225  !! if ( open_status /= 0 ) then
     226  !!   print *, "Output directory does not exist or is not writeable"
     227  !!   print *, "File "//trim(tmp_file_path)//", iostat=",open_status
     228  !!   print *, "PID: ", pid, getpid()
     229  !!   print *, "current_time: ", current_time
     230
     231  !!   stop 'Error: Incorrect arguments'
     232  !! endif
    229233   
    230234  ! generate tmp file name in input directory
    231235  if ( input_is_path == 1) then
    232     check_file_path = trim(input_path)//"/"//trim(tmp_file_name)
    233   else
    234     check_file_path=trim(input_path(:scan(input_path, '/', .TRUE.)))//trim(tmp_file_name)
     236    !! check_file_path = trim(input_path)//"/"//trim(tmp_file_name)
     237    stop 'Error: Incorrect arguments; input file is path'
     238  else
     239    if ( scan(input_path, '/') == 0 ) then
     240       check_file_path=trim(dump_path)//"/"//trim(input_path)
     241    else
     242       check_file_path=trim(dump_path)//trim(input_path(scan(input_path, '/', .TRUE.):))
     243    endif
    235244  endif
    236245  !check for file presence
     246  print *, "Check if output file "//trim(check_file_path)//" exists ..."
    237247  inquire(file=TRIM(check_file_path), exist=exists)
    238248  ! delete tmp file
    239   close(10001, status='DELETE')
     249  !! close(10001, status='DELETE')
    240250  if ( exists ) then
    241251    overwritecheck = -1
     252    print *, "Warning: Output file "//trim(check_file_path)//" exists"
     253    stop 'Please remove this file if the output directory is correct'
    242254  endif
    243255 
  • flexpart_code/fpmetbinary_mod.F90

    r5cef1eb r57a9cce  
    5656    ! this routine will not be able to read a previous version, this version
    5757    ! string should be modified
    58     CHARACTER(LEN=8), PARAMETER :: PREPROC_FORMAT_VERSION_STR = '9.3.1e  '
     58    CHARACTER(LEN=12), PARAMETER :: PREPROC_FORMAT_VERSION_STR = 'FP_p-9.3.1'//char(0)
    5959
    6060    PRIVATE IOUNIT_DUMP, IOUNIT_LOAD, IOUNIT_TEXTOUT, fpio,    &
     
    275275&                  temp_nuvzmax, temp_nwzmax
    276276
    277         CHARACTER(LEN=8) :: temp_preproc_format_version_str
     277        CHARACTER(LEN=12) :: temp_preproc_format_version_str
    278278
    279279        CHARACTER(LEN=128) :: errmesg
  • flexpart_code/makefile.ctbto.ifort

    r9cd7c04 r57a9cce  
    99# Set up for devlan ifort
    1010INTEL_ROOT = /cots/intel/composer_xe_2013.2.146
    11 GRIB_API_ROOT = /dvl/atm/klinkl/tmp/ifort_grib_api/grib_api-1.12.3
     11GRIB_API_ROOT = /dvl/atm/klinkl/src/ifort_grib_api/grib_api-1.12.3
    1212
    1313FC       = $(INTEL_ROOT)/bin/ifort
  • flexpart_code/makefile.general.ifort

    r9cd7c04 r57a9cce  
    1010# Set up for devlan ifort
    1111INTEL_ROOT = /cots/intel/composer_xe_2013.2.146
    12 GRIB_API_ROOT = /dvl/atm/klinkl/tmp/ifort_grib_api/grib_api-1.12.3
     12GRIB_API_ROOT = /dvl/atm/klinkl/src/ifort_grib_api/grib_api-1.12.3
    1313
    1414FC       = $(INTEL_ROOT)/bin/ifort
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG