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

Should functions take grids or arrays as arguments #24

Open
brryan opened this issue Jul 20, 2016 · 0 comments
Open

Should functions take grids or arrays as arguments #24

brryan opened this issue Jul 20, 2016 · 0 comments

Comments

@brryan
Copy link
Contributor

brryan commented Jul 20, 2016

Uncertain how to decide between grid and array types for function arguments. Consider for example a function that transforms a four-vector in the coordinate frame vCoord to the tetrad frame vTetrad; should this function be

void fluidElement::coordToTetrad(const array vCoord[NDIM], array vTetrad[NDIM])

or


void fluidElement::coordToTetrad(const grid &vCoord, grid &vTetrad)

?

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