Skip to content

Directly specify the halo width #680

@Goon83

Description

@Goon83

Following some examples to learn the halo function in DASH. One question is about how to specify the width of halo layer without StencilSpec. I found most example codes use the below steps to declare a array with halo.

   using StencilSpec_t = dash::halo::StencilSpec<StencilP_t, 4>;
   using HaloWrapper_t = dash::halo::HaloMatrixWrapper<Array_t>;

    StencilSpec_t stencil_spec(StencilP_t(-1, 0), StencilP_t(1, 0), StencilP_t(0, -1), StencilP_t(0, 1));
    HaloWrapper_t halo_array(data_array, stencil_spec);

After studying the API of HaloWrapper_t, it seems that the stencil_spec is the only way to ask for a halo layer.
https://codedocs.xyz/dash-project/dash/a01194.html

Thanks.
Bin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions