Ignore:
Timestamp:
Nov 22, 2010, 2:16:44 PM (14 years ago)
Author:
musat
Message:

phyetat0, phyredem: correction dimension verticale pbl_tke: pbl_tke(:,1:klev+1,:)
physiq: pour pouvoir fixer la longitude solaire avec la nouvelle orbite
JYG/IM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/LMDZ5V2.0-dev/libf/phylmd/phyetat0.F

    r1454 r1456  
    2121      USE infotrac
    2222      USE traclmdz_mod,    ONLY : traclmdz_from_restart
    23       USE carbon_cycle_mod,ONLY :
    24      &     carbon_cycle_tr, carbon_cycle_cpl, co2_send
     23      USE carbon_cycle_mod,ONLY : carbon_cycle_tr, carbon_cycle_cpl
    2524
    2625      IMPLICIT none
     
    134133
    135134       
    136       clesphy0(1)=tab_cntrl( 5 )
    137       clesphy0(2)=tab_cntrl( 6 )
    138       clesphy0(3)=tab_cntrl( 7 )
    139       clesphy0(4)=tab_cntrl( 8 )
    140       clesphy0(5)=tab_cntrl( 9 )
    141       clesphy0(6)=tab_cntrl( 10 )
    142       clesphy0(7)=tab_cntrl( 11 )
    143       clesphy0(8)=tab_cntrl( 12 )
     135
     136         IF( clesphy0(1).NE.tab_cntrl( 5 ) )  THEN
     137             clesphy0(1)=tab_cntrl( 5 )
     138         ENDIF
     139
     140         IF( clesphy0(2).NE.tab_cntrl( 6 ) )  THEN
     141             clesphy0(2)=tab_cntrl( 6 )
     142         ENDIF
     143
     144         IF( clesphy0(3).NE.tab_cntrl( 7 ) )  THEN
     145             clesphy0(3)=tab_cntrl( 7 )
     146         ENDIF
     147
     148         IF( clesphy0(4).NE.tab_cntrl( 8 ) )  THEN
     149             clesphy0(4)=tab_cntrl( 8 )
     150         ENDIF
     151
     152         IF( clesphy0(5).NE.tab_cntrl( 9 ) )  THEN
     153             clesphy0(5)=tab_cntrl( 9 )
     154         ENDIF
     155
     156         IF( clesphy0(6).NE.tab_cntrl( 10 ) )  THEN
     157             clesphy0(6)=tab_cntrl( 10 )
     158         ENDIF
     159
     160         IF( clesphy0(7).NE.tab_cntrl( 11 ) )  THEN
     161             clesphy0(7)=tab_cntrl( 11 )
     162         ENDIF
     163
     164         IF( clesphy0(8).NE.tab_cntrl( 12 ) )  THEN
     165             clesphy0(8)=tab_cntrl( 12 )
     166         ENDIF
     167
    144168
    145169c
     
    817841          ENDIF
    818842          WRITE(str2,'(i2.2)') nsrf
    819           CALL get_field("TKE"//str2,pbl_tke(:,1:klev,nsrf),found)
     843          CALL get_field("TKE"//str2,pbl_tke(:,1:klev+1,nsrf),found)
    820844          IF (.NOT. found) THEN
    821845            PRINT*, "phyetat0: <TKE"//str2//"> est absent"
     
    824848          xmin = 1.0E+20
    825849          xmax = -1.0E+20
    826           DO k = 1, klev
     850          DO k = 1, klev+1
    827851            DO i = 1, klon
    828852              xmin = MIN(pbl_tke(i,k,nsrf),xmin)
     
    10541078
    10551079         END DO
     1080         
    10561081         CALL traclmdz_from_restart(trs)
    1057 
    1058          IF (carbon_cycle_cpl) THEN
    1059             ALLOCATE(co2_send(klon), stat=ierr)
    1060             IF (ierr /= 0) CALL abort_gcm
    1061      &           ('phyetat0','pb allocation co2_send',1)
    1062             CALL get_field("co2_send",co2_send,found)
    1063             IF (.NOT. found) THEN
    1064                PRINT*,"phyetat0: Le champ <co2_send> est absent"
    1065                PRINT*,"Initialisation uniforme a co2_ppm=",co2_ppm
    1066                co2_send(:) = co2_ppm
    1067             END IF
    1068          END IF
    10691082      END IF
    10701083
Note: See TracChangeset for help on using the changeset viewer.