You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the MultiFabUtil.H I have see the ReduceToPlane function, and the following example:
int dir = 0; // x-direction
auto const& domain_box = geom.Domain().surroundingNodes(); // nodal data
auto const& ma = mf.const_arrays();
auto rr = ReduceToPlane<ReduceOpMax,KeyValuePair<Real,int>>
(dir, domain_box, mf,
[=] AMREX_GPU_DEVICE (int box_no, int i, int j, int k)
-> KeyValuePair<Real,int>
{
return {mabox_no, i};
});
However this is only for two components ,which is limited by the ,KeyValuePair. Is there any way to reduce to Plane for more than 2 components by one call, like the ParReduce operation, which can use TypeList and GpuTuple to list arbitrary components?
The text was updated successfully, but these errors were encountered:
In the MultiFabUtil.H I have see the ReduceToPlane function, and the following example:
int dir = 0; // x-direction
auto const& domain_box = geom.Domain().surroundingNodes(); // nodal data
auto const& ma = mf.const_arrays();
auto rr = ReduceToPlane<ReduceOpMax,KeyValuePair<Real,int>>
(dir, domain_box, mf,
[=] AMREX_GPU_DEVICE (int box_no, int i, int j, int k)
-> KeyValuePair<Real,int>
{
return {mabox_no, i};
});
However this is only for two components ,which is limited by the ,KeyValuePair. Is there any way to reduce to Plane for more than 2 components by one call, like the ParReduce operation, which can use TypeList and GpuTuple to list arbitrary components?
The text was updated successfully, but these errors were encountered: