Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Enlarge edge temperature buffer zone.
Browse files Browse the repository at this point in the history
This should ensure that "partially-filled" grid cells do not "leak" accross the model boundaries. See pism/pism#279.
  • Loading branch information
juseg committed Aug 1, 2014
1 parent d968324 commit 377de4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions r.out.pism.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ def main():
# assign given edge temperature at domain edges
if edgetemp:
for i in range(air_tempvar.shape[0]):
air_tempvar[i, 0, :] = air_tempvar[i, -1, :] = edgetemp
air_tempvar[i, :, 0] = air_tempvar[i, :, -1] = edgetemp
air_tempvar[i, :3, :] = air_tempvar[i, -3:, :] = edgetemp
air_tempvar[i, :, :3] = air_tempvar[i, :, -3:] = edgetemp

# set standard deviation of near-surface air temperature (air_temp_sd)
if air_temp_sd:
Expand Down Expand Up @@ -546,4 +546,3 @@ def main():
# [3] https://github.com/Unidata/netcdf4-python
# [4] http://pyproj.googlecode.com
# [5] http://www.pism-docs.org/doxy/html/std_names.html

0 comments on commit 377de4d

Please sign in to comment.