| 99 |
|
return NULL; |
| 100 |
|
} |
| 101 |
|
|
| 102 |
+ |
void printMe( void ){ |
| 103 |
+ |
|
| 104 |
+ |
std::cerr << "LinkedAtype " << name << ": ident = " << ident << "\n"; |
| 105 |
+ |
if( next != NULL ) next->printMe(); |
| 106 |
+ |
|
| 107 |
+ |
} |
| 108 |
+ |
|
| 109 |
|
void add( atomStruct &info ){ |
| 110 |
|
|
| 111 |
|
// check for duplicates |
| 147 |
|
info.dipole = dipole; |
| 148 |
|
info.w0 = w0; |
| 149 |
|
info.v0 = v0; |
| 150 |
+ |
info.ident = ident; |
| 151 |
|
info.last = 0; |
| 152 |
|
} |
| 153 |
|
|
| 742 |
|
recieveFrcStruct( &atomInfo, mpiAtomStructType ); |
| 743 |
|
} |
| 744 |
|
} |
| 745 |
+ |
|
| 746 |
|
#endif // is_mpi |
| 747 |
|
|
| 748 |
+ |
|
| 749 |
+ |
|
| 750 |
|
// call new A_types in fortran |
| 751 |
|
|
| 752 |
|
int isError; |
| 853 |
|
"TraPPE_Ex bond structures read successfully." ); |
| 854 |
|
MPIcheckPoint(); |
| 855 |
|
|
| 856 |
< |
currentBondType = headBondType; |
| 856 |
> |
currentBondType = headBondType->next; |
| 857 |
|
while( currentBondType != NULL ){ |
| 858 |
|
currentBondType->duplicate( bondInfo ); |
| 859 |
|
sendFrcStruct( &bondInfo, mpiBondStructType ); |
| 868 |
|
|
| 869 |
|
// listen for node 0 to send out the force params |
| 870 |
|
|
| 871 |
< |
MPIcheckPoint(); |
| 871 |
> |
MPIcheckPoint(); |
| 872 |
|
|
| 873 |
|
headBondType = new LinkedBondType; |
| 874 |
|
recieveFrcStruct( &bondInfo, mpiBondStructType ); |
| 931 |
|
"TraPPE_Ex bend structures read successfully." ); |
| 932 |
|
MPIcheckPoint(); |
| 933 |
|
|
| 934 |
< |
currentBendType = headBendType; |
| 934 |
> |
currentBendType = headBendType->next; |
| 935 |
|
while( currentBendType != NULL ){ |
| 936 |
|
currentBendType->duplicate( bendInfo ); |
| 937 |
|
sendFrcStruct( &bendInfo, mpiBendStructType ); |
| 1011 |
|
"TraPPE_Ex torsion structures read successfully." ); |
| 1012 |
|
MPIcheckPoint(); |
| 1013 |
|
|
| 1014 |
< |
currentTorsionType = headTorsionType; |
| 1014 |
> |
currentTorsionType = headTorsionType->next; |
| 1015 |
|
while( currentTorsionType != NULL ){ |
| 1016 |
|
currentTorsionType->duplicate( torsionInfo ); |
| 1017 |
|
sendFrcStruct( &torsionInfo, mpiTorsionStructType ); |