Ignore:
Timestamp:
Mar 17, 2009, 10:53:39 AM (16 years ago)
Author:
jghattas
Message:

Modification pour couplage conservatif avec NEMO : passage des champs totaux et champs sur la glace au lieu de passage des champs sur l'ocean et champs sur la glace.

Arnaud Caubel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4_V3_patches/libf/phylmd/cpl_mod.F90

    r1075 r1124  
    954954    tab_flds(:,:,7)  = cpl_windsp2D(:,:)
    955955    tab_flds(:,:,8)  = cpl_sols2D(:,:,2)
    956     tab_flds(:,:,9)  = cpl_sols2D(:,:,1)
    957956    tab_flds(:,:,10) = cpl_nsol2D(:,:,2)
    958     tab_flds(:,:,11) = cpl_nsol2D(:,:,1)
    959957    tab_flds(:,:,12) = cpl_fder2D(:,:,2)
    960958   
     
    962960       tab_flds(:,:,18) = cpl_rriv2D(:,:) + cpl_rcoa2D(:,:)
    963961    ELSE IF (version_ocean=='opa8') THEN
     962       tab_flds(:,:,9)  = cpl_sols2D(:,:,1)
     963       tab_flds(:,:,11) = cpl_nsol2D(:,:,1)
     964
    964965       tab_flds(:,:,13) = cpl_evap2D(:,:,2)
    965966       tab_flds(:,:,14) = cpl_evap2D(:,:,1)
     
    10301031
    10311032    IF (version_ocean=='nemo') THEN
    1032        tab_flds(:,:,13) = cpl_evap2D(:,:,2) - (cpl_rain2D(:,:,2) + cpl_snow2D(:,:,2))
    1033 
     1033
     1034       tab_flds(:,:,9)  = 0.0
     1035       tab_flds(:,:,11) = 0.0
     1036       tab_flds(:,:,13) = 0.0
    10341037       tab_flds(:,:,14) = 0.0
     1038       tab_flds(:,:,15) = 0.0
    10351039       tmp_taux(:,:)    = 0.0
    10361040       tmp_tauy(:,:)    = 0.0
     1041       
    10371042       ! For all valid grid cells containing some fraction of ocean or sea-ice
    10381043       WHERE ( deno(:,:) /= 0 )
     
    10411046           tmp_tauy = cpl_tauy2D(:,:,1) * pctsrf2D(:,:,is_oce) / deno(:,:) +    &
    10421047              cpl_tauy2D(:,:,2) * pctsrf2D(:,:,is_sic) / deno(:,:)
     1048           tab_flds(:,:,9) = cpl_sols2D(:,:,1) * pctsrf2D(:,:,is_oce) / deno(:,:) +    &
     1049              cpl_sols2D(:,:,2) * pctsrf2D(:,:,is_sic) / deno(:,:)
     1050           tab_flds(:,:,11) = cpl_nsol2D(:,:,1) * pctsrf2D(:,:,is_oce) / deno(:,:) +    &
     1051              cpl_nsol2D(:,:,2) * pctsrf2D(:,:,is_sic) / deno(:,:)
     1052           tab_flds(:,:,13) = cpl_rain2D(:,:,1) * pctsrf2D(:,:,is_oce) / deno(:,:) +    &
     1053               cpl_rain2D(:,:,2) * pctsrf2D(:,:,is_sic) / deno(:,:)
    10431054           tab_flds(:,:,14) = cpl_snow2D(:,:,1) * pctsrf2D(:,:,is_oce) / deno(:,:) +    &
    10441055              cpl_snow2D(:,:,2) * pctsrf2D(:,:,is_sic) / deno(:,:)
     1056           tab_flds(:,:,15) = cpl_evap2D(:,:,1) * pctsrf2D(:,:,is_oce) / deno(:,:) +    &
     1057              cpl_evap2D(:,:,2)  * pctsrf2D(:,:,is_sic) / deno(:,:)
    10451058       ENDWHERE
    10461059
    1047        WHERE (pctsrf2D(:,:,is_sic) == 0)
    1048           cpl_evap2D(:,:,2) = 0.0
    1049        END WHERE
    1050 
    1051        tab_flds(:,:,14) = cpl_evap2D(:,:,2) - tab_flds(:,:,14)
    1052        tab_flds(:,:,15) = cpl_evap2D(:,:,1) - (cpl_rain2D(:,:,1) + cpl_snow2D(:,:,1))
    10531060       tab_flds(:,:,16) = cpl_evap2D(:,:,2)
    10541061
Note: See TracChangeset for help on using the changeset viewer.