Changeset 3535


Ignore:
Timestamp:
Jun 13, 2019, 10:33:32 AM (5 years ago)
Author:
yann meurdesoif
Message:

For unstructured grid (dynamico).
A file can be used to impose land fraction without using Relief.nc.
The land franction is available at 0.05°, 0.25° and 0.5° degree resolution.
If land_water_0.05.nc or land_water_0.25.nc or land_water_0.50.nc is present in the runing directory, it will be use to impose ter/oce fraction.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/create_etat0_unstruct.F90

    r3466 r3535  
    1818   ! for coupling activate ocean fraction reading from file "ocean_fraction.nc"
    1919    IF (is_omp_master) THEN
    20       IF(NF90_OPEN("ocean_fraction.nc", NF90_NOWRITE, file_id)==NF90_NOERR) THEN
     20
     21      IF (NF90_OPEN("ocean_fraction.nc", NF90_NOWRITE, file_id)==NF90_NOERR) THEN
    2122        CALL xios_set_file_attr("frac_ocean",enabled=.TRUE.)
    2223        CALL xios_set_field_attr("mask",field_ref="frac_ocean_read")
    2324        iret=NF90_CLOSE(file_id)
     25      ELSE IF (NF90_OPEN("land_water_0.05.nc", NF90_NOWRITE, file_id)==NF90_NOERR) THEN
     26        CALL xios_set_file_attr("land_water",name="land_water_0.05",enabled=.TRUE.)
     27        CALL xios_set_field_attr("mask",field_ref="land_water")
     28        iret=NF90_CLOSE(file_id)
     29      ELSE IF (NF90_OPEN("land_water_0.25.nc", NF90_NOWRITE, file_id)==NF90_NOERR) THEN
     30        CALL xios_set_file_attr("land_water",name="land_water_0.25",enabled=.TRUE.)
     31        CALL xios_set_field_attr("mask",field_ref="land_water")
     32        iret=NF90_CLOSE(file_id)
     33      ELSE IF (NF90_OPEN("land_water_0.50.nc", NF90_NOWRITE, file_id)==NF90_NOERR) THEN
     34        CALL xios_set_file_attr("land_water",name="land_water_0.50",enabled=.TRUE.)
     35        CALL xios_set_field_attr("mask",field_ref="land_water")
     36        iret=NF90_CLOSE(file_id)
    2437      ENDIF
     38
    2539    ENDIF
    2640
Note: See TracChangeset for help on using the changeset viewer.