Ignore:
Timestamp:
2021-07-27T19:02:48+02:00 (3 years ago)
Author:
agnes.ducharne
Message:

As in r7065 and r76158 for the new driver. Runs OK on jean-zay with the old driver, but not yet tested with the new driver. The corresponding configurations need to be added following r7081, r7082, and r7719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_2_2/ORCHIDEE/src_driver/orchideedriver.f90

    r7261 r7262  
    5050  USE ioipslctrl 
    5151  USE xios_orchidee 
     52   
    5253  ! 
    5354  !- 
     
    317318  IF ( is_root_prc) THEN 
    318319     CALL globgrd_getdomsz(gridfilename, iim_glo, jjm_glo, nbindex_g, model_guess, file_id, forfilename, zoom_lon, zoom_lat) 
     320     write(numout,*) "nbindex_g after calling globgrd_getdomsz in orchideedriver", nbindex_g 
    319321     nbseg = 4 
    320322  ENDIF 
     
    342344          &               kindex_g, contfrac_glo, calendar) 
    343345  ENDIF 
     346   
    344347  ! 
    345348  CALL bcast(lon_glo) 
     
    369372  ENDDO 
    370373  ! 
     374   
    371375  WRITE(*,*) "Rank", mpi_rank, " Before parallel region All land points : ",  nbindex_g 
    372376  WRITE(*,*) "Rank", mpi_rank, " from ", iim_glo, " point in Lon. and ", jjm_glo, "in Lat." 
     
    382386  !- 
    383387  CALL grid_set_glo(iim_glo, jjm_glo, nbindex_g) 
     388   
     389 
    384390  CALL grid_allocate_glo(nbseg) 
    385391  ! Copy the list of indexes of land points into index_g used by ORCHIDEE and then broacast to all 
     
    477483  !- 
    478484  CALL forcing_integration_time(date0, dt, nbdt) 
     485  write(numout, *) "orchideedriver date0", date0, dt, nbdt 
    479486  ! 
    480487  !- 
     
    558565  ! 
    559566  CALL ioipslctrl_restini(itau, date0, dt, rest_id, rest_id_stom, itau_offset, date0_shifted) 
    560   WRITE(numout,*) "itau_offset : ", itau_offset, date0, date0_shifted 
    561   WRITE(numout,*) "itau_offset diff = ", date0_shifted, date0, date0_shifted-date0 
    562567  ! 
    563568  ! To ensure that itau starts with 0 at date0 for the restart, we have to set an off-set to achieve this.  
     
    574579       date0,    year_end, month_end, day_end, julian_diff,  & 
    575580       lon,      lat,      znt) 
    576  
    577581  CALL sechiba_xios_initialize  
    578582 
     
    599603     timestep_interval(1) = julian_start 
    600604     timestep_interval(2) = julian_end 
    601      julian = julian_end 
     605     julian = (julian_start + julian_end) /2.0  !julian_end 
     606      
    602607     ! 
    603608     ! Get the forcing data 
     
    605610     CALL forcing_getvalues(timestep_interval, dt, zlev_tq, zlev_uv, temp_air, qair, & 
    606611          &                 precip_rain, precip_snow, swdown, lwdown, sinang, u, v, pb) 
     612      
    607613     !- 
    608614     ! 
Note: See TracChangeset for help on using the changeset viewer.