git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11250 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -415,7 +415,7 @@ void WriteData::bonds()
|
||||
int maxrow;
|
||||
MPI_Allreduce(&sendrow,&maxrow,1,MPI_INT,MPI_MAX,world);
|
||||
|
||||
int **buf;
|
||||
tagint **buf;
|
||||
if (me == 0) memory->create(buf,MAX(1,maxrow),ncol,"write_data:buf");
|
||||
else memory->create(buf,MAX(1,sendrow),ncol,"write_data:buf");
|
||||
|
||||
@ -436,10 +436,10 @@ void WriteData::bonds()
|
||||
fprintf(fp,"\nBonds\n\n");
|
||||
for (int iproc = 0; iproc < nprocs; iproc++) {
|
||||
if (iproc) {
|
||||
MPI_Irecv(&buf[0][0],maxrow*ncol,MPI_INT,iproc,0,world,&request);
|
||||
MPI_Irecv(&buf[0][0],maxrow*ncol,MPI_LMP_TAGINT,iproc,0,world,&request);
|
||||
MPI_Send(&tmp,0,MPI_INT,iproc,0,world);
|
||||
MPI_Wait(&request,&status);
|
||||
MPI_Get_count(&status,MPI_INT,&recvrow);
|
||||
MPI_Get_count(&status,MPI_LMP_TAGINT,&recvrow);
|
||||
recvrow /= ncol;
|
||||
} else recvrow = sendrow;
|
||||
|
||||
@ -449,7 +449,7 @@ void WriteData::bonds()
|
||||
|
||||
} else {
|
||||
MPI_Recv(&tmp,0,MPI_INT,0,0,world,&status);
|
||||
MPI_Rsend(&buf[0][0],sendrow*ncol,MPI_INT,0,0,world);
|
||||
MPI_Rsend(&buf[0][0],sendrow*ncol,MPI_LMP_TAGINT,0,0,world);
|
||||
}
|
||||
|
||||
memory->destroy(buf);
|
||||
@ -468,7 +468,7 @@ void WriteData::angles()
|
||||
int maxrow;
|
||||
MPI_Allreduce(&sendrow,&maxrow,1,MPI_INT,MPI_MAX,world);
|
||||
|
||||
int **buf;
|
||||
tagint **buf;
|
||||
if (me == 0) memory->create(buf,MAX(1,maxrow),ncol,"write_data:buf");
|
||||
else memory->create(buf,MAX(1,sendrow),ncol,"write_data:buf");
|
||||
|
||||
@ -489,10 +489,10 @@ void WriteData::angles()
|
||||
fprintf(fp,"\nAngles\n\n");
|
||||
for (int iproc = 0; iproc < nprocs; iproc++) {
|
||||
if (iproc) {
|
||||
MPI_Irecv(&buf[0][0],maxrow*ncol,MPI_INT,iproc,0,world,&request);
|
||||
MPI_Irecv(&buf[0][0],maxrow*ncol,MPI_LMP_TAGINT,iproc,0,world,&request);
|
||||
MPI_Send(&tmp,0,MPI_INT,iproc,0,world);
|
||||
MPI_Wait(&request,&status);
|
||||
MPI_Get_count(&status,MPI_INT,&recvrow);
|
||||
MPI_Get_count(&status,MPI_LMP_TAGINT,&recvrow);
|
||||
recvrow /= ncol;
|
||||
} else recvrow = sendrow;
|
||||
|
||||
@ -502,7 +502,7 @@ void WriteData::angles()
|
||||
|
||||
} else {
|
||||
MPI_Recv(&tmp,0,MPI_INT,0,0,world,&status);
|
||||
MPI_Rsend(&buf[0][0],sendrow*ncol,MPI_INT,0,0,world);
|
||||
MPI_Rsend(&buf[0][0],sendrow*ncol,MPI_LMP_TAGINT,0,0,world);
|
||||
}
|
||||
|
||||
memory->destroy(buf);
|
||||
@ -519,9 +519,9 @@ void WriteData::dihedrals()
|
||||
|
||||
int ncol = 5;
|
||||
|
||||
int *tag = atom->tag;
|
||||
tagint *tag = atom->tag;
|
||||
int *num_dihedral = atom->num_dihedral;
|
||||
int **dihedral_atom2 = atom->dihedral_atom2;
|
||||
tagint **dihedral_atom2 = atom->dihedral_atom2;
|
||||
int nlocal = atom->nlocal;
|
||||
int newton_bond = force->newton_bond;
|
||||
|
||||
@ -539,7 +539,7 @@ void WriteData::dihedrals()
|
||||
int maxrow;
|
||||
MPI_Allreduce(&sendrow,&maxrow,1,MPI_INT,MPI_MAX,world);
|
||||
|
||||
int **buf;
|
||||
tagint **buf;
|
||||
if (me == 0) memory->create(buf,MAX(1,maxrow),ncol,"write_data:buf");
|
||||
else memory->create(buf,MAX(1,sendrow),ncol,"write_data:buf");
|
||||
|
||||
@ -560,10 +560,10 @@ void WriteData::dihedrals()
|
||||
fprintf(fp,"\nDihedrals\n\n");
|
||||
for (int iproc = 0; iproc < nprocs; iproc++) {
|
||||
if (iproc) {
|
||||
MPI_Irecv(&buf[0][0],maxrow*ncol,MPI_INT,iproc,0,world,&request);
|
||||
MPI_Irecv(&buf[0][0],maxrow*ncol,MPI_LMP_TAGINT,iproc,0,world,&request);
|
||||
MPI_Send(&tmp,0,MPI_INT,iproc,0,world);
|
||||
MPI_Wait(&request,&status);
|
||||
MPI_Get_count(&status,MPI_INT,&recvrow);
|
||||
MPI_Get_count(&status,MPI_LMP_TAGINT,&recvrow);
|
||||
recvrow /= ncol;
|
||||
} else recvrow = sendrow;
|
||||
|
||||
@ -573,7 +573,7 @@ void WriteData::dihedrals()
|
||||
|
||||
} else {
|
||||
MPI_Recv(&tmp,0,MPI_INT,0,0,world,&status);
|
||||
MPI_Rsend(&buf[0][0],sendrow*ncol,MPI_INT,0,0,world);
|
||||
MPI_Rsend(&buf[0][0],sendrow*ncol,MPI_LMP_TAGINT,0,0,world);
|
||||
}
|
||||
|
||||
memory->destroy(buf);
|
||||
@ -590,9 +590,9 @@ void WriteData::impropers()
|
||||
|
||||
int ncol = 5;
|
||||
|
||||
int *tag = atom->tag;
|
||||
tagint *tag = atom->tag;
|
||||
int *num_improper = atom->num_improper;
|
||||
int **improper_atom2 = atom->improper_atom2;
|
||||
tagint **improper_atom2 = atom->improper_atom2;
|
||||
int nlocal = atom->nlocal;
|
||||
int newton_bond = force->newton_bond;
|
||||
|
||||
@ -610,7 +610,7 @@ void WriteData::impropers()
|
||||
int maxrow;
|
||||
MPI_Allreduce(&sendrow,&maxrow,1,MPI_INT,MPI_MAX,world);
|
||||
|
||||
int **buf;
|
||||
tagint **buf;
|
||||
if (me == 0) memory->create(buf,MAX(1,maxrow),ncol,"write_data:buf");
|
||||
else memory->create(buf,MAX(1,sendrow),ncol,"write_data:buf");
|
||||
|
||||
@ -631,10 +631,10 @@ void WriteData::impropers()
|
||||
fprintf(fp,"\nImpropers\n\n");
|
||||
for (int iproc = 0; iproc < nprocs; iproc++) {
|
||||
if (iproc) {
|
||||
MPI_Irecv(&buf[0][0],maxrow*ncol,MPI_INT,iproc,0,world,&request);
|
||||
MPI_Irecv(&buf[0][0],maxrow*ncol,MPI_LMP_TAGINT,iproc,0,world,&request);
|
||||
MPI_Send(&tmp,0,MPI_INT,iproc,0,world);
|
||||
MPI_Wait(&request,&status);
|
||||
MPI_Get_count(&status,MPI_INT,&recvrow);
|
||||
MPI_Get_count(&status,MPI_LMP_TAGINT,&recvrow);
|
||||
recvrow /= ncol;
|
||||
} else recvrow = sendrow;
|
||||
|
||||
@ -644,7 +644,7 @@ void WriteData::impropers()
|
||||
|
||||
} else {
|
||||
MPI_Recv(&tmp,0,MPI_INT,0,0,world,&status);
|
||||
MPI_Rsend(&buf[0][0],sendrow*ncol,MPI_INT,0,0,world);
|
||||
MPI_Rsend(&buf[0][0],sendrow*ncol,MPI_LMP_TAGINT,0,0,world);
|
||||
}
|
||||
|
||||
memory->destroy(buf);
|
||||
|
||||
Reference in New Issue
Block a user