- Timestamp:
- Jul 23, 2024, 7:00:20 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/create_etat0_unstruct_mod.F90
r5099 r5100 23 23 SUBROUTINE init_create_etat0_unstruct 24 24 USE lmdz_xios 25 USE netcdf, ONLY: NF90_NOWRITE,nf90_close,nf90_noerr,nf90_open25 USE netcdf, ONLY: nf90_nowrite,nf90_close,nf90_noerr,nf90_open 26 26 USE mod_phys_lmdz_para 27 27 IMPLICIT NONE … … 31 31 IF (is_omp_master) THEN 32 32 33 IF ( NF90_OPEN("ocean_fraction.nc", NF90_NOWRITE, file_id)==nf90_noerr) THEN33 IF (nf90_open("ocean_fraction.nc", nf90_nowrite, file_id)==nf90_noerr) THEN 34 34 CALL xios_set_file_attr("frac_ocean",enabled=.TRUE.) 35 35 CALL xios_set_field_attr("mask",field_ref="frac_ocean_read") 36 iret= NF90_CLOSE(file_id)37 ELSE IF ( NF90_OPEN("land_water_0.05.nc", NF90_NOWRITE, file_id)==nf90_noerr) THEN36 iret=nf90_close(file_id) 37 ELSE IF (nf90_open("land_water_0.05.nc", nf90_nowrite, file_id)==nf90_noerr) THEN 38 38 CALL xios_set_file_attr("land_water",name="land_water_0.05",enabled=.TRUE.) 39 39 CALL xios_set_field_attr("mask",field_ref="land_water") 40 iret= NF90_CLOSE(file_id)41 ELSE IF ( NF90_OPEN("land_water_0.25.nc", NF90_NOWRITE, file_id)==nf90_noerr) THEN40 iret=nf90_close(file_id) 41 ELSE IF (nf90_open("land_water_0.25.nc", nf90_nowrite, file_id)==nf90_noerr) THEN 42 42 CALL xios_set_file_attr("land_water",name="land_water_0.25",enabled=.TRUE.) 43 43 CALL xios_set_field_attr("mask",field_ref="land_water") 44 iret= NF90_CLOSE(file_id)45 ELSE IF ( NF90_OPEN("land_water_0.50.nc", NF90_NOWRITE, file_id)==nf90_noerr) THEN44 iret=nf90_close(file_id) 45 ELSE IF (nf90_open("land_water_0.50.nc", nf90_nowrite, file_id)==nf90_noerr) THEN 46 46 CALL xios_set_file_attr("land_water",name="land_water_0.50",enabled=.TRUE.) 47 47 CALL xios_set_field_attr("mask",field_ref="land_water") 48 iret= NF90_CLOSE(file_id)48 iret=nf90_close(file_id) 49 49 ENDIF 50 50
Note: See TracChangeset
for help on using the changeset viewer.