Commits on Source (44)
-
Michael Kuron authored10fe510f
-
Michael Kuron authoredf1fc341a
-
Stephan Seitz authored
__repr__ of Field should look like ``` y: uint16_t[246,704,558] x(3): float[20,40] ``` to match representation when using `pystencils.fields`
8140cfbf -
Stephan Seitz authored
hash should not be used in hashable_contents because even if we will use a deterministic hash function we will end up non-deterministic since hash is initialized with a random seed.
7e5faa0a -
Michael Kuron authored
According to the documentation, 0 is W and 1 is S
c755fd28 -
Martin Bauer authored
fix minor regressions introduced with !86 See merge request pycodegen/pystencils!88
a723120e -
Martin Bauer authored
cbackend: short-cut _print_Conditional if condition is a boolean atom See merge request pycodegen/pystencils!89
1ff1469c -
Martin Bauer authored
Avoid `hash()` in Field.hashable_contents See merge request pycodegen/pystencils!91
11d9663e -
Martin Bauer authored
Change `Field.__repr__` to match representation in `pystencils.fields` See merge request pycodegen/pystencils!90
9888c32f -
Michael Kuron authored
NW (-1/2, 1/2) and the like were previously mapped to the wrong cell
34732f61 -
Michael Kuron authored
When storing fluxes on a staggered grid, the usual sign convention is that fluxes point outward from the cell. Previously, we did not respect that as staggered_access("E") would return the same thing as staggered_access("W") would when called from the eastern-next cell. Now, when a field is declared as STAGGERED_FLUX, it returns an accessor with a prefactor of -1 in that case. The previous behavior where sign is not reversed is still useful when e.g. storing sums (e.g. mean values) instead of differenes (e.g. finite difference fluxes) on the staggered grid.
a7460abb -
Michael Kuron authored
It takes a list of assignments to staggered fields and otherwise behaves like create_kernel. The old create_staggered_kernel was not removed because all the optimizations still need to be ported over.
8a042144 -
Michael Kuron authored6dab2755
-
Michael Kuron authored2258e7dd
-
Michael Kuron authored715e9a55
-
fcdfc127
-
Martin Bauer authored
More staggered grid improvements See merge request pycodegen/pystencils!92
8ca8b2ee -
Michael Kuron authoreddcc76a01
-
Michael Kuron authored244d02d0
-
Michael Kuron authoredc819048d
-
Martin Bauer authoredc4e92d45
-
Michael Kuron authored69e3439d
-
Michael Kuron authored3b18545b
-
Stephan Seitz authored
There was a problem when pickling TypedImaginaryUnit since it was using the __getnewargs__ of TypedSymbol.
23463e30 -
Stephan Seitz authored
Using the SymPy implementation for printing a `sympy.Function` has some issues: - you cannot use `cast_func` as an argument -> SymPy prints `cast_func(2,float) - typed numbers are not typed any more -> e.g. pow(x, 0.25) instead of pow(x, 0.25f)
a1c374cc -
Stephan Seitz authored5e7d3c9c
-
Michael Kuron authored
also add a test for subexpressions
358c44b8 -
Michael Kuron authored44a924db
-
Michael Kuron authoredb3deafd5
-
Martin Bauer authored
Add own implementation for printing an unknown function See merge request !96
2f4313fd -
Martin Bauer authored
Add __getnewargs__ to TypedImaginaryUnit See merge request !94
937c91b4 -
Michael Kuron authored
move_constants_before_loop needed to be changed to move already-existing variables up if necesesary and to preserve constness when renaming variables
68da7457 -
Michael Kuron authored23a8f33d
-
Michael Kuron authored7cdc885a
-
Martin Bauer authored
Reimplement create_staggered_kernel Closes #16 See merge request !93
e1b452f7 -
Stephan Seitz authored0b8e7e88
-
Stephan Seitz authored69c29833
-
Stephan Seitz authored05aa005a
-
Michael Kuron authored2d7485a8
-
Martin Bauer authorede2b61455
-
Michael Kuron authored
uses new Field.neighbor_vector
d002888a -
Martin Bauer authored9f6bbd4c
-
Martin Bauer authored
Auto for assignments See merge request pycodegen/pystencils!95
47aee5fa -
Martin Bauer authored
finite difference stencil derivation for staggered positions See merge request !99
296de5db
Showing
- conftest.py 6 additions, 2 deletionsconftest.py
- pystencils/astnodes.py 4 additions, 1 deletionpystencils/astnodes.py
- pystencils/backends/cbackend.py 22 additions, 12 deletionspystencils/backends/cbackend.py
- pystencils/cpu/kernelcreation.py 1 addition, 0 deletionspystencils/cpu/kernelcreation.py
- pystencils/cpu/vectorization.py 4 additions, 5 deletionspystencils/cpu/vectorization.py
- pystencils/data_types.py 15 additions, 6 deletionspystencils/data_types.py
- pystencils/datahandling/parallel_datahandling.py 8 additions, 5 deletionspystencils/datahandling/parallel_datahandling.py
- pystencils/datahandling/serial_datahandling.py 1 addition, 0 deletionspystencils/datahandling/serial_datahandling.py
- pystencils/fd/derivation.py 119 additions, 0 deletionspystencils/fd/derivation.py
- pystencils/field.py 99 additions, 28 deletionspystencils/field.py
- pystencils/kernelcreation.py 125 additions, 87 deletionspystencils/kernelcreation.py
- pystencils/stencil.py 5 additions, 0 deletionspystencils/stencil.py
- pystencils/transformations.py 19 additions, 10 deletionspystencils/transformations.py
- pystencils_tests/test_blocking_staggered.py 3 additions, 2 deletionspystencils_tests/test_blocking_staggered.py
- pystencils_tests/test_cuda_known_functions.py 1 addition, 3 deletionspystencils_tests/test_cuda_known_functions.py
- pystencils_tests/test_fd_derivation.ipynb 228 additions, 26 deletionspystencils_tests/test_fd_derivation.ipynb
- pystencils_tests/test_field.py 16 additions, 0 deletionspystencils_tests/test_field.py
- pystencils_tests/test_loop_cutting.py 6 additions, 3 deletionspystencils_tests/test_loop_cutting.py
- pystencils_tests/test_staggered_kernel.py 85 additions, 0 deletionspystencils_tests/test_staggered_kernel.py
- pystencils_tests/test_types.py 18 additions, 7 deletionspystencils_tests/test_types.py
This diff is collapsed.
pystencils_tests/test_staggered_kernel.py
0 → 100644