Changeset 2000 for trunk/ICOSA_LMDZ/src/phyvenus
- Timestamp:
- Sep 19, 2018, 10:53:15 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICOSA_LMDZ/src/phyvenus/interface_icosa_lmdz.f90
r1982 r2000 38 38 39 39 CHARACTER(len=30),SAVE,ALLOCATABLE :: tname(:) ! tracer names 40 CHARACTER(len=33),SAVE,ALLOCATABLE :: ttext(:) ! tracer long name for diagnostics 40 41 REAL,SAVE :: pday ! number of ellapsed sols since Ls=0 41 42 REAL,SAVE :: ptime ! "universal time" as fraction of sol (e.g. 0.5 for noon) … … 213 214 CHARACTER(len=4) :: type_trac 214 215 ! CHARACTER(len=30),ALLOCATABLE :: tname(:) ! tracer short name for restart and diagnostics 215 CHARACTER(len=33),ALLOCATABLE :: ttext(:) ! tracer long name for diagnostics216 ! CHARACTER(len=33),ALLOCATABLE :: ttext(:) ! tracer long name for diagnostics 216 217 TYPE(t_field),POINTER,SAVE :: f_ind_cell_glo(:) 217 218 … … 259 260 ENDDO 260 261 261 !$OMP BARRIER262 262 263 263 CALL transfer_icosa_to_lmdz(f_ind_cell_glo,ind_cell_glo) … … 284 284 285 285 ! Initialize tracer names, numbers, etc. for physics 286 287 ! init tracers model for standard lmdz case 286 288 !$OMP MASTER 287 288 ! init tracers model for standard lmdz case289 289 ALLOCATE(tname(nqtot)) 290 290 ALLOCATE(ttext(nqtot)) 291 !$OMP END MASTER 292 !$OMP BARRIER 291 293 292 294 ! read tname() from traceur.def file 295 IF (is_mpi_root) THEN 296 !$OMP MASTER 293 297 OPEN(unit=42,file="traceur.def",form="formatted",status="old",iostat=ierr) 294 298 IF (ierr==0) THEN … … 306 310 !$OMP END MASTER 307 311 !$OMP BARRIER 312 ENDIF ! of (is_mpi_root) 313 314 DO i=1,nqtot 315 CALL bcast(tname(i)) 316 CALL bcast(ttext(i)) 317 ENDDO 308 318 309 319 ! Get/set some constants for the physics 310 320 311 !$OMP MASTER312 321 313 322 startphy_file=.true. … … 326 335 ! Read in some information from the startphy.nc file 327 336 337 IF (is_mpi_root) THEN 338 !$OMP MASTER 328 339 status=nf90_open('startphy.nc',NF90_NOWRITE,ncid) 329 340 if (status.ne.nf90_noerr) then … … 347 358 348 359 status=nf90_close(ncid) 360 !$OMP END MASTER 361 !$OMP BARRIER 362 ENDIF ! of !IF (is_mpi_root) 363 364 CALL bcast(day_ini) 365 CALL bcast(annee_ref) 366 CALL bcast(ptime) 349 367 350 368 ELSE … … 365 383 CALL getin('iflag_trac',iflag_trac) 366 384 367 !$OMP END MASTER368 !$OMP BARRIER369 385 370 386 ! Initialize some physical constants … … 597 613 598 614 DO l=1,llm 599 wflux_phy(:,l)=wflux_phy(:,l)*cell_area(:) 615 ! Warning: In the physics, vertical flux convention is positive if downwards! 616 wflux_phy(:,l)= - wflux_phy(:,l)*cell_area(:) 617 ! Compute relative geopotential 600 618 phi_phy(:,l)=phi_phy(:,l)-phis_phy(:) 601 619 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.