git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6542 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -38,11 +38,11 @@ using namespace LAMMPS_NS;
|
|||||||
#define MAXLINE 1024
|
#define MAXLINE 1024
|
||||||
|
|
||||||
enum{FCC,BCC,HCP,DIM,DIAMOND,B1,C11,L12,B2};
|
enum{FCC,BCC,HCP,DIM,DIAMOND,B1,C11,L12,B2};
|
||||||
int nkeywords = 19;
|
int nkeywords = 21;
|
||||||
char *keywords[] = {"Ec","alpha","rho0","delta","lattce",
|
char *keywords[] = {"Ec","alpha","rho0","delta","lattce",
|
||||||
"attrac","repuls","nn2","Cmin","Cmax","rc","delr",
|
"attrac","repuls","nn2","Cmin","Cmax","rc","delr",
|
||||||
"augt1","gsmooth_factor","re","ialloy","mixture_ref_t",
|
"augt1","gsmooth_factor","re","ialloy","mixture_ref_t",
|
||||||
"erose_form","zbl"};
|
"erose_form","zbl","emb_lin_neg","bkgd_dyn"};
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ void *Memory::smalloc(bigint nbytes, const char *name)
|
|||||||
void *ptr = malloc(nbytes);
|
void *ptr = malloc(nbytes);
|
||||||
if (ptr == NULL) {
|
if (ptr == NULL) {
|
||||||
char str[128];
|
char str[128];
|
||||||
sprintf(str,"Failed to allocate " BIGINT_FORMAT "bytes for array %s",
|
sprintf(str,"Failed to allocate " BIGINT_FORMAT " bytes for array %s",
|
||||||
nbytes,name);
|
nbytes,name);
|
||||||
error->one(str);
|
error->one(str);
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ void *Memory::srealloc(void *ptr, bigint nbytes, const char *name)
|
|||||||
ptr = realloc(ptr,nbytes);
|
ptr = realloc(ptr,nbytes);
|
||||||
if (ptr == NULL) {
|
if (ptr == NULL) {
|
||||||
char str[128];
|
char str[128];
|
||||||
sprintf(str,"Failed to reallocate " BIGINT_FORMAT "bytes for array %s",
|
sprintf(str,"Failed to reallocate " BIGINT_FORMAT " bytes for array %s",
|
||||||
nbytes,name);
|
nbytes,name);
|
||||||
error->one(str);
|
error->one(str);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user