mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Update setuptools url. Fix memory initialization issue in jozov2
This commit is contained in:
parent
bbbb8e279e
commit
b28cf64544
2 changed files with 21 additions and 9 deletions
|
@ -85,9 +85,11 @@ void buildZoneAdjacencies(PARTICLE *p, pid_t np,
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t nadjAlloced = 0;
|
size_t nadjAlloced = 0;
|
||||||
|
cout << "Total numZones = " << numZones << endl;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
for (int h = 0; h < numZones; h++) {
|
for (int h = 0; h < numZones; h++) {
|
||||||
|
cout << "Zone " << h << " nadj = " << zt[h].nadj << endl;
|
||||||
if (zt[h].nadj > 0) {
|
if (zt[h].nadj > 0) {
|
||||||
zt[h].adj = new pid_t[zt[h].nadj];
|
zt[h].adj = new pid_t[zt[h].nadj];
|
||||||
zt[h].slv = new float[zt[h].nadj];
|
zt[h].slv = new float[zt[h].nadj];
|
||||||
|
@ -162,6 +164,7 @@ void buildZoneAdjacencies(PARTICLE *p, pid_t np,
|
||||||
/* Use z instead of zt */
|
/* Use z instead of zt */
|
||||||
for (int h = 0; h < numZones; h++) {
|
for (int h = 0; h < numZones; h++) {
|
||||||
z[h].nadj = zt[h].nadj;
|
z[h].nadj = zt[h].nadj;
|
||||||
|
if (zt[h].nadj > 0) {
|
||||||
z[h].adj = new pid_t[zt[h].nadj];
|
z[h].adj = new pid_t[zt[h].nadj];
|
||||||
z[h].slv = new float[zt[h].nadj];
|
z[h].slv = new float[zt[h].nadj];
|
||||||
for (int za = 0; za < zt[h].nadj; za++) {
|
for (int za = 0; za < zt[h].nadj; za++) {
|
||||||
|
@ -170,6 +173,10 @@ void buildZoneAdjacencies(PARTICLE *p, pid_t np,
|
||||||
}
|
}
|
||||||
delete[] zt[h].adj;
|
delete[] zt[h].adj;
|
||||||
delete[] zt[h].slv;
|
delete[] zt[h].slv;
|
||||||
|
} else {
|
||||||
|
z[h].adj = 0;
|
||||||
|
z[h].slv = 0;
|
||||||
|
}
|
||||||
z[h].np = numinh[z[h].core];
|
z[h].np = numinh[z[h].core];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -216,9 +223,14 @@ void buildZones(PARTICLE *p, pid_t np, pid_t *&jumped,
|
||||||
zonenum[i] = -1;
|
zonenum[i] = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (size_t z = 0; z < nzones; z++) {
|
||||||
|
zt[z].nadj = 0;
|
||||||
|
zt[z].adj = 0;
|
||||||
|
zt[z].slv = 0;
|
||||||
|
}
|
||||||
|
|
||||||
buildZoneAdjacencies(p, np, z, zt,
|
buildZoneAdjacencies(p, np, z, zt,
|
||||||
nzones, jumped, zonenum, numinh);
|
h, jumped, zonenum, numinh);
|
||||||
|
|
||||||
delete[] zt;
|
delete[] zt;
|
||||||
delete[] numinh;
|
delete[] numinh;
|
||||||
|
|
2
external/external_python_build.cmake
vendored
2
external/external_python_build.cmake
vendored
|
@ -30,7 +30,7 @@ IF (INTERNAL_HEALPY)
|
||||||
ENDIF(INTERNAL_HEALPY)
|
ENDIF(INTERNAL_HEALPY)
|
||||||
|
|
||||||
IF(INTERNAL_SETUPTOOLS)
|
IF(INTERNAL_SETUPTOOLS)
|
||||||
SET(SETUPTOOLS_URL "http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz" CACHE STRING "URL to download setuptools from")
|
SET(SETUPTOOLS_URL "https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz" CACHE STRING "URL to download setuptools from")
|
||||||
mark_as_advanced(SETUPTOOLS_URL)
|
mark_as_advanced(SETUPTOOLS_URL)
|
||||||
ENDIF(INTERNAL_SETUPTOOLS)
|
ENDIF(INTERNAL_SETUPTOOLS)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue