Skip to content

Commit a49d096

Browse files
committed
full run as add-on
1 parent d67814c commit a49d096

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

docs/source/projects/doc_fput.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ Results:
1212
:scale: 100 %
1313
.. image:: ../../../data/fput_energy.png
1414
:scale: 100 %
15+
.. image:: ../../../data/fput_energy_full.png
16+
:scale: 100 %

pySDC/projects/Hamiltonian/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Fermi-Pasta-Ulam-Tsingou problem
3535
This is the famous FPUT problem, one of the first numerical simulation done in physics.
3636
The basis for this setup can be found `here <http://www.scholarpedia.org/article/Fermi-Pasta-Ulam_nonlinear_lattice_oscillations>`_ and we implement this in the ``FermiPastaUlamTsingou`` problem class.
3737
Due to time limitations in the CI environment, we only run the first few steps and not until Tend=10000.
38+
We refer to the left-most picture below for the full run.
3839
Note that we run MLSDC here, since PFASST does not seem to converge easily.
3940

4041
.. include:: doc_fput.rst
13.1 KB
Loading

pySDC/projects/Hamiltonian/fput.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ def run_simulation():
106106
iter_counts = sort_stats(filtered_stats, sortby='time')
107107

108108
# compute and print statistics
109-
for item in iter_counts:
110-
out = 'Number of iterations for time %4.2f: %2i' % item
111-
f.write(out)
112-
print(out)
109+
# for item in iter_counts:
110+
# out = 'Number of iterations for time %4.2f: %2i' % item
111+
# f.write(out + '\n')
112+
# print(out)
113113

114114
niters = np.array([item[1] for item in iter_counts])
115115
out = ' Mean number of iterations: %4.2f' % np.mean(niters)
@@ -140,7 +140,7 @@ def run_simulation():
140140
dill.dump(stats, f)
141141
f.close()
142142

143-
assert os.path.isfile(fname), 'Run for %s did not create stats file' % prob
143+
assert os.path.isfile(fname), 'Run for %s did not create stats file'
144144

145145

146146
def show_results(cwd=''):

0 commit comments

Comments
 (0)