Changeset 5b3cc42 in flexpart.git for flexpart_code/fpmetbinary_mod.F90


Ignore:
Timestamp:
Dec 14, 2016, 8:16:48 PM (7 years ago)
Author:
Don Morton <Don.Morton@…>
Branches:
fp9.3.1-20161214-nc4
Children:
b9970e3
Parents:
64c820a
Message:

Starting to code infrastructure for NC4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • flexpart_code/fpmetbinary_mod.F90

    r64c820a r5b3cc42  
    4545    USE conv_mod
    4646    USE par_mod, ONLY : nxmax, nymax, nzmax, nuvzmax, nwzmax
     47
     48    USE netcdf
    4749
    4850    IMPLICIT NONE
     
    9092        INTEGER millisecs_start, millisecs_stop, count_rate, count_max
    9193
     94        INTEGER ncretval, ncid
     95
    9296        CALL SYSTEM_CLOCK(millisecs_start, count_rate, count_max)
     97
     98        ! Create and open NC4 file for writing
     99        PRINT *, 'Opening NC4 file...'
     100        ncretval = nf90_create(filename // ".nc4", &
     101&                              OR(NF90_CLOBBER, NF90_HDF5), &
     102&                              ncid)
     103
    93104        OPEN(IOUNIT_DUMP, file=filename, action='WRITE', status='REPLACE', form="unformatted", access="stream")
     105
     106
     107
     108
     109
     110
    94111        CALL fpio(IOUNIT_DUMP, 'DUMP', cm_index)
    95112        CLOSE(IOUNIT_DUMP)
     113
     114        PRINT *, 'Closing NC4 file...'
     115        ncretval = nf90_close(ncid)
     116
    96117        CALL SYSTEM_CLOCK(millisecs_stop, count_rate, count_max)
    97118
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG