Changeset 1451 for LMDZ4


Ignore:
Timestamp:
Nov 12, 2010, 4:13:39 PM (13 years ago)
Author:
jghattas
Message:

Bug corrections :
dyn3dpar/initfluxsto_p.F, leapfrog_p.F and fluxstokenc_p.F : for offline option
phylmd/calcul_divers.h : corrected initialization, for case ecrit_mth=dtime

Location:
LMDZ4/branches/LMDZ4_AR5/libf
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4_AR5/libf/dyn3dpar/fluxstokenc_p.F

    r1279 r1451  
    5757
    5858c AC initialisations
    59 cym      pbarug(:,:)   = 0.
     59      pbarug(:,:)   = 0.
    6060cym      pbarvg(:,:,:) = 0.
    6161cym      wg(:,:)       = 0.
  • LMDZ4/branches/LMDZ4_AR5/libf/dyn3dpar/initfluxsto_p.F

    r1279 r1451  
    203203     .              llm, nivsigs, zvertiid)
    204204c pour le fichier def
    205       nivd(1) = 1
    206       call histvert(filedid, 'sig_s', 'Niveaux sigma',
    207      .  'sigma_level',
    208      .              1, nivd, dvertiid)
    209 
     205      if (mpi_rank==0) then
     206         nivd(1) = 1
     207         call histvert(filedid, 'sig_s', 'Niveaux sigma',
     208     .        'sigma_level',
     209     .        1, nivd, dvertiid)
     210      endif
    210211C
    211212C  Appels a histdef pour la definition des variables a sauvegarder
     
    282283      call histend(fileid)
    283284      call histend(filevid)
    284       call histend(filedid)
     285      if (mpi_rank==0) call histend(filedid)
    285286      if (ok_sync) then
    286287        call histsync(fileid)
    287288        call histsync(filevid)
    288         call histsync(filedid)
     289        if (mpi_rank==0) call histsync(filedid)
    289290      endif
    290291       
  • LMDZ4/branches/LMDZ4_AR5/libf/dyn3dpar/leapfrog_p.F

    r1286 r1451  
    588588     .        flxw,pk, iapptrac)
    589589
    590        IF (offline) THEN
     590       IF (offline .AND. .NOT. adjust) THEN
    591591Cmaf stokage du flux de masse pour traceurs OFF-LINE
    592592
  • LMDZ4/branches/LMDZ4_AR5/libf/phylmd/calcul_divers.h

    r1398 r1451  
    33c
    44c
    5 c initialisations diverses au "debut" du mois
     5c initialisations diverses au "debut" du simulation
    66c
    7       IF(MOD(itap,INT(ecrit_mth/dtime)).EQ.1) THEN
     7      IF(debut) THEN
    88         DO i=1, klon
    99          nday_rain(i)=0.
     
    1717       ENDDO
    1818c
    19       ENDIF !MOD(itap,INT(ecrit_mth)).EQ.1
     19      ENDIF
    2020c
    21       IF(MOD(itap,INT(ecrit_day/dtime)).EQ.0) THEN
     21      IF(MOD(itap,INT(un_jour/dtime)).EQ.0) THEN
    2222c
    23 cIM calcul total_rain, nday_rain
     23cIM calcul une fois par jour : total_rain, nday_rain
    2424c
    2525       DO i = 1, klon
     
    2727        IF(total_rain(i).GT.0.) nday_rain(i)=nday_rain(i)+1.
    2828       ENDDO
    29       ENDIF !itap.EQ.ecrit_mth
     29      ENDIF
Note: See TracChangeset for help on using the changeset viewer.