@@ -1729,12 +1729,12 @@ subroutine output_rt(igrid, split_output_count, ixrt, jxrt, nsoil, &
1729
1729
#ifdef HYDRO_D
1730
1730
print*, ' output_flnm = " '//trim(output_flnm)//'" '
1731
1731
#endif
1732
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
1733
- write(6,*) "using large netcdf file for RTOUT_DOMAIN"
1734
- iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
1735
- #else
1732
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
1736
1733
write(6,*) "using normal netcdf file for RTOUT_DOMAIN"
1737
1734
iret = nf_create(trim(output_flnm), NF_CLOBBER, ncid)
1735
+ #else
1736
+ write(6,*) "using large netcdf file for RTOUT_DOMAIN"
1737
+ iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
1738
1738
#endif
1739
1739
if (iret /= 0) then
1740
1740
call hydro_stop("In output_rt() - Problem nf_create")
@@ -2240,10 +2240,10 @@ subroutine output_gw_spinup(igrid, split_output_count, ixrt, jxrt, &
2240
2240
#endif
2241
2241
2242
2242
2243
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
2244
- iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
2245
- #else
2243
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
2246
2244
iret = nf_create(trim(output_flnm), NF_CLOBBER, ncid)
2245
+ #else
2246
+ iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
2247
2247
#endif
2248
2248
2249
2249
if (iret /= 0) then
@@ -2585,10 +2585,10 @@ subroutine sub_output_gw(igrid, split_output_count, ixrt, jxrt, nsoil, &
2585
2585
#endif
2586
2586
2587
2587
2588
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
2589
- iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
2590
- #else
2588
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
2591
2589
iret = nf_create(trim(output_flnm), NF_CLOBBER, ncid)
2590
+ #else
2591
+ iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
2592
2592
#endif
2593
2593
2594
2594
if (iret /= 0) then
@@ -3008,19 +3008,19 @@ subroutine output_chrt(igrid, split_output_count, NLINKS, ORDER, &
3008
3008
print*, ' output_flnm = " '//trim(output_flnm)//'" '
3009
3009
#endif
3010
3010
3011
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
3012
- iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
3013
- #else
3011
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
3014
3012
iret = nf_create(trim(output_flnm), NF_CLOBBER, ncid)
3013
+ #else
3014
+ iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
3015
3015
#endif
3016
3016
if (iret /= 0) then
3017
3017
call hydro_stop("In output_chrt() - Problem nf_create points")
3018
3018
endif
3019
3019
3020
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
3021
- iret = nf_create(trim(output_flnm2), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid2)
3022
- #else
3020
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
3023
3021
iret = nf_create(trim(output_flnm2), NF_CLOBBER, ncid2)
3022
+ #else
3023
+ iret = nf_create(trim(output_flnm2), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid2)
3024
3024
#endif
3025
3025
if (iret /= 0) then
3026
3026
call hydro_stop("In output_chrt() - Problem nf_create observation")
@@ -3718,19 +3718,19 @@ subroutine output_chrt_bak(igrid, split_output_count, NLINKS, ORDER,
3718
3718
print*, ' output_flnm = " '//trim(output_flnm)//'" '
3719
3719
#endif
3720
3720
3721
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
3722
- iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
3723
- #else
3721
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
3724
3722
iret = nf_create(trim(output_flnm), NF_CLOBBER, ncid)
3723
+ #else
3724
+ iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
3725
3725
#endif
3726
3726
if (iret /= 0) then
3727
3727
call hydro_stop("In output_chrt() - Problem nf_create points")
3728
3728
endif
3729
3729
3730
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
3731
- iret = nf_create(trim(output_flnm2), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid2)
3732
- #else
3730
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
3733
3731
iret = nf_create(trim(output_flnm2), NF_CLOBBER, ncid2)
3732
+ #else
3733
+ iret = nf_create(trim(output_flnm2), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid2)
3734
3734
#endif
3735
3735
if (iret /= 0) then
3736
3736
call hydro_stop("In output_chrt() - Problem nf_create observation")
@@ -4578,10 +4578,10 @@ subroutine output_lakes(igrid, split_output_count, NLAKES, &
4578
4578
print*, ' output_flnm = " '//trim(output_flnm)//'" '
4579
4579
#endif
4580
4580
4581
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
4582
- iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
4583
- #else
4581
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
4584
4582
iret = nf_create(trim(output_flnm), NF_CLOBBER, ncid)
4583
+ #else
4584
+ iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
4585
4585
#endif
4586
4586
4587
4587
if (iret /= 0) then
@@ -4818,10 +4818,10 @@ subroutine output_lakes2(igrid, split_output_count, NLAKES, &
4818
4818
print*, ' output_flnm = " '//trim(output_flnm)//'" '
4819
4819
#endif
4820
4820
4821
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
4822
- iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
4823
- #else
4821
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
4824
4822
iret = nf_create(trim(output_flnm), NF_CLOBBER, ncid)
4823
+ #else
4824
+ iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
4825
4825
#endif
4826
4826
4827
4827
if (iret /= 0) then
@@ -5042,10 +5042,10 @@ subroutine output_chrtgrd(igrid, split_output_count, ixrt,jxrt, &
5042
5042
5043
5043
5044
5044
!--- define dimension
5045
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
5046
- iret = nf_create(trim (output_flnm), IOR (NF_CLOBBER,NF_64BIT_OFFSET), ncid)
5047
- #else
5045
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
5048
5046
iret = nf_create(trim (output_flnm), NF_CLOBBER, ncid)
5047
+ #else
5048
+ iret = nf_create(trim (output_flnm), IOR (NF_CLOBBER,NF_64BIT_OFFSET), ncid)
5049
5049
#endif
5050
5050
5051
5051
if (iret /= 0 ) then
@@ -5417,10 +5417,10 @@ subroutine output_lsm(outFile,did)
5417
5417
if (IO_id.eq. my_id) &
5418
5418
#endif
5419
5419
5420
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
5421
- iret = nf_create(trim (outFile), IOR (NF_CLOBBER,NF_64BIT_OFFSET), ncid)
5422
- #else
5420
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
5423
5421
iret = nf_create(trim (outFile), NF_CLOBBER, ncid)
5422
+ #else
5423
+ iret = nf_create(trim (outFile), IOR (NF_CLOBBER,NF_64BIT_OFFSET), ncid)
5424
5424
#endif
5425
5425
5426
5426
#ifdef MPP_LAND
@@ -5519,16 +5519,16 @@ subroutine RESTART_OUT_nc(outFile,did)
5519
5519
if (IO_id.eq. my_id) &
5520
5520
#endif
5521
5521
5522
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
5523
- iret = nf_create(trim (outFile), IOR ( NF_CLOBBER,NF_64BIT_OFFSET) , ncid)
5522
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
5523
+ iret = nf_create(trim (outFile), NF_CLOBBER, ncid)
5524
5524
#ifdef HYDRO_D
5525
- write (6 ,* ) " yyywww using large netcdf file definition. "
5525
+ write (6 ,* ) " yyywww do not use large netcdf file definition. "
5526
5526
call flush(6 )
5527
5527
#endif
5528
5528
#else
5529
- iret = nf_create(trim (outFile), NF_CLOBBER, ncid)
5529
+ iret = nf_create(trim (outFile), IOR ( NF_CLOBBER,NF_64BIT_OFFSET) , ncid)
5530
5530
#ifdef HYDRO_D
5531
- write (6 ,* ) " yyywww do not use large netcdf file definition. "
5531
+ write (6 ,* ) " yyywww using large netcdf file definition. "
5532
5532
call flush(6 )
5533
5533
#endif
5534
5534
#endif
@@ -8083,10 +8083,10 @@ subroutine outPutChanInfo(fromNode,toNode,chlon,chlat)
8083
8083
integer :: iret, nodes, i, ncid, dimid_n, varid
8084
8084
8085
8085
nodes = size(chlon,1)
8086
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
8087
- iret = nf_create("nodeInfor.nc", IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
8088
- #else
8086
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
8089
8087
iret = nf_create("nodeInfor.nc", NF_CLOBBER, ncid)
8088
+ #else
8089
+ iret = nf_create("nodeInfor.nc", IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
8090
8090
#endif
8091
8091
iret = nf_def_dim(ncid, "node", nodes, dimid_n) !-- make a decimated grid
8092
8092
! define the varialbes
@@ -8801,10 +8801,10 @@ subroutine output_chrt2(igrid, split_output_count, NLINKS, ORDER, &
8801
8801
print*, ' output_flnm = " '//trim(output_flnm)//'" '
8802
8802
#endif
8803
8803
8804
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
8805
- iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
8806
- #else
8804
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
8807
8805
iret = nf_create(trim(output_flnm), NF_CLOBBER, ncid)
8806
+ #else
8807
+ iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
8808
8808
#endif
8809
8809
if (iret /= 0) then
8810
8810
print*, "Problem nf_create points"
@@ -9180,10 +9180,10 @@ subroutine output_gw_netcdf(igrid, split_output_count, nbasns, &
9180
9180
print*, ' output_flnm = " '//trim(output_flnm)//'" '
9181
9181
#endif
9182
9182
9183
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
9184
- iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
9185
- #else
9183
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
9186
9184
iret = nf_create(trim(output_flnm), NF_CLOBBER, ncid)
9185
+ #else
9186
+ iret = nf_create(trim(output_flnm), IOR(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
9187
9187
#endif
9188
9188
9189
9189
if (iret /= 0) then
@@ -9865,12 +9865,12 @@ subroutine output_lake_types( inNLINKS, inLINKID, inTYPEL )
9865
9865
flush(6)
9866
9866
#endif
9867
9867
9868
- #ifdef WRFIO_NCD_LARGE_FILE_SUPPORT
9869
- write(6,*) "using large netcdf file for LAKE TYPES"
9870
- iret = nf_create(trim(output_flnm), ior(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
9871
- #else
9868
+ #ifdef WRFIO_NCD_NO_LARGE_FILE_SUPPORT
9872
9869
write(6,*) "using normal netcdf file for LAKE TYPES"
9873
9870
iret = nf_create(trim(output_flnm), NF_CLOBBER, ncid)
9871
+ #else
9872
+ write(6,*) "using large netcdf file for LAKE TYPES"
9873
+ iret = nf_create(trim(output_flnm), ior(NF_CLOBBER,NF_64BIT_OFFSET), ncid)
9874
9874
#endif
9875
9875
9876
9876
if (iret /= 0) then
0 commit comments