Hi Peter, thanks for the reply. Just so I can get my head around what you're saying. Originally I had not made the pointers point anywhere, so when the compiler looked for the location of the point it found nothing and caused an unhandled exception?
So something like this works instead;
1 2 3 4 5 6
constint N = 0;
double **coords = newdouble*[n_atoms_arb];
for (int i = 0; i < n_atoms_arb; i++)
coords[i] = newdouble[N];
Yes. You will have to change N to whatever size it is you want (looks like 3 in your first post). This code will not actually initialize the values in the array. If you want all the number to be zero you can add a couple of parenthesis. coords[i] = newdouble[N]();