Skip to content

gather of 3d array broken #101

Closed
Closed
@mcarmesin

Description

I'm running IGG with ParallelStencils on four GPUs, such that the grid is split in x and y but not in z.
Initializing the local array

ψ.= Data.Array([ (x>-.1) && (y>-.1) && (z>-.1) for x in X_loc, y in Y_loc, z in Z_loc]) 

and gathering with

ψ_nohalo = zeros(ComplexF64,nx-2, ny-2, nz-2);
ψ_nohalo .= Array(ψ[2:end-1,2:end-1,2:end-1])
Ψ = me==0 ? Array{ComplexF64,3}(undef, (nx-2)*dims[1],(ny-2)*dims[2],(nz-2)*dims[3]) : nothing
gather!(ψ_nohalo,Ψ)

I obtain the results of the plots
Psi

In the yz plane the data are corrupted like there is some indexing wrong when putting together the data .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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