Ignore:
Timestamp:
Jan 22, 2019, 4:21:59 PM (6 years ago)
Author:
Laurent Fairhead
Message:

"Historic" :-) commit merging the physics branch used for DYNAMICO with the LMDZ trunk.
The same physics branch can now be used seamlessly with the traditional lon-lat LMDZ
dynamical core and DYNAMICO.
Testing consisted in running a lon-lat LMDZ bucket simulation with the NPv6.1 physics package
with the original trunk sources and the merged sources. Tests were succesful in the sense that
numeric continuity was preserved in the restart files from both simulation. Further tests
included running both versions of the physics codes for one year in a LMDZOR setting in which
the restart files also came out identical.

Caution:

  • as the physics package now manages unstructured grids, grid information needs to be transmitted

to the surface scheme ORCHIDEE. This means that the interface defined in surf_land_orchidee_mod.F90
is only compatible with ORCHIDEE version orchidee2.1 and later versions. If previous versions of
ORCHIDEE need to be used, the CPP key ORCHIDEE_NOUNSTRUCT needs to be set at compilation time.
This is done automatically if makelmdz/makelmdz_fcm are called with the veget orchidee2.0 switch

  • due to a limitation in XIOS, the time at which limit conditions will be read in by DYNAMICO will be

delayed by one physic timestep with respect to the time it is read in by the lon-lat model. This is caused
by the line

IF (MOD(itime-1, lmt_pas) == 0 .OR. (jour_lu /= jour .AND. grid_type /= unstructured)) THEN ! time to read

in limit_read_mod.F90

Work still needed on COSP integration and XML files for DYNAMICO

EM, YM, LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/carbon_cycle_mod.F90

    r3421 r3435  
    582582  SUBROUTINE infocfields_init
    583583
    584     USE control_mod, ONLY: planet_type
     584!    USE control_mod, ONLY: planet_type
    585585    USE phys_cal_mod, ONLY : mth_cur
    586586    USE mod_synchro_omp
     
    656656
    657657  CHARACTER(len=*),parameter :: modname="infocfields"
     658
     659  CHARACTER(len=10),SAVE :: planet_type="earth"
    658660
    659661!-----------------------------------------------------------------------
     
    718720                  WRITE(lunout,*) 'abort_gcm --- nbcf_in : ',nbcf_in
    719721                  WRITE(lunout,*) 'abort_gcm --- nbcf_out: ',nbcf_out
    720                   CALL abort_gcm('infocfields_init','Problem in the definition of the coupling fields',1)
     722                  CALL abort_physic('infocfields_init','Problem in the definition of the coupling fields',1)
    721723               ENDIF
    722724             ENDDO !DO iq=1,nbcf
     
    836838
    837839 ALLOCATE(fields_in(klon,nbcf_in),stat=error)
    838  IF (error /= 0)  CALL abort_gcm(modname,'Pb in allocation fields_in',1)
     840 IF (error /= 0)  CALL abort_physic(modname,'Pb in allocation fields_in',1)
    839841 ALLOCATE(yfields_in(klon,nbcf_in),stat=error)
    840  IF (error /= 0)  CALL abort_gcm(modname,'Pb in allocation yfields_in',1)
     842 IF (error /= 0)  CALL abort_physic(modname,'Pb in allocation yfields_in',1)
    841843 ALLOCATE(fields_out(klon,nbcf_out),stat=error)
    842  IF (error /= 0)  CALL abort_gcm(modname,'Pb in allocation fields_out',1)
     844 IF (error /= 0)  CALL abort_physic(modname,'Pb in allocation fields_out',1)
    843845 ALLOCATE(yfields_out(klon,nbcf_out),stat=error)
    844  IF (error /= 0)  CALL abort_gcm(modname,'Pb in allocation yfields_out',1)
     846 IF (error /= 0)  CALL abort_physic(modname,'Pb in allocation yfields_out',1)
    845847
    846848END SUBROUTINE infocfields_init
Note: See TracChangeset for help on using the changeset viewer.