Skip to content
Snippets Groups Projects

Reimplement create_staggered_kernel

Merged Michael Kuron requested to merge staggered_kernel into master

create_staggered_kernel now takes a list of assignments to staggered fields and otherwise behaves like create_kernel. I have included a diffusion equation test case in both D2Q5 and D2Q9. Putting vectorial/tensorial quantities on the staggered points also works.

This merge requests break API compatibility with the previous create_staggered_kernel.

Fixes #16 (closed). My next step is to implement automatic FV discretization.

Build of dependent projects (pygrandchem, pystencils_walberla) passes as per https://i10git.cs.fau.de/pycodegen/pycodegen/merge_requests/6.

Edited by Michael Kuron

Merge request reports

Pipeline #20158 passed with warnings

Pipeline passed with warnings for 7cdc885a on staggered_kernel

Test coverage 77.94% (0.17%) from 1 job
Approval is optional

Merged by Martin BauerMartin Bauer 5 years ago (Dec 1, 2019 8:44am UTC)

Merge details

Pipeline #20168 passed

Pipeline passed for e1b452f7 on master

Test coverage 77.95% (0.17%) from 1 job

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
289 301 return ast
302
303
304 def create_staggered_kernel_2(assignments, **kwargs):
305 """Kernel that updates a staggered field.
306
307 .. image:: /img/staggered_grid.svg
308
309 For a staggered field, the first index coordinate defines the location of the staggered value.
310 Further index coordinates can be used to store vectors/tensors at each point.
311
312 Args:
313 assignments: a sequence of assignments or AssignmentCollection with one item for each staggered grid point.
314 When storing vectors/tensors, the number of items expected is multiplied with the number of
315 components.
316 kwargs: passed directly to create_kernel
  • Michael Kuron added 1 commit

    added 1 commit

    • c819048d - enable optimizations in create_staggered_kernel_2

    Compare with previous version

  • Michael Kuron added 1 commit

    added 1 commit

    • 69e3439d - Allow multiple staggered fields in one create_staggered_kernel_2 call

    Compare with previous version

  • Michael Kuron added 1 commit

    added 1 commit

    • 4ca0006b - Remove old create_staggered_kernel

    Compare with previous version

  • Michael Kuron unmarked as a Work In Progress

    unmarked as a Work In Progress

  • Michael Kuron added 1 commit

    added 1 commit

    • 3b18545b - Remove old create_staggered_kernel

    Compare with previous version

  • Michael Kuron changed the description

    changed the description

  • Michael Kuron added 1 commit

    added 1 commit

    • ea2f167d - create_staggered_kernel bugfixes to store pygrandchem compatibility

    Compare with previous version

  • Michael Kuron changed the description

    changed the description

  • Michael Kuron added 1 commit

    added 1 commit

    • 0ec21464 - create_staggered_kernel bugfixes to store pygrandchem compatibility

    Compare with previous version

  • Michael Kuron added 1 commit

    added 1 commit

    • 02297dad - create_staggered_kernel bugfixes to store pygrandchem compatibility

    Compare with previous version

  • Michael Kuron changed the description

    changed the description

  • Michael Kuron added 1 commit

    added 1 commit

    • 9ba52557 - create_staggered_kernel bugfixes to store pygrandchem compatibility

    Compare with previous version

  • Michael Kuron added 1 commit

    added 1 commit

    • 358c44b8 - create_staggered_kernel bugfixes to store pygrandchem compatibility

    Compare with previous version

  • Michael Kuron changed the description

    changed the description

  • Michael Kuron changed the description

    changed the description

  • Michael Kuron added 1 commit

    added 1 commit

    • 44a924db - Improve debugging of create_staggered_kernel

    Compare with previous version

  • Michael Kuron added 1 commit

    added 1 commit

    • df3177af - Correct number of ghost layers in create_staggered_kernel

    Compare with previous version

  • Michael Kuron added 1 commit

    added 1 commit

    • b3deafd5 - Correct number of ghost layers in create_staggered_kernel

    Compare with previous version

  • Michael Kuron changed the description

    changed the description

  • Michael Kuron changed the description

    changed the description

  • Michael Kuron changed the description

    changed the description

  • Michael Kuron added 1 commit

    added 1 commit

    • b3f9ef62 - loop-cutting for staggered kernel with more neighbors

    Compare with previous version

  • Michael Kuron changed the description

    changed the description

  • Michael Kuron added 1 commit

    added 1 commit

    • 68da7457 - loop-cutting for staggered kernel with more neighbors

    Compare with previous version

  • Michael Kuron added 1 commit

    added 1 commit

    • 23a8f33d - create_staggered_kernel: re-add gpu_exclusive_conditions

    Compare with previous version

  • Michael Kuron changed the description

    changed the description

  • Michael Kuron added 1 commit

    added 1 commit

    • 7cdc885a - create_staggered_kernel gpu_exclusive_conditions with more neighbors

    Compare with previous version

  • merged

  • Martin Bauer mentioned in commit e1b452f7

    mentioned in commit e1b452f7

  • mentioned in issue lbmpy#8 (closed)

  • Michael Kuron mentioned in merge request !123 (merged)

    mentioned in merge request !123 (merged)

  • Please register or sign in to reply
    Loading