git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4867 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -623,14 +623,17 @@ void Input::jump()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (me == 0) {
|
if (me == 0) {
|
||||||
if (infile != stdin) fclose(infile);
|
if (strcmp(arg[0],"SELF") == 0) rewind(infile);
|
||||||
infile = fopen(arg[0],"r");
|
else {
|
||||||
if (infile == NULL) {
|
if (infile != stdin) fclose(infile);
|
||||||
char str[128];
|
infile = fopen(arg[0],"r");
|
||||||
sprintf(str,"Cannot open input script %s",arg[0]);
|
if (infile == NULL) {
|
||||||
error->one(str);
|
char str[128];
|
||||||
|
sprintf(str,"Cannot open input script %s",arg[0]);
|
||||||
|
error->one(str);
|
||||||
|
}
|
||||||
|
infiles[nfile-1] = infile;
|
||||||
}
|
}
|
||||||
infiles[nfile-1] = infile;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (narg == 2) {
|
if (narg == 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user