Dear All:
I need help to make the following pointer setup for particle dynamics simulation.
1. Particles have X, Y, Z coordinates such as X(1:NP), Y(1:NP), and Z(1:NP), where NP is the number of particles, let's say 1000.
2. I would like to have an array pointer R3(1:NP,1:3), which points
R3(1:NP,1) => X R3(1:NP,2) => Y R3(1:NP,3) => Z
The dimension of R3 can be either NP by 3 or 3 by NP. The above method gave me an error, saying
"error #8524: The syntax of this data pointer assignment is incorrect: either 'bound spec' or 'bound remapping' is expected in this context. "
Any possible way to collect multiple vectors to an array pointer?
Thank you so much.
Albert
Zone:
Thread Topic:
Question