Commit 4a47c67d authored by jclamber's avatar jclamber

fix regression on ramses ID reading when no stars

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@205 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent 7765aee8
......@@ -119,14 +119,15 @@ int CPart::loadData(uns::CParticles * particles,
double * agetmp, * metaltmp;
int * id=NULL;
if (req_bits&ID_BIT) {
id = new int[npart];
part.readDataBlock((char *) id); // read identity
} else {
part.skipBlock(); // skip identity
}
if (nstar>0) { // || 1) { // there are stars
if (req_bits&ID_BIT) {
id = new int[npart];
part.readDataBlock((char *) id); // read identity
} else {
part.skipBlock(); // skip identity
}
part.skipBlock(); // skip level
agetmp = new double[npart];
part.readDataBlock((char *) agetmp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment