Skip to content

Commit c0a4734

Browse files
committed
Merge branch 'parallel_mesh' into master
2 parents 05300c5 + ed5aeef commit c0a4734

File tree

168 files changed

+1547
-2240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+1547
-2240
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
Changelog
22
---------
3+
- May 4, 2021: Long time, no see, but this major release 4.0 marks some improvements under the hood:
4+
5+
- **Rewrote ``mesh`` and ``particle`` data type**: Creation of new arrays for each operation is now avoided by
6+
directly subclassing Numpy's ``ndarray``. Somewhat faster, definitively better, less code, future-proof, but also breaking the API. If you use `pySDC`
7+
for your project, make sure you adapt to the new data types (or don't upgrade).
8+
- **Faster quadrature**: Thanks to `tlunet <https://github.com/tlunet>`_ the computation of the weights is now faster and
9+
(even) more reliable. No breaking of any API here...
10+
11+
This is not much (yet) and if it were not for the API changes, this would have been a minor release.
312

413
- August 30, 2019: Version 3.1 adds many more examples like the nonlinear Schrödinger equation, more on Gray-Scott and in particular Allen-Cahn.
514
Those are many implemented using the parallel FFT library `mpi4pi-fft <https://bitbucket.org/mpi4py/mpi4py-fft/src/master/>`_, which can now be used with `pySDC`.

pySDC/helpers/plot_helper.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ def setup_mpl(font_size=8):
3939
"grid.alpha": 0.25,
4040
"figure.subplot.hspace": 0.0,
4141
"savefig.pad_inches": 0.01,
42-
"pgf.preamble": [
43-
r"\usepackage[utf8x]{inputenc}", # use utf8 fonts becasue your computer can handle it :)
44-
r"\usepackage[T1]{fontenc}", # plots will be generated using this preamble
45-
r"\usepackage{underscore}",
46-
r"\usepackage{amsmath,amssymb,marvosym}"
47-
]
42+
"pgf.preamble": r"\usepackage[utf8x]{inputenc}"
43+
r"\usepackage[T1]{fontenc}"
44+
r"\usepackage{underscore}"
45+
r"\usepackage{amsmath,amssymb,marvosym}"
4846
}
4947
mpl.rcParams.update(pgf_with_latex)
5048

@@ -57,9 +55,9 @@ def newfig(textwidth, scale, ratio=0.6180339887):
5755

5856
def savefig(filename, save_pdf=True, save_pgf=True, save_png=True):
5957
if save_pgf:
60-
plt.savefig('{}.pgf'.format(filename), rasterized=True, bbox_inches='tight')
58+
plt.savefig('{}.pgf'.format(filename), bbox_inches='tight')
6159
if save_pdf:
62-
plt.savefig('{}.pdf'.format(filename), rasterized=True, bbox_inches='tight')
60+
plt.savefig('{}.pdf'.format(filename), bbox_inches='tight')
6361
if save_png:
64-
plt.savefig('{}.png'.format(filename), rasterized=True, bbox_inches='tight')
62+
plt.savefig('{}.png'.format(filename), bbox_inches='tight')
6563
plt.close()

pySDC/helpers/visualization_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ def show_residual_across_simulation(stats, fname='residuals.png'):
6565
ax.set_xticklabels(np.arange(maxiter) + 1, minor=False)
6666
ax.set_yticklabels(np.arange(maxprocs + 1), minor=False)
6767

68-
plt.savefig(fname, rasterized=True, transparent=True, bbox_inches='tight')
68+
plt.savefig(fname, transparent=True, bbox_inches='tight')

pySDC/implementations/datatype_classes/complex_mesh.py

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)