Issue #1239 Fixed 64-bit Cave crash
Change-Id: I83d729b1f463b2043b1186615751dde047e5e824 Former-commit-id:ebdfe3816e
[formerlyad1d532459
] [formerlye0236dc5c9
[formerly 6b835a2d9f92d8bc4fc76e883ba4fb84256e185b]] Former-commit-id:e0236dc5c9
Former-commit-id:71351d7247
This commit is contained in:
parent
bc5b448eb2
commit
453b7c9a04
2 changed files with 8 additions and 1 deletions
|
@ -122,6 +122,13 @@ def capeFunc(usetv, p_dat, tve_dat, p0, th0, sh0, ptop = None):
|
|||
p0 = np.copy(p0)
|
||||
th0 = np.copy(th0)
|
||||
sh0 = np.copy(sh0)
|
||||
|
||||
p_dat[np.isnan(p_dat)] = 1e37
|
||||
tve_dat[np.isnan(tve_dat)] = 1e37
|
||||
p0[np.isnan(p0)] = 1e37
|
||||
th0[np.isnan(th0)] = 1e37
|
||||
sh0[np.isnan(sh0)] = 1e37
|
||||
|
||||
p_dat.resize((nz, nx * ny,))
|
||||
tve_dat.resize((nz, nx * ny,))
|
||||
p0.resize((p0.size,))
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
##
|
||||
export INIT_MEM=128 # in Meg
|
||||
if [ $HIGH_MEM_FLAG == "on" ]; then
|
||||
if [ $EDEX_ARCH == "64-bit" ]; then
|
||||
if [ "$EDEX_ARCH" == "64-bit" ]; then
|
||||
export MAX_MEM=2048 # in Meg
|
||||
else
|
||||
export MAX_MEM=1280 # in Meg
|
||||
|
|
Loading…
Add table
Reference in a new issue