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

This commit is contained in:
sjplimp
2014-03-19 19:23:48 +00:00
parent 2c447385f4
commit 281948612b
2 changed files with 6 additions and 6 deletions

View File

@ -275,14 +275,14 @@ void ProcMap::numa_grid(int nprocs, int *user_procgrid, int *procgrid,
void ProcMap::custom_grid(char *cfile, int nprocs,
int *user_procgrid, int *procgrid)
{
FILE *fp;
char line[MAXLINE];
int me;
MPI_Comm_rank(world,&me);
char line[MAXLINE];
FILE *fp = NULL;
if (me == 0) {
FILE *fp = fopen(cfile,"r");
fp = fopen(cfile,"r");
if (fp == NULL) error->one(FLERR,"Cannot open custom file");
// skip header = blank and comment lines