Skip to content

Commit 36d5a40

Browse files
committed
data files for parallelSDC
1 parent b2aeac5 commit 36d5a40

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

docs/source/projects/doc_parallelSDC_nonlinear.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ Results:
88

99
Results:
1010

11-
.. image:: ../../../parallelSDC_fisher.png
11+
.. image:: ../../../data/parallelSDC_fisher.png
1212
:scale: 50 %

docs/source/projects/doc_parallelSDC_preconditioner.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ Full code: `projects/parallelSDC/preconditioner_playground.py <https://github.co
44

55
Results:
66

7-
.. image:: ../../../parallelSDC_preconditioner_heat.png
7+
.. image:: ../../../data/parallelSDC_preconditioner_heat.png
88
:scale: 50 %
99

10-
.. image:: ../../../parallelSDC_preconditioner_advection.png
10+
.. image:: ../../../data/parallelSDC_preconditioner_advection.png
1111
:scale: 50 %
1212

13-
.. image:: ../../../parallelSDC_preconditioner_vanderpol.png
13+
.. image:: ../../../data/parallelSDC_preconditioner_vanderpol.png
1414
:scale: 50 %
1515

16-
.. image:: ../../../parallelSDC_preconditioner_fisher.png
16+
.. image:: ../../../data/parallelSDC_preconditioner_fisher.png
1717
:scale: 50 %
1818

3.51 KB
Binary file not shown.
8.31 KB
Binary file not shown.

projects/parallelSDC/nonlinear_playground.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,18 @@ def main():
131131
results['uex'] = uex.values
132132

133133
# write out for later visualization
134-
file = open('parallelSDC_results_graphs.pkl', 'wb')
134+
file = open('data/parallelSDC_results_graphs.pkl', 'wb')
135135
pickle.dump(results, file)
136136

137-
assert os.path.isfile('parallelSDC_results_graphs.pkl'), 'ERROR: pickle did not create file'
137+
assert os.path.isfile('data/parallelSDC_results_graphs.pkl'), 'ERROR: pickle did not create file'
138138

139139

140140
def plot_graphs():
141141
"""
142142
Helper function to plot graphs of initial and final values
143143
"""
144144

145-
file = open('parallelSDC_results_graphs.pkl', 'rb')
145+
file = open('data/parallelSDC_results_graphs.pkl', 'rb')
146146
results = pickle.load(file)
147147

148148
interval = results['interval']
@@ -179,7 +179,7 @@ def plot_graphs():
179179
plt.legend(loc=2, ncol=1, numpoints=1)
180180

181181
# save plot as PDF, beautify
182-
fname = 'parallelSDC_fisher.png'
182+
fname = 'data/parallelSDC_fisher.png'
183183
plt.savefig(fname, rasterized=True, bbox_inches='tight')
184184

185185
assert os.path.isfile(fname), 'ERROR: plotting did not create file'

projects/parallelSDC/preconditioner_playground.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,18 +158,18 @@ def main():
158158
assert len(results) == (6 + 6 + 10 + 6) * 5 + 4, 'ERROR: did not get all results, got %s' % len(results)
159159

160160
# write out for later visualization
161-
file = open('parallelSDC_iterations_precond.pkl', 'wb')
161+
file = open('data/parallelSDC_iterations_precond.pkl', 'wb')
162162
pickle.dump(results, file)
163163

164-
assert os.path.isfile('parallelSDC_iterations_precond.pkl'), 'ERROR: pickle did not create file'
164+
assert os.path.isfile('data/parallelSDC_iterations_precond.pkl'), 'ERROR: pickle did not create file'
165165

166166

167167
def plot_iterations():
168168
"""
169169
Helper routine to plot iteration counts
170170
"""
171171

172-
file = open('parallelSDC_iterations_precond.pkl', 'rb')
172+
file = open('data/parallelSDC_iterations_precond.pkl', 'rb')
173173
results = pickle.load(file)
174174

175175
# find the lists/header required for plotting
@@ -208,7 +208,7 @@ def plot_iterations():
208208
plt.grid()
209209

210210
# save plot as PDF, beautify
211-
fname = 'parallelSDC_preconditioner_'+setup+'.png'
211+
fname = 'data/parallelSDC_preconditioner_'+setup+'.png'
212212
plt.savefig(fname, rasterized=True, bbox_inches='tight')
213213

214214
assert os.path.isfile(fname), 'ERROR: plotting did not create file'

0 commit comments

Comments
 (0)