parthenon-hpc-lab / parthenon

Parthenon AMR infrastructure
https://parthenon-hpc-lab.github.io/parthenon/
Other
105 stars 33 forks source link

Using `IndexRange` in `FlatFunctor` #1134

Open pgrete opened 4 days ago

pgrete commented 4 days ago
          yeah I remember cuda builds had given me trouble with that. This [one](https://godbolt.org/z/4W37ejM7E) uses some more template helper structs to also handle `IndexRange`s in the constructor. I imagine you could use similar things to handle all the `par_dispatch` overloads as well

_Originally posted by @acreyes in https://github.com/parthenon-hpc-lab/parthenon/pull/1130#discussion_r1653624413_

As discussed above, there might be some general enhancement around this. Opening this issue with the reference to the comment (and the two above that one) as it included some test code.