- Timestamp:
- Oct 19, 2023, 4:02:57 PM (11 months ago)
- Location:
- LMDZ6/branches/LMDZ_ECRad
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ_ECRad
- Property svn:mergeinfo changed
-
LMDZ6/branches/LMDZ_ECRad/libf/phylmd/cospv2/lmdz_cosp_interface.F90
r3723 r4727 67 67 use ioipsl 68 68 use iophy 69 use lmdz_xios, ONLY : using_xios 69 70 use lmdz_cosp_output_mod 70 71 use lmdz_cosp_output_write_mod … … 262 263 263 264 ! Clefs Outputs initialisation 264 #ifdef CPP_XIOS 265 call cosp_outputkeys_init(cfg)266 #else 265 IF (using_xios) THEN 266 call cosp_outputkeys_init(cfg) 267 ELSE 267 268 call read_cosp_output_nl(itap,cosp_output_nl,cfg) 268 #endif 269 ENDIF 269 270 270 271 print*,' Cles des differents simulateurs cosp a itap :',itap … … 278 279 endif 279 280 280 #ifdef CPP_XIOS 281 print*,'On passe par ifdef CPP_XIOS' 282 #else 283 if (cosp_init_flag .eq. 0) then 284 285 ! Initialize the distributional parameters for hydrometeors in radar simulator. 286 ! In COSPv1.4, this was declared in cosp_defs.f. 287 if (cloudsat_micro_scheme == 'MMF_v3.5_two_moment') then 288 ldouble = .true. 289 lsingle = .false. 281 IF (using_xios) THEN 282 print*,'On passe par using_xios' 283 ELSE 284 if (cosp_init_flag .eq. 0) then 285 286 ! Initialize the distributional parameters for hydrometeors in radar simulator. 287 ! In COSPv1.4, this was declared in cosp_defs.f. 288 if (cloudsat_micro_scheme == 'MMF_v3.5_two_moment') then 289 ldouble = .true. 290 lsingle = .false. 291 endif 292 call hydro_class_init(lsingle,ldouble,sd) 293 call quickbeam_optics_init() 294 295 print*,' just before call COSP_INIT, cosp_init_flag =', cosp_init_flag 296 call COSP_INIT(cfg%Lisccp, cfg%Lmodis, cfg%Lmisr, cfg%Lcloudsat, cfg%Lcalipso, & 297 cfg%LgrLidar532, cfg%Latlid, cfg%Lparasol, cfg%Lrttov, & 298 cloudsat_radar_freq, cloudsat_k2, cloudsat_use_gas_abs, & 299 cloudsat_do_ray, isccp_topheight, isccp_topheight_direction, & 300 surface_radar, rcfg_cloudsat, use_vgrid_in, csat_vgrid_in, & 301 niv_sorties, Nlevels, cloudsat_micro_scheme) 302 cosp_init_flag = 1 303 print*,' just after call COSP_INIT, cosp_init_flag =', cosp_init_flag 290 304 endif 291 call hydro_class_init(lsingle,ldouble,sd) 292 call quickbeam_optics_init() 293 294 print*,' just before call COSP_INIT, cosp_init_flag =', cosp_init_flag 295 call COSP_INIT(cfg%Lisccp, cfg%Lmodis, cfg%Lmisr, cfg%Lcloudsat, cfg%Lcalipso, & 296 cfg%LgrLidar532, cfg%Latlid, cfg%Lparasol, cfg%Lrttov, & 297 cloudsat_radar_freq, cloudsat_k2, cloudsat_use_gas_abs, & 298 cloudsat_do_ray, isccp_topheight, isccp_topheight_direction, & 299 surface_radar, rcfg_cloudsat, use_vgrid_in, csat_vgrid_in, & 300 niv_sorties, Nlevels, cloudsat_micro_scheme) 301 cosp_init_flag = 1 302 print*,' just after call COSP_INIT, cosp_init_flag =', cosp_init_flag 303 endif 304 #endif 305 ENDIF 305 306 306 307 print*,'Fin lecture Namelists, debut_cosp =',debut_cosp … … 311 312 !!! Ici on modifie les cles logiques pour les outputs selon les champs actives dans les .xml 312 313 if ((itap.ge.1).and.(first_write))then 313 #ifdef CPP_XIOS 314 call read_xiosfieldactive(cfg) 315 #endif 314 IF (using_xios) call read_xiosfieldactive(cfg) 316 315 first_write=.false. 317 316
Note: See TracChangeset
for help on using the changeset viewer.