- Timestamp:
- Nov 2, 2015 12:38:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/data_output_2d.f90
r1702 r1703 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! bugfix for output of single (*) xy-sections in case of parallel netcdf I/O 22 22 ! 23 23 ! Former revisions: … … 194 194 INTEGER(iwp) :: layer_xy !< 195 195 INTEGER(iwp) :: n !< 196 INTEGER(iwp) :: nis !< 196 197 INTEGER(iwp) :: ns !< 197 198 INTEGER(iwp) :: nzb_do !< lower limit of the data field (usually nzb) … … 1478 1479 !-- Hence exit loop of output levels. 1479 1480 IF ( two_d ) THEN 1480 two_d = .FALSE.1481 IF ( netcdf_data_format < 5 ) two_d = .FALSE. 1481 1482 EXIT loop1 1482 1483 ENDIF … … 1936 1937 CASE ( 'xy' ) 1937 1938 IF ( two_d ) THEN 1938 iis = 1 1939 nis = 1 1940 two_d = .FALSE. 1939 1941 ELSE 1940 iis = is-11942 nis = ns 1941 1943 ENDIF 1942 1944 ! … … 1947 1949 id_var_do2d(av,if), & 1948 1950 local_2d_sections(nxl:nxr+1, & 1949 nys:nyn,1:n s),&1951 nys:nyn,1:nis), & 1950 1952 start = (/ nxl+1, nys+1, 1, & 1951 1953 do2d_xy_time_count(av) /), & 1952 1954 count = (/ nxr-nxl+2, & 1953 nyn-nys+1, n s, 1&1955 nyn-nys+1, nis, 1 & 1954 1956 /) ) 1955 1957 ELSEIF ( nxr /= nx .AND. nyn == ny ) THEN … … 1957 1959 id_var_do2d(av,if), & 1958 1960 local_2d_sections(nxl:nxr, & 1959 nys:nyn+1,1:n s),&1961 nys:nyn+1,1:nis), & 1960 1962 start = (/ nxl+1, nys+1, 1, & 1961 1963 do2d_xy_time_count(av) /), & 1962 1964 count = (/ nxr-nxl+1, & 1963 nyn-nys+2, n s, 1&1965 nyn-nys+2, nis, 1 & 1964 1966 /) ) 1965 1967 ELSEIF ( nxr == nx .AND. nyn == ny ) THEN … … 1967 1969 id_var_do2d(av,if), & 1968 1970 local_2d_sections(nxl:nxr+1, & 1969 nys:nyn+1,1:n s),&1971 nys:nyn+1,1:nis), & 1970 1972 start = (/ nxl+1, nys+1, 1, & 1971 1973 do2d_xy_time_count(av) /), & 1972 1974 count = (/ nxr-nxl+2, & 1973 nyn-nys+2, n s, 1&1975 nyn-nys+2, nis, 1 & 1974 1976 /) ) 1975 1977 ELSE … … 1977 1979 id_var_do2d(av,if), & 1978 1980 local_2d_sections(nxl:nxr, & 1979 nys:nyn,1:n s),&1981 nys:nyn,1:nis), & 1980 1982 start = (/ nxl+1, nys+1, 1, & 1981 1983 do2d_xy_time_count(av) /), & 1982 1984 count = (/ nxr-nxl+1, & 1983 nyn-nys+1, n s, 1&1985 nyn-nys+1, nis, 1 & 1984 1986 /) ) 1985 1987 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.