Ignore:
Timestamp:
Jan 19, 2009, 2:40:26 PM (16 years ago)
Author:
Laurent Fairhead
Message:

Mise a jour de la branche par rapport au depot CVS
JG/LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4_V3_patches/libf/phylmd/conf_phys.F90

    r954 r1073  
    1 !
    2 ! $Header$
    31!
    42!
     
    1412
    1513   use IOIPSL
     14   use surface_data, ONLY : version_ocean
    1615   implicit none
    1716
     
    3332!
    3433! ocean:      type d'ocean (force, slab, couple)
     34! version_ocean:   version d'ocean (opa8/nemo pour ocean=couple)
    3535! ok_veget:   type de modele de vegetation
    3636! ok_journe:  sorties journalieres
     
    5252  integer              :: iflag_cldcon
    5353
    54   character (len = 6),SAVE  :: ocean_omp
     54  character (len = 6),SAVE  :: ocean_omp, version_ocean_omp
    5555  logical,SAVE              :: ok_veget_omp, ok_newmicro_omp
    5656  logical,SAVE        :: ok_journe_omp, ok_mensuel_omp, ok_instan_omp, ok_hf_omp       
     
    105105  ocean_omp = 'force '
    106106  call getin('OCEAN', ocean_omp)
     107!
     108!Config Key  = version_ocean
     109!Config Desc = Version d'ocean
     110!Config Def  = xxxxxx
     111!Config Help = Version d'ocean utilise: opa8/nemo/xxxxxx
     112!
     113  version_ocean_omp = 'opa8'
     114  call getin('version_ocean', version_ocean_omp)
    107115!
    108116!Config Key  = VEGET
     
    849857
    850858    ocean = ocean_omp
     859    version_ocean = version_ocean_omp
    851860    ok_veget = ok_veget_omp
    852861    ok_newmicro = ok_newmicro_omp
     
    886895    ok_lic_melt = ok_lic_melt_omp
    887896
     897! Test of coherence between ocean and version_ocean
     898    IF (ocean=='couple' .AND. (version_ocean/='opa8' .AND. version_ocean/='nemo') ) THEN
     899       WRITE(numout,*)' ERROR version_ocean=',version_ocean,' not valid in coupled configuration'
     900       CALL abort_gcm('conf_phys','version_ocean not valid',1)
     901    END IF
     902
    888903!$OMP MASTER
    889904
     
    891906  write(numout,*)' Configuration des parametres de la physique: '
    892907  write(numout,*)' Config ocean = ', ocean
     908  write(numout,*)' Version ocean = ', version_ocean, ' (valable si config ocean=couple)'
    893909  write(numout,*)' Config veget = ', ok_veget
    894910  write(numout,*)' Sortie journaliere = ', ok_journe
Note: See TracChangeset for help on using the changeset viewer.