ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/TraPPE_ExFF.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/TraPPE_ExFF.cpp (file contents):
Revision 433 by mmeineke, Fri Mar 28 15:28:53 2003 UTC vs.
Revision 442 by mmeineke, Wed Apr 2 15:01:06 2003 UTC

# Line 99 | Line 99 | namespace TPE {  // restrict the access of the folowin
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
# Line 140 | Line 147 | namespace TPE {  // restrict the access of the folowin
147        info.dipole   = dipole;
148        info.w0       = w0;
149        info.v0       = v0;
150 +      info.ident    = ident;
151        info.last     = 0;
152      }
153  
# Line 734 | Line 742 | void TraPPE_ExFF::readParams( void ){
742        recieveFrcStruct( &atomInfo, mpiAtomStructType );
743      }
744    }
745 +
746   #endif // is_mpi
747 +
748 +
749  
750    // call new A_types in fortran
751    
# Line 842 | Line 853 | void TraPPE_ExFF::readParams( void ){
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 );
# Line 857 | Line 868 | void TraPPE_ExFF::readParams( void ){
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 );
# Line 920 | Line 931 | void TraPPE_ExFF::readParams( void ){
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 );
# Line 1000 | Line 1011 | void TraPPE_ExFF::readParams( void ){
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 );
# Line 1139 | Line 1150 | void TraPPE_ExFF::initializeAtoms( int nAtoms, Atom**
1150        }
1151      }
1152    }
1142
1143
1144 #ifdef IS_MPI
1145  sprintf( checkPointMsg, "TraPPE_Ex atoms initialized succesfully" );
1146  MPIcheckPoint();
1147 #endif // is_mpi
1148
1153   }
1154  
1155   void TraPPE_ExFF::initializeBonds( int nBonds, Bond** bondArray,
# Line 1184 | Line 1188 | void TraPPE_ExFF::initializeBonds( int nBonds, Bond**
1188        entry_plug->n_constraints++;
1189      }
1190    }
1187  
1188 #ifdef IS_MPI
1189  sprintf( checkPointMsg, "TraPPE_Ex bonds initialized succesfully" );
1190  MPIcheckPoint();
1191 #endif // is_mpi
1192
1191   }
1192  
1193   void TraPPE_ExFF::initializeBends( int nBends, Bend** bendArray,
# Line 1271 | Line 1269 | void TraPPE_ExFF::initializeBends( int nBends, Bend**
1269        }
1270      }
1271    }
1274
1275 #ifdef IS_MPI
1276  sprintf( checkPointMsg, "TraPPE_Ex bends initialized succesfully" );
1277  MPIcheckPoint();
1278 #endif // is_mpi
1279
1272   }
1273  
1274   void TraPPE_ExFF::initializeTorsions( int nTorsions, Torsion** torsionArray,
# Line 1324 | Line 1316 | void TraPPE_ExFF::initializeTorsions( int nTorsions, T
1316        torsionArray[i] = cTors;
1317      }
1318    }
1327
1328 #ifdef IS_MPI
1329  sprintf( checkPointMsg, "TraPPE_Ex torsions initialized succesfully" );
1330  MPIcheckPoint();
1331 #endif // is_mpi
1332
1319   }
1320  
1321   void TraPPE_ExFF::fastForward( char* stopText, char* searchOwner ){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines