Changes in src/datacreator.cpp [cc2ee5:fb9364]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/datacreator.cpp
-
Property mode
changed from
100755
to100644
rcc2ee5 rfb9364 22 22 name << dir << "/" << filename; 23 23 output.open(name.str().c_str(), ios::out); 24 if (output == NULL) {25 cout << "Unable to open " << name.str() << " for writing, is directory correct?" << endl;26 return false;27 }28 return true;29 };30 31 /** Opens a file for appending with \a *filename in \a *dir.32 * \param output file handle on return33 * \param *dir directory34 * \param *filename name of file35 * \return true if file has been opened36 */37 bool AppendOutputFile(ofstream &output, const char *dir, const char *filename)38 {39 stringstream name;40 name << dir << "/" << filename;41 output.open(name.str().c_str(), ios::app);42 24 if (output == NULL) { 43 25 cout << "Unable to open " << name.str() << " for writing, is directory correct?" << endl; … … 204 186 Fragments.SumSubForces(Fragments, KeySet, BondOrder, -1.); 205 187 // errors per atom 206 output << endl <<"#Order\t" << BondOrder+1 << endl;188 output << "#Order\t" << BondOrder+1 << endl; 207 189 for(int j=0;j<Fragments.RowCounter[ Fragments.MatrixCounter ];j++) { 208 190 output << Fragments.Indices[Fragments.MatrixCounter][j] << "\t"; … … 249 231 Fragments.SumSubForces(Fragments, KeySet, BondOrder, 1.); 250 232 // errors per atom 251 output << endl <<"#Order\t" << BondOrder+1 << endl;233 output << "#Order\t" << BondOrder+1 << endl; 252 234 for(int j=0;j<Fragments.RowCounter[ Fragments.MatrixCounter ];j++) { 253 235 output << Fragments.Indices[Fragments.MatrixCounter][j] << "\t"; -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.