git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6041 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2011-04-29 21:05:35 +00:00
parent 3b3c1d118d
commit ee769613d7
8 changed files with 11 additions and 11 deletions

View File

@ -45,7 +45,7 @@ class Memory : protected Pointers {
bigint nbytes = sizeof(TYPE) * n;
array = (TYPE *) smalloc(nbytes,name);
return array;
};
}
template <typename TYPE>
TYPE **create(TYPE **&array, int n, const char *name) {fail(name);}
@ -62,7 +62,7 @@ class Memory : protected Pointers {
bigint nbytes = sizeof(TYPE) * n;
array = (TYPE *) srealloc(array,nbytes,name);
return array;
};
}
template <typename TYPE>
TYPE **grow(TYPE **&array, int n, const char *name) {fail(name);}
@ -75,7 +75,7 @@ class Memory : protected Pointers {
void destroy(TYPE *array)
{
sfree(array);
};
}
/* ----------------------------------------------------------------------
create a 1d array with index from nlo to nhi inclusive