pystencils merge requestshttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests2021-02-20T12:44:25+01:00https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/218Update setup.py2021-02-20T12:44:25+01:00Markus HolzerUpdate setup.pyhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/217Add kerncraft templates2021-02-20T12:23:43+01:00Markus HolzerAdd kerncraft templatesThe kerncraft coupling works only if these templates are available.The kerncraft coupling works only if these templates are available.Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/212vectorization: improve treatment of unary minus2021-02-19T16:41:53+01:00Michael Kuronmkuron@icp.uni-stuttgart.devectorization: improve treatment of unary minusChanges in !48 caused test failures in https://i10git.cs.fau.de/pycodegen/lbmpy/-/jobs/534348.
Also add a test for vectorized unary minus and `sp.Abs`, suppress a warning with older versions of randomgen and make double-precision vector...Changes in !48 caused test failures in https://i10git.cs.fau.de/pycodegen/lbmpy/-/jobs/534348.
Also add a test for vectorized unary minus and `sp.Abs`, suppress a warning with older versions of randomgen and make double-precision vector RNG accurate on Clang in fast-math mode.
The errors in test_resting_fluid and test_point_force are fixed by https://i10git.cs.fau.de/pycodegen/lbmpy/-/merge_requests/63. The error in test_phi_staggered_equivalence_on_random is fixed by https://i10git.cs.fau.de/pycodegen/pygrandchem/-/merge_requests/4.Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/215fix aligned_alloc on windows2021-02-19T15:15:44+01:00Michael Kuronmkuron@icp.uni-stuttgart.defix aligned_alloc on windowsAnother attempt at https://i10git.cs.fau.de/pycodegen/pystencils/-/issues/24. Follow-up to https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/214.Another attempt at https://i10git.cs.fau.de/pycodegen/pystencils/-/issues/24. Follow-up to https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/214.Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/214default to C++17 on macOS and Windows2021-02-19T13:24:17+01:00Michael Kuronmkuron@icp.uni-stuttgart.dedefault to C++17 on macOS and WindowsFixes https://i10git.cs.fau.de/pycodegen/pystencils/-/issues/24 and https://i10git.cs.fau.de/pycodegen/lbmpy/-/jobs/537199Fixes https://i10git.cs.fau.de/pycodegen/pystencils/-/issues/24 and https://i10git.cs.fau.de/pycodegen/lbmpy/-/jobs/537199Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/209Enable all test cases in windows pipeline2021-02-18T16:54:12+01:00Markus HolzerEnable all test cases in windows pipelineThis MR enables all test cases (except for notebooks and longruns) for the windows pipeline.This MR enables all test cases (except for notebooks and longruns) for the windows pipeline.Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/213Fix clear cache on startup2021-02-18T14:05:01+01:00Stephan SeitzFix clear cache on startupDue two weird circular dependencies `clear_cache` will not be
available at this point. Inlining this function will make
the config key `cache.clear_cache_on_start: true` work again.Due two weird circular dependencies `clear_cache` will not be
available at this point. Inlining this function will make
the config key `cache.clear_cache_on_start: true` work again.https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/48RNG SIMD2021-02-12T22:31:36+01:00Michael Kuronmkuron@icp.uni-stuttgart.deRNG SIMDI've vectorized the Philox and AES-NI RNGs, fixes #12. I had to add a very minimal integer vectorization that only supports `int32`, `makeVec`, `+`, and loop counters. Also, the `RNGNode` now needs to know already during construction how...I've vectorized the Philox and AES-NI RNGs, fixes #12. I had to add a very minimal integer vectorization that only supports `int32`, `makeVec`, `+`, and loop counters. Also, the `RNGNode` now needs to know already during construction how it's vectorized, which is ugly, but could only be resolved by a better type system (#20). For the same reason, it is not possible to use a vectorized float RNG with double fields or vice versa. Also, we essentially discard half the random numbers in double precision mode because otherwise the number of variables we return would change between the vectorized and non-vectorized version, which is incompatible with the interface.
For the tests, we need to add `pip3 install randomgen` to the Dockerfile.Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/211Fix logic error in RNG test2021-02-11T16:19:54+01:00Michael Kuronmkuron@icp.uni-stuttgart.deFix logic error in RNG testMinor oversight in !48Minor oversight in !48Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/208Bump minimum SymPy version and add Python 3.9 to CI2021-02-04T17:14:07+01:00Markus HolzerBump minimum SymPy version and add Python 3.9 to CIMarkus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/207add_subexpressions_for_constants and new_filtered fix2021-01-29T15:42:40+01:00Frederik Hennigadd_subexpressions_for_constants and new_filtered fixTwo small patches:
- Added a function `add_subexpressions_for_constants` to `pystencils.simp`. This function extracts numerical constants like `2` or `1/3` from equations. This is helpful because SymPy does not exclude common factors fr...Two small patches:
- Added a function `add_subexpressions_for_constants` to `pystencils.simp`. This function extracts numerical constants like `2` or `1/3` from equations. This is helpful because SymPy does not exclude common factors from sums if they are not symbols. Excluding them this way can reduce the number of multiplications. In some cases, additional common subexpressions can also be found.
- Changed `AssignmentCollection.new_filtered` to use `self.copy` to preserve other members of the assignment collection.https://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/197Added version number to pystencils2021-01-26T08:44:01+01:00Markus HolzerAdded version number to pystencilsPystencils should have a `__version__` attributePystencils should have a `__version__` attributeMichael Kuronmkuron@icp.uni-stuttgart.deMichael Kuronmkuron@icp.uni-stuttgart.dehttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/205Display pytest results in Gitlab2021-01-25T22:32:37+01:00Michael Kuronmkuron@icp.uni-stuttgart.deDisplay pytest results in GitlabAs per https://docs.gitlab.com/ee/ci/unit_test_reports.html#python-example and https://docs.gitlab.com/ee/user/project/merge_requests/test_coverage_visualization.html#python-exampleAs per https://docs.gitlab.com/ee/ci/unit_test_reports.html#python-example and https://docs.gitlab.com/ee/user/project/merge_requests/test_coverage_visualization.html#python-exampleMarkus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/206Fix junit report upload to Gitlab2021-01-25T18:29:21+01:00Michael Kuronmkuron@icp.uni-stuttgart.deFix junit report upload to GitlabError in !205Error in !205Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/203Extended Test suit2021-01-11T20:14:49+01:00Markus HolzerExtended Test suitThis MR extends the test cases of pystencils and adds some minor fixesThis MR extends the test cases of pystencils and adds some minor fixesMichael Kuronmkuron@icp.uni-stuttgart.deMichael Kuronmkuron@icp.uni-stuttgart.dehttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/202Build documentation two time2020-12-21T11:41:12+01:00Markus HolzerBuild documentation two timehttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/201Fixed build doc2020-12-21T11:37:55+01:00Markus HolzerFixed build docDue to an update of `sphinxcontrib-bibtex` a .bib file must be specified for the documentation to work.Due to an update of `sphinxcontrib-bibtex` a .bib file must be specified for the documentation to work.Michael Kuronmkuron@icp.uni-stuttgart.deMichael Kuronmkuron@icp.uni-stuttgart.dehttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/199Update parallel datahandling2020-12-21T11:37:06+01:00Markus HolzerUpdate parallel datahandlingThis MR should provide some very minor changes when the new Python Coupling implementation is merged in waLBerla.This MR should provide some very minor changes when the new Python Coupling implementation is merged in waLBerla.Michael Kuronmkuron@icp.uni-stuttgart.deMichael Kuronmkuron@icp.uni-stuttgart.dehttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/198Usage of custom boundary functor if given2020-12-20T16:11:13+01:00Sebastian Bindgen Usage of custom boundary functor if givenThis is needed to implement the Lees Edwards boundary conditions submitted in https://i10git.cs.fau.de/pycodegen/lbmpy/-/merge_requests/49.
Custom boundary functors can now be created by users.This is needed to implement the Lees Edwards boundary conditions submitted in https://i10git.cs.fau.de/pycodegen/lbmpy/-/merge_requests/49.
Custom boundary functors can now be created by users.Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/pystencils/-/merge_requests/200Fixes for Vector Testcase to Work2020-12-19T09:01:17+01:00Julian HammerFixes for Vector Testcase to Work* passing on non-default Kerncraft parameters
* gracefully failing on VectorType usage in AST* passing on non-default Kerncraft parameters
* gracefully failing on VectorType usage in AST