Ignore:
Timestamp:
Jan 30, 2019, 5:55:48 PM (6 years ago)
Author:
lguez
Message:

Introduce variable activate_ocean_skin in module config_ocean_skin_m.

Bug fix in phys_state_var_end: we need to deallocate variables for
lmdz1d (although it is useless for a 3D run).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Ocean_skin/libf/phylmd/phyetat0.F90

    r3429 r3458  
    3030  USE time_phylmdz_mod, ONLY: init_iteration, pdtphys, itau_phy
    3131  use netcdf, only: nf90_fill_real
     32  use config_ocean_skin_m, only: activate_ocean_skin
    3233
    3334  IMPLICIT none
     
    529530  CALL fonte_neige_init(run_off_lic_0)
    530531
    531   found = phyetat0_get(1, ds_ns, "ds_ns", "delta salinity near surface", 0.)
    532   found = phyetat0_get(1, dt_ns, "dT_ns", "delta temperature near surface", 0.)
    533 
    534   where (pctsrf(:, is_oce) == 0.)
    535      ds_ns = nf90_fill_real
    536      dt_ns = nf90_fill_real
    537   end where
     532  if (activate_ocean_skin >= 1) then
     533     found = phyetat0_get(1, ds_ns, "ds_ns", "delta salinity near surface", 0.)
     534     found = phyetat0_get(1, dt_ns, "dT_ns", "delta temperature near surface", &
     535          0.)
     536
     537     where (pctsrf(:, is_oce) == 0.)
     538        ds_ns = nf90_fill_real
     539        dt_ns = nf90_fill_real
     540     end where
     541  end if
    538542
    539543END SUBROUTINE phyetat0
Note: See TracChangeset for help on using the changeset viewer.