477 |
|
// Init the atomStruct mpi type |
478 |
|
|
479 |
|
atomStruct atomProto; // mpiPrototype |
480 |
< |
int atomBC[3] = {15,11,4}; // block counts |
480 |
> |
int atomBC[3] = {15,12,5}; // block counts |
481 |
|
MPI_Aint atomDspls[3]; // displacements |
482 |
|
MPI_Datatype atomMbrTypes[3]; // member mpi types |
483 |
|
|
730 |
|
currentAtomType = headAtomType->next; //skip the first element who is a place holder. |
731 |
|
while( currentAtomType != NULL ){ |
732 |
|
currentAtomType->duplicate( atomInfo ); |
733 |
– |
|
734 |
– |
|
733 |
|
|
734 |
|
sendFrcStruct( &atomInfo, mpiAtomStructType ); |
735 |
|
|
748 |
|
else{ |
749 |
|
|
750 |
|
// listen for node 0 to send out the force params |
751 |
< |
|
751 |
> |
|
752 |
|
MPIcheckPoint(); |
753 |
|
|
754 |
|
headAtomType = new LinkedAtomType; |
755 |
< |
recieveFrcStruct( &atomInfo, mpiAtomStructType ); |
755 |
> |
receiveFrcStruct( &atomInfo, mpiAtomStructType ); |
756 |
|
|
757 |
|
while( !atomInfo.last ){ |
758 |
|
|
761 |
– |
|
762 |
– |
|
759 |
|
headAtomType->add( atomInfo ); |
760 |
|
|
761 |
|
MPIcheckPoint(); |
762 |
|
|
763 |
< |
recieveFrcStruct( &atomInfo, mpiAtomStructType ); |
763 |
> |
receiveFrcStruct( &atomInfo, mpiAtomStructType ); |
764 |
|
} |
765 |
|
} |
766 |
|
|
894 |
|
MPIcheckPoint(); |
895 |
|
|
896 |
|
headBondType = new LinkedBondType; |
897 |
< |
recieveFrcStruct( &bondInfo, mpiBondStructType ); |
897 |
> |
receiveFrcStruct( &bondInfo, mpiBondStructType ); |
898 |
|
while( !bondInfo.last ){ |
899 |
|
|
900 |
|
headBondType->add( bondInfo ); |
901 |
< |
recieveFrcStruct( &bondInfo, mpiBondStructType ); |
901 |
> |
receiveFrcStruct( &bondInfo, mpiBondStructType ); |
902 |
|
} |
903 |
|
} |
904 |
|
|
977 |
|
MPIcheckPoint(); |
978 |
|
|
979 |
|
headBendType = new LinkedBendType; |
980 |
< |
recieveFrcStruct( &bendInfo, mpiBendStructType ); |
980 |
> |
receiveFrcStruct( &bendInfo, mpiBendStructType ); |
981 |
|
while( !bendInfo.last ){ |
982 |
|
|
983 |
|
headBendType->add( bendInfo ); |
984 |
< |
recieveFrcStruct( &bendInfo, mpiBendStructType ); |
984 |
> |
receiveFrcStruct( &bendInfo, mpiBendStructType ); |
985 |
|
} |
986 |
|
} |
987 |
|
|
1062 |
|
MPIcheckPoint(); |
1063 |
|
|
1064 |
|
headTorsionType = new LinkedTorsionType; |
1065 |
< |
recieveFrcStruct( &torsionInfo, mpiTorsionStructType ); |
1065 |
> |
receiveFrcStruct( &torsionInfo, mpiTorsionStructType ); |
1066 |
|
while( !torsionInfo.last ){ |
1067 |
|
|
1068 |
|
headTorsionType->add( torsionInfo ); |
1069 |
< |
recieveFrcStruct( &torsionInfo, mpiTorsionStructType ); |
1069 |
> |
receiveFrcStruct( &torsionInfo, mpiTorsionStructType ); |
1070 |
|
} |
1071 |
|
} |
1072 |
|
|