Skip to content

Use of Wrap() for boundary #271

@remylegoff

Description

@remylegoff

Hello, when using Wrap() function as boundary condition, I have for the following example :

sim!(output, dispersion_rule_v2; proc=ThreadedCPU(), opt=SparseOpt(), boundary = Wrap())

ERROR: UndefVarError: `copxto!` not defined
Stacktrace:
  [1] update_boundary!(A::DynamicGrids.GridData{…}, ::Stencils.Halo{…}, ::Wrap)
    @ Stencils ~/.julia/packages/Stencils/FTlye/src/array.jl:272

I've tried changing local array.jl file (copxto! -> copyto!) and the error is then

ERROR: BoundsError: attempt to access 93×57×1020 Array{Float64, 3} at index [CartesianIndex(10, 1020, 93)]
Stacktrace:
  [1] throw_boundserror(A::Array{Float64, 3}, I::Tuple{CartesianIndex{3}})
    @ Base ./abstractarray.jl:737

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