Skip to content
Unverified Commit 631d938e authored by nchristensen's avatar nchristensen Committed by GitHub
Browse files

Make if_positive keep strides of then_ if known. (#523)



* Make if_positive keep strides of then_ if known.

The previous version of `if_positive` always returns a C-ordered array even if `then_` is not C-ordered. This breaks artificial viscosity in Mirgecom when an array context uses a Fortran style data layout. This change makes the output have the same strides as `then_` if the shape of `then_` is known, otherwise it defaults to use the same layout as `criterion`.

* Increment version

* Resolve Flake8 failures

* Use more idiomatic != in shape comparison

Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
parent 796c704c
Loading
Loading
Loading
Pipeline #239827 passed with stage
in 1 minute and 33 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment