13 |
|
|
14 |
use histbeg_totreg_m, ONLY: nb_files |
use histbeg_totreg_m, ONLY: nb_files |
15 |
USE histcom_var, ONLY: ncdf_ids |
USE histcom_var, ONLY: ncdf_ids |
16 |
USE netcdf, ONLY: nf90_sync |
USE netcdf95, ONLY: nf95_sync |
17 |
|
|
18 |
INTEGER, INTENT(IN), OPTIONAL:: file |
INTEGER, INTENT(IN), OPTIONAL:: file |
19 |
|
|
20 |
INTEGER:: ifile, ncid, iret |
INTEGER:: ifile, ncid |
21 |
|
|
22 |
LOGICAL:: file_exists |
LOGICAL:: file_exists |
23 |
!--------------------------------------------------------------------- |
!--------------------------------------------------------------------- |
34 |
|
|
35 |
IF (file_exists) THEN |
IF (file_exists) THEN |
36 |
ncid = ncdf_ids(ifile) |
ncid = ncdf_ids(ifile) |
37 |
iret = nf90_sync(ncid) |
call nf95_sync(ncid) |
38 |
END IF |
END IF |
39 |
|
|
40 |
END DO |
END DO |