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
Jussi Enkovaara
MPI
Commits
138520d6
Commit
138520d6
authored
Jul 04, 2018
by
Jussi Enkovaara
Browse files
Use same defaults as with C and Fortran
parent
ade124f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
heat-equation/python/heat_setup.py
View file @
138520d6
...
@@ -8,8 +8,8 @@ from heat_io import read_restart, read_field
...
@@ -8,8 +8,8 @@ from heat_io import read_restart, read_field
def
initialize
():
def
initialize
():
timesteps
=
500
# Number of time-steps to evolve system
timesteps
=
500
# Number of time-steps to evolve system
nx
=
1
000
nx
=
2
000
ny
=
1
000
ny
=
2
000
if
isfile
(
'HEAT_RESTART.dat'
):
if
isfile
(
'HEAT_RESTART.dat'
):
field
,
field0
,
parallel
,
iter0
=
read_restart
()
field
,
field0
,
parallel
,
iter0
=
read_restart
()
...
@@ -31,7 +31,7 @@ def initialize():
...
@@ -31,7 +31,7 @@ def initialize():
iter0
=
0
iter0
=
0
return
field
,
field0
,
parallel
,
iter0
,
timesteps
return
field
,
parallel
,
iter0
,
timesteps
def
generate_field
(
nx
,
ny
):
def
generate_field
(
nx
,
ny
):
...
...
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