mirror of https://github.com/lammps/lammps.git
recover compilation for platforms using malloc() instead of posix_memalign()
This commit is contained in:
parent
7a9d31328e
commit
9e47452382
|
@ -180,7 +180,6 @@ void MyPoolChunk<T>::allocate(int ibin) {
|
|||
pages[i] = (T *) ptr;
|
||||
#else
|
||||
pages[i] = (T *) malloc(chunkperpage*chunksize[ibin]*sizeof(T));
|
||||
size += chunkperpage*chunksize[ibin];
|
||||
if (!pages[i]) errorflag = 2;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue