pystencils merge requestshttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests2020-07-10T16:56:17+02:00https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/162Recursively convert dictionary in DotDict2020-07-10T16:56:17+02:00Stephan SeitzRecursively convert dictionary in DotDictEverybody love `DotDict` because we are lazy. This PR recursively converts all dict into `DotDict` not only top level.
So you can do:
my_super.nested.data.scheme = 42Everybody love `DotDict` because we are lazy. This PR recursively converts all dict into `DotDict` not only top level.
So you can do:
my_super.nested.data.scheme = 42https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/161No cuda required for linting pystencils2020-07-10T16:55:16+02:00Stephan SeitzNo cuda required for linting pystencilshttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/160Skip 01_tutorial_getting_started if graphviz is not installed2020-07-09T15:29:03+02:00Stephan SeitzSkip 01_tutorial_getting_started if graphviz is not installedCell 19 of Tutorial 1 requires graphviz. Skip if not installed.
Alternative would be to execute this only if graphviz is installed.Cell 19 of Tutorial 1 requires graphviz. Skip if not installed.
Alternative would be to execute this only if graphviz is installed.https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/159Fix: Wrong fString in Cuda Backend2020-06-22T15:52:09+02:00Markus HolzerFix: Wrong fString in Cuda BackendDue to changing the string formating in pystencils, an error occurred in the CUDA backend, which is fixed by changing back to the classical string formating.
Furthermore, I added a compile instruction to `test_fast_approximation` to cat...Due to changing the string formating in pystencils, an error occurred in the CUDA backend, which is fixed by changing back to the classical string formating.
Furthermore, I added a compile instruction to `test_fast_approximation` to catch the error in the test cases, which was thrown at compile time in the `pygrandchem` module.Jan HönigJan Hönighttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/158Adapted test cases to Sympy Version 1.62020-06-19T18:24:36+02:00Markus HolzerAdapted test cases to Sympy Version 1.6Due to Sympy Version 1.6 the sp.Abs function in the test_interpolation test cases could not be identified as integer anymore. This is now fixed by not checking the type of sp.Abs anymore but by checking its argument.
Furthermore depr...Due to Sympy Version 1.6 the sp.Abs function in the test_interpolation test cases could not be identified as integer anymore. This is now fixed by not checking the type of sp.Abs anymore but by checking its argument.
Furthermore depreciation warning fixes of pandas and pycuda and pytest and adaption to new flake8 Version.Jan HönigJan Hönighttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/157Fix sympy 1.62020-06-15T20:56:26+02:00Markus HolzerFix sympy 1.6fixed bugs caused due to upgrading to sympy 1.6fixed bugs caused due to upgrading to sympy 1.6https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/156add_types: only re-enable double-write check if it was previously enabled2020-06-15T20:57:20+02:00Michael Kuronmkuron@icp.uni-stuttgart.deadd_types: only re-enable double-write check if it was previously enabledOtherwise you can't generate certain boundary kernels that contain conditionals.Otherwise you can't generate certain boundary kernels that contain conditionals.Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/155BugFix of the fast_subs function in rng nodes.2020-05-04T10:36:55+02:00Markus HolzerBugFix of the fast_subs function in rng nodes.https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/154Fix importing boundaryhandling if waLBerla module is available but without cp...2020-06-03T08:58:06+02:00Michael Kuronmkuron@icp.uni-stuttgart.deFix importing boundaryhandling if waLBerla module is available but without cpp_availableStephan SeitzStephan Seitzhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/153Add graphviz to interactive (it's require in first tutorial)2020-06-03T09:07:23+02:00Stephan SeitzAdd graphviz to interactive (it's require in first tutorial)https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/152Skip llvm tests if llvmlite is not installed2020-06-03T09:18:40+02:00Stephan SeitzSkip llvm tests if llvmlite is not installedhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/149WIP: Hyteg2021-01-08T14:04:20+01:00Dominik Thoennesdominik.thoennes@fau.deWIP: Hytegintegrate changes made to enable code generation for hytegintegrate changes made to enable code generation for hytegDominik Thoennesdominik.thoennes@fau.deDominik Thoennesdominik.thoennes@fau.dehttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/148Opencl fixes2020-03-12T20:21:59+01:00Stephan SeitzOpencl fixesThis resolves https://i10git.cs.fau.de/pycodegen/lbmpy/issues/9
`SerialDataHandling.swap` was not aware of OpenCL and neither a `to_cpu` method in `BoundaryHandling`.This resolves https://i10git.cs.fau.de/pycodegen/lbmpy/issues/9
`SerialDataHandling.swap` was not aware of OpenCL and neither a `to_cpu` method in `BoundaryHandling`.https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/147Added guard around import to avoid failing when walberla is there but no pyth...2020-02-21T15:15:39+01:00Christoph RettingerAdded guard around import to avoid failing when walberla is there but no python module is builtStephan SeitzStephan Seitzhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/146FVM derivation: use a smaller stencil before trying brute-force to find the s...2020-02-12T13:24:22+01:00Michael Kuronmkuron@icp.uni-stuttgart.deFVM derivation: use a smaller stencil before trying brute-force to find the sparsest stencilD3Q7/D2Q5 should suffice for first derivatives, so try that stencil first before using brute force to find the sparsest D3Q27/D2Q9 stencil. In 2D, it does not really matter because the brute-force search is so fast, but in 3D it can take...D3Q7/D2Q5 should suffice for first derivatives, so try that stencil first before using brute force to find the sparsest D3Q27/D2Q9 stencil. In 2D, it does not really matter because the brute-force search is so fast, but in 3D it can take days to complete (due to that `itertools.product`). This pull request does not change the resulting stencil weights, it only massively speeds up the process of determining them.Martin BauerMartin Bauerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/145Switch back to intersphinx sympy.org/latest ('coz it works)2020-02-11T19:50:44+01:00Stephan SeitzSwitch back to intersphinx sympy.org/latest ('coz it works)https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/143Enable overriding of kwargs in SerialDataHandling.run_kernel2020-02-22T10:41:47+01:00Stephan SeitzEnable overriding of kwargs in SerialDataHandling.run_kernel
Apparently
```python
kernel_function(**{**arrays, **kwargs})
```
does the same as
```python
call_dict = {}
call_dict.update(arrays)
call_dict.update(kwargs)
kernel_function(**call_dict)
```
Bu...
Apparently
```python
kernel_function(**{**arrays, **kwargs})
```
does the same as
```python
call_dict = {}
call_dict.update(arrays)
call_dict.update(kwargs)
kernel_function(**call_dict)
```
But
```
kernel_function(**arrays, **kwargs)
```
causes an error if a key is in arrays and kwargs.https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/142Implement __hash__ for SympyAssignment2020-02-22T11:22:51+01:00Stephan SeitzImplement __hash__ for SympyAssignmenthttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/141Fixed Volume of Fluid discretization and added Advection-Diffusion testcase2020-02-03T18:51:16+01:00Alexander ReinauerFixed Volume of Fluid discretization and added Advection-Diffusion testcaseFixed VoF discretization and added advection-diffusion testcase for finitevolumes and VoF discretization on behalf of @kuronFixed VoF discretization and added advection-diffusion testcase for finitevolumes and VoF discretization on behalf of @kuronMartin BauerMartin Bauerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/140Append assignments to KernelFunction (for later analysis etc.)2020-02-22T11:23:51+01:00Stephan SeitzAppend assignments to KernelFunction (for later analysis etc.)I wonder if it would be a good idea to apend the assignments from which a `KernelFunction` was created to `KernelFunction`.I wonder if it would be a good idea to apend the assignments from which a `KernelFunction` was created to `KernelFunction`.