Changeset c2bd55e in flexpart.git for src/netcdf_output_mod.f90
- Timestamp:
- Nov 24, 2017, 1:52:19 PM (6 years ago)
- Branches:
- master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
- Children:
- 0ecc1fe
- Parents:
- 0c00f1f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/netcdf_output_mod.f90
r4c64400 rc2bd55e 272 272 character(len=10) :: fprefix 273 273 character(len=3) :: anspec 274 character :: adate*8,atime*6,timeunit*32 275 real, dimension(1000) :: coord 274 CHARACTER :: adate*8,atime*6,timeunit*32 275 ! ESO DBG: WHY IS THIS HARDCODED TO 1000? 276 !REAL, DIMENSION(1000) :: coord 277 real, allocatable, dimension(:) :: coord 276 278 277 279 integer :: cache_size … … 613 615 ! longitudes (grid cell centers) 614 616 if (lnest) then 617 if (.not.allocated(coord)) allocate(coord(numxgridn)) 615 618 do i = 1,numxgridn 616 619 coord(i) = outlon0n + (i-0.5)*dxoutn 617 620 enddo 618 621 call nf90_err(nf90_put_var(ncid, lonID, coord(1:numxgridn))) 622 deallocate(coord) 619 623 else 624 if (.not.allocated(coord)) allocate(coord(numxgrid)) 620 625 do i = 1,numxgrid 621 626 coord(i) = outlon0 + (i-0.5)*dxout 622 627 enddo 623 628 call nf90_err(nf90_put_var(ncid, lonID, coord(1:numxgrid))) 629 deallocate(coord) 624 630 endif 625 631 ! latitudes (grid cell centers) 626 632 if (lnest) then 633 if (.not.allocated(coord)) allocate(coord(numygridn)) 627 634 do i = 1,numygridn 628 635 coord(i) = outlat0n + (i-0.5)*dyoutn 629 636 enddo 630 637 call nf90_err(nf90_put_var(ncid, latID, coord(1:numygridn))) 638 deallocate(coord) 631 639 else 640 if (.not.allocated(coord)) allocate(coord(numygrid)) 632 641 do i = 1,numygrid 633 642 coord(i) = outlat0 + (i-0.5)*dyout 634 643 enddo 635 644 call nf90_err(nf90_put_var(ncid, latID, coord(1:numygrid))) 645 deallocate(coord) 636 646 endif 637 647 ! levels
Note: See TracChangeset
for help on using the changeset viewer.