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

Add function to unpack state to 3D array(s) #11

Closed
briochemc opened this issue May 21, 2019 · 0 comments
Closed

Add function to unpack state to 3D array(s) #11

briochemc opened this issue May 21, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@briochemc
Copy link
Member

Right now I do this via

const iDIP = 1:nb
const iDOP = iDIP .+ nb
const iPOP = iDOP .+ nb
function unpack_state(x)
DIP = x[iDIP]
DOP = x[iDOP]
POP = x[iPOP]
return DIP, DOP, POP
end

and

DIP, DOP, POP = unpack_state(x)

and

DIP_3d = NaN * wet3d; DIP_3d[iwet] = DIP

Probably good to have a unpack_state and vector_to_3D functions in AIBECS

@briochemc briochemc added enhancement New feature or request and removed enhancement New feature or request labels May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant