Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
5f4084cc
Commit
5f4084cc
authored
Mar 11, 2016
by
Peter W. Draper
Browse files
Don't increment past array bounds.
parent
da78ad92
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/SodShock/makeIC.py
View file @
5f4084cc
...
...
@@ -87,7 +87,7 @@ u = append(u1, u2,0)
m
=
append
(
m1
,
m2
,
0
)
ids
=
zeros
(
numPart
,
dtype
=
'L'
)
for
i
in
range
(
1
,
numPart
+
1
):
ids
[
i
]
=
i
ids
[
i
-
1
]
=
i
#Final operations
h
/=
2
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment