Changes in src/Parser/TremoloParser.cpp [e97a44:d74077]
- File:
-
- 1 edited
-
src/Parser/TremoloParser.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TremoloParser.cpp
re97a44 rd74077 9 9 10 10 #include "Helpers/Assert.hpp" 11 #include "Helpers/Log.hpp"12 #include "Helpers/Verbose.hpp"13 11 #include "TremoloParser.hpp" 14 12 #include "World.hpp" … … 23 21 24 22 using namespace std; 23 using namespace boost; 25 24 26 25 /** … … 100 99 */ 101 100 void TremoloParser::save(ostream* file) { 102 DoLog(0) && (Log() << Verbose(0) << "Saving changes to tremolo." << std::endl);103 104 101 vector<atom*>::iterator atomIt; 105 102 vector<string>::iterator it; … … 143 140 case TremoloKey::x : 144 141 // for the moment, assume there are always three dimensions 145 *file << currentAtom-> x[0]<< "\t";146 *file << currentAtom-> x[1]<< "\t";147 *file << currentAtom-> x[2]<< "\t";142 *file << currentAtom->at(0) << "\t"; 143 *file << currentAtom->at(1) << "\t"; 144 *file << currentAtom->at(2) << "\t"; 148 145 break; 149 146 case TremoloKey::u : 150 147 // for the moment, assume there are always three dimensions 151 *file << currentAtom-> v[0] << "\t";152 *file << currentAtom-> v[1] << "\t";153 *file << currentAtom-> v[2] << "\t";148 *file << currentAtom->AtomicVelocity[0] << "\t"; 149 *file << currentAtom->AtomicVelocity[1] << "\t"; 150 *file << currentAtom->AtomicVelocity[2] << "\t"; 154 151 break; 155 152 case TremoloKey::Type : … … 228 225 string word; 229 226 int oldId; 227 double tmp; 230 228 231 229 lineStream << line; … … 235 233 case TremoloKey::x : 236 234 // for the moment, assume there are always three dimensions 237 lineStream >> newAtom->x[0]; 238 lineStream >> newAtom->x[1]; 239 lineStream >> newAtom->x[2]; 235 for (int i=0;i<NDIM;i++) { 236 lineStream >> tmp; 237 newAtom->set(i, tmp); 238 } 240 239 break; 241 240 case TremoloKey::u : 242 241 // for the moment, assume there are always three dimensions 243 lineStream >> newAtom-> v[0];244 lineStream >> newAtom-> v[1];245 lineStream >> newAtom-> v[2];242 lineStream >> newAtom->AtomicVelocity[0]; 243 lineStream >> newAtom->AtomicVelocity[1]; 244 lineStream >> newAtom->AtomicVelocity[2]; 246 245 break; 247 246 case TremoloKey::Type :
Note:
See TracChangeset
for help on using the changeset viewer.
