Skip to content

preventing out-of-range ouput #46

Description

@BenMql

There's no safeguarding against the user requesting some output outside the grid.
The code should check that, given the number of alias-free modes $(N_X,N_Y,N_Z)$ defined at the top of coral.parameters.in:

0           ! ........... RESOLUTION ............ !
48          ! 01 ! (INT) ... along X         ! 01 !
48          ! 02 ! (INT) ... along Y         ! 02 !
64          ! 03 ! (INT) ... along Z         ! 03 !
...

In both coral.timeseries and coral.usrOutput, the user should request data in the range

$ 1\leq x \leq \frac{3}{2}N_X$

$ 1\leq y \leq \frac{3}{2}N_Y$

$ 1\leq z \leq \frac{3}{2}N_Z$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions