Ignore:
Timestamp:
Nov 18, 2015, 1:25:35 PM (9 years ago)
Author:
Ehouarn Millour
Message:

Bug fix for aquaplanets: "rlat" and "rlon" were uninitialized when written to startphy.nc; phyredem should write "longitude_deg" and "latitude_deg" to the file. Overall "rlat" and "rlon" should not be used and "latitude_deg" and "longitude_deg" should be used instead in the physics. To be further cleaned up.
Some cleanup on that mater also made in phydev.
Note that this change will make bench test results different for longitudes and latitudes, because of roundoff effects.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/phyredem.F90

    r2356 r2395  
    66! Purpose: Write restart state for physics.
    77!-------------------------------------------------------------------------------
    8   USE dimphy
    9   USE mod_grid_phy_lmdz
    10   USE mod_phys_lmdz_para
     8  USE dimphy, ONLY: klon, klev
    119  USE fonte_neige_mod,  ONLY : fonte_neige_final
    1210  USE pbl_surface_mod,  ONLY : pbl_surface_final
    13   USE phys_state_var_mod
    14   USE iostart
     11  USE phys_state_var_mod, ONLY: radpas, zmasq, pctsrf, ftsol, falb_dir, &
     12                                falb_dif, qsol, fevap, radsol, solsw, sollw, &
     13                                sollwdown, rain_fall, snow_fall, z0m, z0h, &
     14                                agesno, zmea, zstd, zsig, zgam, zthe, zpic, &
     15                                zval, rugoro, t_ancien, q_ancien, u_ancien, &
     16                                v_ancien, clwcon, rnebcon, ratqs, pbl_tke, &
     17                                wake_delta_pbl_tke, zmax0, f0, sig1, w01, &
     18                                wake_deltat, wake_deltaq, wake_s, wake_cstar, &
     19                                wake_pe, wake_fip, fm_therm, entr_therm, &
     20                                detr_therm, Ale_bl, Ale_bl_trig, Alp_bl, &
     21                                du_gwd_rando, du_gwd_front
     22  USE geometry_mod, ONLY : longitude_deg, latitude_deg
     23  USE iostart, ONLY: open_restartphy, close_restartphy, put_field, put_var
    1524  USE traclmdz_mod, ONLY : traclmdz_to_restart
    1625  USE infotrac_phy, ONLY: type_trac, niadv, tname, nbtr, nqo
    1726  USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send
    18   USE indice_sol_mod
    19   USE surface_data
     27  USE indice_sol_mod, ONLY: nbsrf, is_oce, is_sic, is_ter, is_lic, epsfra
     28  USE surface_data, ONLY: type_ocean, version_ocean
    2029  USE ocean_slab_mod, ONLY : tslab, seaice, tice, fsic
    2130  USE time_phylmdz_mod, ONLY: annee_ref, day_end, itau_phy, pdtphys
     
    9099
    91100  CALL put_field("longitude", &
    92        "Longitudes de la grille physique", rlon)
    93 
    94   CALL put_field("latitude", "Latitudes de la grille physique", rlat)
     101       "Longitudes de la grille physique", longitude_deg)
     102
     103  CALL put_field("latitude", "Latitudes de la grille physique", latitude_deg)
    95104
    96105  ! PB ajout du masque terre/mer
Note: See TracChangeset for help on using the changeset viewer.