Changeset 258


Ignore:
Timestamp:
2011-06-17T14:02:59+02:00 (13 years ago)
Author:
didier.solyga
Message:

Externalized version of ORCHIDEE_OL files merged with the trunk

Location:
branches/ORCHIDEE_EXT/ORCHIDEE_OL
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/AA_make

    r65 r258  
    11#- 
    2 #- $Id: AA_make,v 1.34 2009/11/10 12:57:07 ssipsl Exp $ 
     2#- $Id: AA_make 92 2011-02-08 13:41:26Z martial.mancip $ 
    33#- 
    44MODS1 = dim2_driver.f90 \ 
     
    9696all_libs: 
    9797        $(M_K) libioipsl 
     98        $(M_K) libparallel 
    9899        $(M_K) libparameters 
    99         $(M_K) libparallel 
    100100        $(M_K) liborglob 
    101101        $(M_K) libstomate 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/AA_make.ldef

    r65 r258  
    11#- 
    2 #- $Id: AA_make.ldef,v 1.15 2008/06/30 10:48:17 ssipsl Exp $ 
     2#- $Id: AA_make.ldef 18 2010-11-29 11:12:17Z mmaipsl $ 
    33#- 
    44SHELL = /bin/sh 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/dim2_driver.f90

    r65 r258  
    11PROGRAM driver 
    2 !- $Header: /home/ssipsl/CVSREP/ORCHIDEE_OL/dim2_driver.f90,v 1.26 2010/04/22 15:48:59 ssipsl Exp $ 
     2!< $HeadURL: http://forge.ipsl.jussieu.fr/orchidee/svn/trunk/ORCHIDEE_OL/dim2_driver.f90 $  
     3!< $Date: 2011-06-01 10:03:53 +0200 (Wed, 01 Jun 2011) $ 
     4!< $Author: martial.mancip $ 
     5!< $Revision: 254 $ 
    36!- IPSL (2006) 
    47!-  This software is governed by the CeCILL licence see ORCHIDEE/ORCHIDEE_CeCILL.LIC 
     
    337340  itau_dep = 0 
    338341  itau_dep_rest = 0 
    339   itau_fin = tm-1 
     342  itau_fin = tm 
    340343!- 
    341344  CALL gather2D(lon,lon_g) 
     
    358361     IF (itau_dep /= itau_dep_rest) THEN 
    359362        itau_dep = itau_dep_rest 
    360         itau_fin = itau_dep+tm-1 
     363        itau_fin = itau_dep+tm 
    361364     ENDIF 
    362365  ENDIF 
     
    457460  IF ( (dt_rest /= dt_force).AND.(itau_dep > 1) ) THEN 
    458461    itau_dep = NINT((itau_dep*dt_rest )/dt_force) 
    459     itau_fin = itau_dep+tm-1 
     462    itau_fin = itau_dep+tm 
    460463    if (debug) WRITE(numout,*) & 
    461464 & 'The time steping of the restart is different from the one ',& 
     
    10131016         ENDDO 
    10141017      ENDIF 
    1015       for_swdown(:,:) = swdown(:,:) 
     1018      DO ik=1,nbindex 
     1019         i=ilandindex(ik) 
     1020         j=jlandindex(ik) 
     1021         for_swdown(i,j) = swdown(i,j) 
     1022      ENDDO 
    10161023!-----  
    10171024!---- Computing the buffer zone ! 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/forcesoil.f90

    r65 r258  
    7676  CALL Init_para(.FALSE.)  
    7777 
    78   CALL getin('NVM',nvm) 
    79  
     78  CALL getin_p('NVM',nvm) 
    8079  !- 
    8180  ! Stomate's restart files 
     
    290289  CALL Scatter(carbon,carbon_loc) 
    291290 
     291!!$ DS 16/06/2011 : calling the new_values of soilcarbon parameters before loop 
     292     ! 
     293     CALL getin_p('FRAC_CARB_AA',frac_carb_aa) 
     294     CALL getin_p('FRAC_CARB_AP',frac_carb_ap)    
     295     CALL getin_p('FRAC_CARB_SS',frac_carb_ss) 
     296     CALL getin_p('FRAC_CARB_SA',frac_carb_sa) 
     297     CALL getin_p('FRAC_CARB_SP',frac_carb_sp) 
     298     CALL getin_p('FRAC_CARB_PP',frac_carb_pp) 
     299     CALL getin_p('FRAC_CARB_PA',frac_carb_pa) 
     300     CALL getin_p('FRAC_CARB_PS',frac_carb_ps) 
     301     ! 
     302     CALL getin_p('ACTIVE_TO_PASS_CLAY_FRAC',active_to_pass_clay_frac) 
     303     CALL getin_p('CARBON_TAU_IACTIVE',carbon_tau_iactive) 
     304     CALL getin_p('CARBON_TAU_ISLOW',carbon_tau_islow) 
     305     CALL getin_p('CARBON_TAU_IPASSIVE',carbon_tau_ipassive) 
     306     CALL getin_p('FLUX_TOT_COEFF',flux_tot_coeff) 
     307 
    292308  DO i=1,itau_len 
    293309     iatt = iatt+1 
    294310     IF (iatt > nparan) iatt = 1 
    295  
    296 !!$     DS : calling the new_values of soilcarbon parameters 
    297      ! 
    298      CALL getin('FRAC_CARB_AA',frac_carb_aa) 
    299      CALL getin('FRAC_CARB_AP',frac_carb_ap)    
    300      CALL getin('FRAC_CARB_SS',frac_carb_ss) 
    301      CALL getin('FRAC_CARB_SA',frac_carb_sa) 
    302      CALL getin('FRAC_CARB_SP',frac_carb_sp) 
    303      CALL getin('FRAC_CARB_PP',frac_carb_pp) 
    304      CALL getin('FRAC_CARB_PA',frac_carb_pa) 
    305      CALL getin('FRAC_CARB_PS',frac_carb_ps) 
    306      ! 
    307      CALL getin('ACTIVE_TO_PASS_CLAY_FRAC',active_to_pass_clay_frac) 
    308      CALL getin('CARBON_TAU_IACTIVE',carbon_tau_iactive) 
    309      CALL getin('CARBON_TAU_ISLOW',carbon_tau_islow) 
    310      CALL getin('CARBON_TAU_IPASSIVE',carbon_tau_ipassive) 
    311      CALL getin('FLUX_TOT_COEFF',flux_tot_coeff) 
    312  
    313311     CALL soilcarbon & 
    314312          &    (nbp_loc, dt_forcesoil, clay_loc, & 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/getprec.f90

    r65 r258  
    1 !  $Header: /home/ssipsl/CVSREP/ORCHIDEE_OL/getprec.f90,v 1.3 2006/09/14 22:53:13 ssipsl Exp $ 
     1!< $HeadURL: http://forge.ipsl.jussieu.fr/orchidee/svn/trunk/ORCHIDEE_OL/getprec.f90 $  
     2!< $Date: 2010-11-29 12:12:17 +0100 (Mon, 29 Nov 2010) $ 
     3!< $Author: mmaipsl $ 
     4!< $Revision: 18 $ 
    25!- 
    36PROGRAM getprec 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/readdim2.f90

    r65 r258  
    22MODULE readdim2 
    33!--------------------------------------------------------------------- 
    4 !- $Header: /home/ssipsl/CVSREP/ORCHIDEE_OL/readdim2.f90,v 1.23 2010/04/22 13:11:24 ssipsl Exp $ 
     4!< $HeadURL: http://forge.ipsl.jussieu.fr/orchidee/svn/trunk/ORCHIDEE_OL/readdim2.f90 $  
     5!< $Date: 2011-01-01 21:42:53 +0100 (Sat, 01 Jan 2011) $ 
     6!< $Author: mmaipsl $ 
     7!< $Revision: 50 $ 
    58!- IPSL (2006) 
    69!-  This software is governed by the CeCILL licence see ORCHIDEE/ORCHIDEE_CeCILL.LIC 
     
    9699    ALLOCATE(lev_full(llm_full)) 
    97100    ALLOCATE(fcontfrac(iim_full,jjm_full)) 
    98     ALLOCATE(i_index(iim_full), j_index(jjm_full),j_index_g(jjm_full)) 
    99101    !- 
    100102    lev_full(:) = zero 
     
    249251       !- If we use temporal interpolation, then we cannot change the resolution (yet?) 
    250252       !- 
     253       ALLOCATE(i_index(iim_full), j_index(jjm_full),j_index_g(jjm_full)) 
    251254       IF (is_root_prc) THEN 
    252255 
     
    362365          CALL weathgen_init & 
    363366               &        (filename,dt_force,force_id,iim_zoom,jjm_zoom, & 
    364                &         zonal_res,merid_res,lon,lat,index_l,NbPoint,& 
    365                &         i_index,j_index_g) 
     367               &         zonal_res,merid_res,lon,lat,index_l,NbPoint) 
     368!!$,& 
     369!!$               &         i_index,j_index_g) 
    366370       ELSE 
    367371          ALLOCATE(index_l(1)) 
     
    377381       DEALLOCATE(index_l) 
    378382 
    379        CALL bcast(i_index) 
    380        CALL bcast(j_index_g) 
    381  
    382        ind=0 
    383        DO j=1,jjm_zoom 
    384           IF ( (j >= jj_begin) .AND. (j <= jj_end) ) THEN 
    385              ind=ind+1 
    386              j_index(ind)=j_index_g(j) 
    387           ENDIF 
    388        ENDDO 
     383!!$       CALL bcast(i_index) 
     384!!$       CALL bcast(j_index_g) 
     385 
     386!!$       ind=0 
     387!!$       DO j=1,jjm_zoom 
     388!!$          IF ( (j >= jj_begin) .AND. (j <= jj_end) ) THEN 
     389!!$             ind=ind+1 
     390!!$             j_index(ind)=j_index_g(j) 
     391!!$          ENDIF 
     392!!$       ENDDO 
    389393 
    390394       jjm_zoom=jj_nb 
     
    492496   REAL,DIMENSION(iim,jjm) :: & 
    493497  &  SWnet, Eair, petAcoef, peqAcoef, petBcoef, peqBcoef, cdrag, ccanopy 
    494    INTEGER,DIMENSION(iim*jjm), INTENT(OUT) :: kindex 
     498   INTEGER,DIMENSION(iim*jjm), INTENT(INOUT) :: kindex 
    495499!- 
    496500   INTEGER :: ik,i,j 
     
    688692   ENDIF 
    689693!- 
    690    itau_read = itauin 
     694!!$   itau_read = itauin 
     695   itau_read = MOD((itauin-1),ttm)+1 
    691696!- 
    692697!- This part initializes the reading of the forcing. As you can see 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/teststomate.f90

    r117 r258  
    466466  hist_days_stom = 10. 
    467467  CALL getin ('STOMATE_HIST_DT', hist_days_stom) 
    468   hist_dt_stom = NINT( hist_days_stom ) * one_day 
    469   WRITE(*,*) 'output frequency for STOMATE history file (d): ', & 
     468  IF ( hist_days_stom == -1. ) THEN 
     469     hist_dt_stom = -1. 
     470     WRITE(numout,*) 'output frequency for STOMATE history file (d): one month.' 
     471  ELSE 
     472     hist_dt_stom = NINT( hist_days_stom ) * one_day 
     473     WRITE(numout,*) 'output frequency for STOMATE history file (d): ', & 
    470474             hist_dt_stom/one_day 
     475  ENDIF 
    471476!- 
    472477! initialize 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/weather.f90

    r65 r258  
    14741474SUBROUTINE weathgen_init & 
    14751475     & (filename,dt_force,force_id,iim,jjm, & 
    1476      &  zonal_res,merid_res,lon,lat,kindex,nbindex,iind,jind) 
     1476     &  zonal_res,merid_res,lon,lat,kindex,nbindex) 
     1477!!$,iind,jind) 
    14771478  !--------------------------------------------------------------------- 
    14781479  IMPLICIT NONE 
     
    14801481  CHARACTER(LEN=*),INTENT(IN)         :: filename 
    14811482  REAL,INTENT(IN)                     :: dt_force 
    1482   INTEGER,INTENT(IN)                  :: force_id 
     1483  INTEGER,INTENT(INOUT)                  :: force_id 
    14831484  INTEGER,INTENT(IN)                  :: iim, jjm 
    14841485  REAL,INTENT(IN)                     :: zonal_res,merid_res 
     
    14871488  INTEGER,DIMENSION(iim*jjm),INTENT(OUT)  :: kindex 
    14881489  INTEGER,INTENT(OUT)                     :: nbindex 
    1489   INTEGER,DIMENSION(iim),INTENT(OUT) :: iind 
    1490   INTEGER,DIMENSION(jjm),INTENT(OUT) :: jind 
     1490!!$  INTEGER,DIMENSION(iim),INTENT(OUT) :: iind 
     1491!!$  INTEGER,DIMENSION(jjm),INTENT(OUT) :: jind 
    14911492  !- 
    14921493  REAL,PARAMETER  :: fcrit = .5 
Note: See TracChangeset for help on using the changeset viewer.