Well the numfeats variable is 8, so that's not real huge. The number of compounds(the i variable) is 13, and for each compound, there are potentially 100 conformation structures, each with its own...
Type: Posts; User: venckman
Well the numfeats variable is 8, so that's not real huge. The number of compounds(the i variable) is 13, and for each compound, there are potentially 100 conformation structures, each with its own...
Here's the allocation command I'm using:
cmpds[i].conformations[j].feature_dist = (double **)malloc(numfeats2*numfeats2*sizeof(double *));
if (cmpds[i].conformations[j].feature_dist ==...
I have a program with not many structures that need memory allocated for, in my opinion, however, half way through code execution when I try to allocate memory for a two-dimensional array using...
it's the darn Microsoft Visual C++ debugger. It must have a glitch in how it's displaying variable values, because I was able to manually verify that the values are being populated correctly. Sorry.
Sorry, I do loop from 0 to 99, but I don't know why I don't seem to get a list of 100 atom objects, unless Visual C++'s debugger is not showing me things properly.
I'm trying to work with a dynamically sized "array" of a structure called atoms. I declare an atom pointer like so:
atom *atoms;
Then, I allocated memory for a bunch of atom structures like...