IO: Fix restart from XML format when nghosts becomes smaller.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
e51da1c696
commit
ec16bdff05
@ -1757,7 +1757,7 @@ module io
|
||||
nm = lncells + 2 * lnghosts
|
||||
if (lnghosts >= nghosts) then
|
||||
il = 1 + (lnghosts - nghosts)
|
||||
iu = nn - (lnghosts - nghosts)
|
||||
iu = nm - (lnghosts - nghosts)
|
||||
else
|
||||
il = 1 + (nghosts - lnghosts)
|
||||
iu = nn - (nghosts - lnghosts)
|
||||
@ -1996,7 +1996,7 @@ module io
|
||||
nm = lncells + 2 * lnghosts
|
||||
if (lnghosts >= nghosts) then
|
||||
il = 1 + (lnghosts - nghosts)
|
||||
iu = nn - (lnghosts - nghosts)
|
||||
iu = nm - (lnghosts - nghosts)
|
||||
else
|
||||
il = 1 + (nghosts - lnghosts)
|
||||
iu = nn - (nghosts - lnghosts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user