Changeset 2080 for LMDZ5/trunk/libf
- Timestamp:
- Jul 7, 2014, 4:48:37 PM (10 years ago)
- Location:
- LMDZ5/trunk/libf/cosp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/cosp/cosp_constants.F90
r1907 r2080 31 31 ! 32 32 MODULE MOD_COSP_CONSTANTS 33 ! use netcdf, only: nf90_fill_rea 33 use netcdf, only: nf90_fill_real 34 34 IMPLICIT NONE 35 35 … … 47 47 ! Missing value 48 48 !! real,parameter :: R_UNDEF = -1.0E30 49 real,parameter :: R_UNDEF = 9.96921e+36 50 ! real,parameter :: R_UNDEF = nf90_fill_rea 49 ! real,parameter :: R_UNDEF = 9.96921e+36 50 real,parameter :: R_UNDEF = nf90_fill_real 51 51 52 ! Number of possible output variables 52 53 integer,parameter :: N_OUT_LIST = 27 -
LMDZ5/trunk/libf/cosp/cosp_output_mod.F90
r1986 r2080 80 80 ! LOGICAL, SAVE :: cosp_varsdefined = .FALSE. ! ug PAS THREADPRIVATE ET C'EST NORMAL 81 81 LOGICAL, SAVE :: cosp_varsdefined 82 INTEGER, save :: Nlevout,Ncolout83 !$OMP THREADPRIVATE(Nlevout)84 82 85 83 CONTAINS … … 130 128 WRITE(lunout,*) 'Debut cosp_output_mod.F90' 131 129 ! Initialisations (Valeurs par defaut) 132 Nlevout = vgrid%Nlvgrid133 Ncolout = Ncolumns134 130 135 131 do ii=1,Ncolumns … … 188 184 if (use_vgrid) then 189 185 ! Axe vertical Cosp 40 niveaux (en m) 190 CALL histvert(cosp_nidfiles(iff),"height","height","m", Nlevout,vgrid%z,nvert(iff))186 CALL histvert(cosp_nidfiles(iff),"height","height","m",vgrid%Nlvgrid,vgrid%z,nvert(iff)) 191 187 else 192 188 ! Axe vertical modele LMDZ presnivs 193 CALL histvert(cosp_nidfiles(iff),"presnivs","Vertical levels","Pa", Nlevout,presnivs,nvert(iff),"down")189 CALL histvert(cosp_nidfiles(iff),"presnivs","Vertical levels","Pa",vgrid%Nlvgrid,presnivs,nvert(iff),"down") 194 190 endif 195 191 ! Axe vertical niveaux modele (en m) … … 205 201 ! ug déclaration des axes verticaux de chaque fichier: 206 202 if (use_vgrid) then 207 CALL wxios_add_vaxis("height", cosp_outfilenames(iff), Nlevout, vgrid%z)203 CALL wxios_add_vaxis("height", cosp_outfilenames(iff), vgrid%Nlvgrid, vgrid%z) 208 204 else 209 CALL wxios_add_vaxis("presnivs", cosp_outfilenames(iff), Nlevout, presnivs)205 CALL wxios_add_vaxis("presnivs", cosp_outfilenames(iff), vgrid%Nlvgrid, presnivs) 210 206 endif 211 207 CALL wxios_add_vaxis("height_mlev", cosp_outfilenames(iff), Nlevlmdz, vgrid%mz) -
LMDZ5/trunk/libf/cosp/cosp_output_write_mod.F90
r1986 r2080 8 8 INTEGER, SAVE :: itau_iocosp 9 9 !$OMP THREADPRIVATE(itau_iocosp) 10 INTEGER, save :: Nlevout, Ncolout 11 !$OMP THREADPRIVATE(Nlevout, Ncolout) 10 12 11 13 ! INTERFACE histwrite_cosp … … 15 17 CONTAINS 16 18 17 SUBROUTINE cosp_output_write(Nlevlmdz, Npoints, Ncolumns, itap, dtime, freq_COSP, cfg, gbx, sglidar, stlidar, isccp)19 SUBROUTINE cosp_output_write(Nlevlmdz, Npoints, Ncolumns, itap, dtime, freq_COSP, cfg, gbx, vgrid, sglidar, stlidar, isccp) 18 20 19 21 USE ioipsl … … 33 35 type(cosp_isccp) :: isccp ! Output from ISCCP simulator 34 36 type(cosp_lidarstats) :: stlidar ! Summary statistics from lidar simulator 37 type(cosp_vgrid) :: vgrid ! Information on vertical grid of stats 35 38 36 39 !!! Variables locales … … 41 44 42 45 include "temps.h" 46 47 Nlevout = vgrid%Nlvgrid 48 Ncolout = Ncolumns 43 49 44 50 IF (MOD(itap,NINT(freq_COSP/dtime)).EQ.0) THEN … … 67 73 68 74 if (cfg%Llidar_sim) then 69 75 ! print*,'cfg%Llidar_sim dans output_write',cfg%Llidar_sim 76 ! print*,'Nlevout Npoints dans output_write, R_UNDEF =',Nlevout,Npoints,R_UNDEF 70 77 ! Pb des valeurs indefinies, on les met a 0 71 78 ! A refaire proprement -
LMDZ5/trunk/libf/cosp/phys_cosp.F90
r1925 r2080 84 84 character(len=64),PARAMETER :: cosp_input_nl='cosp_input_nl.txt' 85 85 character(len=64),PARAMETER :: cosp_output_nl='cosp_output_nl.txt' 86 character(len=512), save :: finput ! Input file name87 character(len=512), save :: cmor_nl88 86 integer, save :: isccp_topheight,isccp_topheight_direction,overlap 89 87 integer,save :: Ncolumns ! Number of subcolumns in SCOPS … … 140 138 141 139 ! 142 namelist/COSP_INPUT/ cmor_nl,overlap,isccp_topheight,isccp_topheight_direction, &143 npoints_it,ncolumns, nlevels,use_vgrid,nlr,csat_vgrid,finput, &140 namelist/COSP_INPUT/overlap,isccp_topheight,isccp_topheight_direction, & 141 npoints_it,ncolumns,use_vgrid,nlr,csat_vgrid, & 144 142 radar_freq,surface_radar,use_mie_tables, & 145 143 use_gas_abs,do_ray,melt_lay,k2,Nprmts_max_hydro,Naero,Nprmts_max_aero, & … … 297 295 if (debut_cosp) then 298 296 297 !$OMP MASTER 299 298 print *, ' Open outpts files and define axis' 300 299 call cosp_output_open(Nlevlmdz, Ncolumns, presnivs, dtime, freq_cosp, & 301 300 ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, & 302 301 ecrit_mth, ecrit_day, ecrit_hf, use_vgrid, vgrid) 303 302 !$OMP END MASTER 303 !$OMP BARRIER 304 304 debut_cosp=.false. 305 305 endif ! debut_cosp … … 313 313 !!!!!!!!!!!!!!!!!! Ecreture des sorties Cosp !!!!!!!!!!!!!!r!!!!!!:!!!!! 314 314 print *, 'Calling write output' 315 call cosp_output_write(Nlevlmdz, Npoints, Ncolumns, itap, dtime, freq_COSP, cfg, gbx, sglidar, stlidar, isccp)315 call cosp_output_write(Nlevlmdz, Npoints, Ncolumns, itap, dtime, freq_COSP, cfg, gbx, vgrid, sglidar, stlidar, isccp) 316 316 317 317 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ … … 343 343 CLOSE(10) 344 344 ENDIF 345 CALL bcast(cmor_nl)346 345 CALL bcast(overlap) 347 346 CALL bcast(isccp_topheight) … … 349 348 CALL bcast(npoints_it) 350 349 CALL bcast(ncolumns) 351 CALL bcast(nlevels)352 350 CALL bcast(use_vgrid) 353 351 CALL bcast(nlr) 354 352 CALL bcast(csat_vgrid) 355 CALL bcast(finput)356 353 CALL bcast(radar_freq) 357 354 CALL bcast(surface_radar)
Note: See TracChangeset
for help on using the changeset viewer.