Skip to content

Commit

Permalink
Correcting dynamical access for d2 models
Browse files Browse the repository at this point in the history
  • Loading branch information
llaniewski committed Sep 1, 2023
1 parent 826ebf4 commit 91a96d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LatticeAccess.inc.cpp.Rt
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ class DynamicAccess : public PARENT {
CudaDeviceFunction DynamicAccess(Args&&... args) : parent(std::forward<Args>(args)...) { }
<?R for (f in rows(Fields)) { ?>
public:
template <class dx_t, class dy_t, class dz_t>
template <class dx_t, class dy_t, class dz_t=range_int<0> >
CudaDeviceFunction inline real_t load_<?%s f$nicename ?> (const dx_t & dx, const dy_t & dy, const dz_t & dz = range_int<0>()) const {
return parent::load_<?%s f$nicename ?>(
range_int< <?%d f$minx ?>, 0, <?%d f$maxx ?>, 0 >::ensure(dx),
Expand Down

0 comments on commit 91a96d4

Please sign in to comment.