Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is this a typo for array size? #10

Open
onlytailei opened this issue Dec 26, 2019 · 0 comments
Open

is this a typo for array size? #10

onlytailei opened this issue Dec 26, 2019 · 0 comments

Comments

@onlytailei
Copy link

onlytailei commented Dec 26, 2019

std::array<unsigned int, ndims_-1> d_; // Same as nDGridMap class auxiliar array d_.

It seems that ndims_ here is 3.
And d_ is declared with size of 2.

However, d_[2] is initialized and used in folliwing codes.

It works but is still very dangerous.
Is this a typo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant