Abderrahmane IDELKADI, decembre 2025
------------------------------------

1. git clone https://github.com/CFMIP/COSPv2.0.git
   git describe  ==> v2.1.5-359-g5c76747

2. dans .../phylmd :
   mv cospv2 cospv2.or
   mv COSPv2 cospv2
   mkdir cospv2/lmdz
   cp -r cospv2.or/lmdz_* cospv2/lmdz/. 

3. bld.cfg a modifier pour prendre en compte les sous rep de cospv2 :
src::cosp %COSP
src::cosp::cosp_src %COSP/src
src::cosp::lmdz_cosp %COSP/lmdz
src::cosp::cosp_simulator %COSP/src/simulator
src::cosp::cosp_misr %COSP/src/simulator/MISR_simulator
src::cosp::cosp_modis %COSP/src/simulator/MODIS_simulator
src::cosp::cosp_parasol %COSP/src/simulator/parasol
src::cosp::cosp_icarus %COSP/src/simulator/icarus
src::cosp::cosp_actsim %COSP/src/simulator/actsim
src::cosp::cosp_rttov %COSP/src/simulator/rttov
src::cosp::cosp_quickbeam %COSP/src/simulator/quickbeam
src::cosp::cosp_utils %COSP/model-interface
src::cosp::cosp_subcol %COSP/subsample_and_optics_example/subcol
src::cosp::cosp_subcol_rng %COSP/subsample_and_optics_example/subcol/rng
src::cosp::cosp_optics %COSP/subsample_and_optics_example/optics
src::cosp::cosp_optics_quickbeam %COSP/subsample_and_optics_example/optics/quickbeam_optics
    
4. probleme compilation avec rrtovs :
 cd .../cospv2/src/simulator/
 mv cosp_rttov_interface.F90 cosp_rttov_interface.F90.or
 mv cosp_rttov_interfaceSTUB.F90 cosp_rttov_interface.F90
 cd rttov/
 mv cosp_rttov.F90 cosp_rttov.F90.or
 mv cosp_rttov11.F90 cosp_rttov11.F90.or
 mv cosp_rttovSTUB.F90 cosp_rttov.F90

5. probleme cosp_constantes*.F90
   cosp_constants.F90 ===> cosp_math_constantes.F90 et cosp_physiq_constants.F90

6. cosp_kinds.F90 wp=dp

7. cosp_config.F90
    integer, parameter :: &
    niv_sorties = 40
    real(wp),parameter,dimension(niv_sorties) :: &
         vgrid_z_in = (/240.0, 720.0, 1200.0, 1680.0, 2160.0, 2640.0, 3120.0, 3600.0, &
                        4080.0, 4560.0, 5040.0, 5520.0, 6000.0, 6480.0, 6960.0, 7440.0, &
                        7920.0, 8400.0, 8880.0, 9360.0, 9840.0, 10320.0, 10800.0, &
                        11280.0, 11760.0, 12240.0, 12720.0, 13200.0, 13680.0, 14160.0, &
                        14640.0, 15120.0, 15600.0, 16080.0, 16560.0, 17040.0, 17520.0, &
                        18000.0, 18480.0, 18960.0/)
8. correction zlev et zlev_half m > Km   (/1000) ?
