[ET Trac] #2933: CarpetX's reduction.hxx is not self-contained

Roland Haas trac-noreply at einsteintoolkit.org
Tue Apr 21 11:47:39 CDT 2026


#2933: CarpetX's reduction.hxx is not self-contained

 Reporter: Roland Haas
   Status: new
Milestone: 
  Version: 
     Type: bug
 Priority: major
Component: CarpetX

Changes (by Roland Haas):
using just `USES INCLUDE HEADER reduction.hxx` in interface.ccl and then:

```
#include "reduction.hxx"

```


I get an error message:


```
/home/rhaas/postdoc/gr/cactus/ET_trunk/arrangements/CarpetX/CarpetX/src/reduction.hxx:24:22: error: ‘amrex’ does not name a type [-Wtemplate-body]
   24 |   using tuple_type = amrex::GpuTuple<T, T, T, T, T, T, T, T>;
```

making amrex available (by including `loop_device.hxx` first, which seems wrong) I then get:

```
In file included from /home/rhaas/postdoc/gr/cactus/ET_trunk/configs/sim/bindings/include/reduction.hxx:4,
                 from /home/rhaas/postdoc/gr/cactus/ET_trunk/configs/sim/build/CenterOfMass/centerofmass.cc:6:
/home/rhaas/postdoc/gr/cactus/ET_trunk/arrangements/CarpetX/CarpetX/src/reduction.hxx:123:30: error: ‘dim’ was not declared in this scope; did you mean ‘Loop::dim’?
  123 | typedef reduction<CCTK_REAL, dim> reduction_CCTK_REAL;
      |                              ^~~
      |                              Loop::dim
```



which also seem wrong.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2933/carpetxs-reductionhxx-is-not-self
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20260421/4830c4bc/attachment.htm>


More information about the Trac mailing list