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

Location:
LMDZ4/branches/LMDZ4_V3_patches/libf/phylmd
Files:
2 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
  • LMDZ4/branches/LMDZ4_V3_patches/libf/phylmd/oasis.F90

    r1075 r1124  
    140140    cl_writ(7)='COWINDSP'
    141141    cl_writ(8)='COSHFICE'
    142     cl_writ(9)='COSHFOCE'
    143142    cl_writ(10)='CONSFICE'
    144     cl_writ(11)='CONSFOCE'
    145143    cl_writ(12)='CODFLXDT'
    146144
    147145    IF (version_ocean=='nemo') THEN
    148       cl_writ(13)='COEMPSIC'
    149       cl_writ(14)='CONESOPR'
    150       cl_writ(15)='COEMPOCE'
     146      cl_writ(9)='COQSRMIX'
     147      cl_writ(11)='COQNSMIX'
     148      cl_writ(13)='COTOTRAI'
     149      cl_writ(14)='COTOTSNO'
     150      cl_writ(15)='COTOTEVA'
    151151      cl_writ(16)='COICEVAP'
    152152      cl_writ(17)='COCALVIN'
    153153      cl_writ(18)='COLIQRUN'
    154154    ELSE IF (version_ocean=='opa8') THEN
     155       cl_writ(9)='COSHFOCE'
     156       cl_writ(11)='CONSFOCE'
    155157       cl_writ(13)='COTFSICE'
    156158       cl_writ(14)='COTFSOCE'
Note: See TracChangeset for help on using the changeset viewer.