Changeset 70b7aa for molecuilder/src/molecule.cpp
- Timestamp:
- Oct 7, 2009, 2:29:57 PM (16 years ago)
- Children:
- 17b3a5c
- Parents:
- 972706
- git-author:
- Frederik Heber <heber@…> (10/07/09 14:26:53)
- git-committer:
- Frederik Heber <heber@…> (10/07/09 14:29:57)
- File:
-
- 1 edited
-
molecuilder/src/molecule.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule.cpp
r972706 r70b7aa 734 734 bool molecule::OutputTrajectories(ofstream *out) 735 735 { 736 atom *walker = NULL;737 736 int ElementNo[MAX_ELEMENTS], AtomNo[MAX_ELEMENTS]; 738 737 CountElements(); … … 799 798 bool molecule::OutputTrajectoriesXYZ(ofstream *out) 800 799 { 801 int No = 0;802 800 time_t now; 803 801 … … 818 816 bool molecule::OutputXYZ(ofstream *out) const 819 817 { 820 atom *walker = NULL;821 int AtomNo = 0;822 818 time_t now; 823 819 … … 918 914 { 919 915 bond *Binder = NULL; 920 atom *Walker = NULL;921 int TotalDegree;922 916 *out << Verbose(1) << "Begin of Creating ListOfBondsPerAtom: AtomCount = " << AtomCount << "\tBondCount = " << BondCount << "\tNoNonBonds = " << NoNonBonds << "." << endl; 923 917 … … 960 954 // output list for debugging 961 955 *out << Verbose(3) << "ListOfBondsPerAtom for each atom:" << endl; 962 Walker = start; 963 while (Walker->next != end) { 964 Walker = Walker->next; 965 *out << Verbose(4) << "Atom " << Walker->Name << "/" << Walker->nr << " with " << NumberOfBondsPerAtom[Walker->nr] << " bonds: "; 966 TotalDegree = 0; 967 for (int j=0;j<NumberOfBondsPerAtom[Walker->nr];j++) { 968 *out << *ListOfBondsPerAtom[Walker->nr][j] << "\t"; 969 TotalDegree += ListOfBondsPerAtom[Walker->nr][j]->BondDegree; 970 } 971 *out << " -- TotalDegree: " << TotalDegree << endl; 972 } 956 ActOnAllAtoms( &atom::OutputBondOfAtom, out, NumberOfBondsPerAtom, ListOfBondsPerAtom ); 957 973 958 *out << Verbose(1) << "End of Creating ListOfBondsPerAtom." << endl << endl; 974 959 }; 975 976 960 977 961 /** Blows the 6-dimensional \a cell_size array up to a full NDIM by NDIM matrix.
Note:
See TracChangeset
for help on using the changeset viewer.
