Changeset 0f9eb0
- Timestamp:
- Apr 23, 2021, 8:51:43 PM (5 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- d951a5
- Parents:
- 49874c
- git-author:
- Frederik Heber <frederik.heber@…> (11/27/20 20:25:21)
- git-committer:
- Frederik Heber <frederik.heber@…> (04/23/21 20:51:43)
- Location:
- src
- Files:
-
- 5 edited
-
Element/periodentafel.cpp (modified) (2 diffs)
-
Filling/Inserter/RandomInserter.cpp (modified) (1 diff)
-
Fragmentation/Graph.cpp (modified) (2 diffs)
-
Fragmentation/MatrixContainer.cpp (modified) (2 diffs)
-
UIElements/Views/Qt4/QtToolBar_QtFavoriteActions.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Element/periodentafel.cpp
r49874c r0f9eb0 695 695 strncat(filename, STANDARDELEMENTSDB, MAXSTRINGSIZE-strlen(filename)); 696 696 f.open(filename); 697 if (f != NULL) {697 if (f.good()) { 698 698 f << header1 << endl; 699 699 f << header2 << endl; … … 703 703 f.close(); 704 704 return true; 705 } else706 return result;705 } 706 return result; 707 707 }; 708 708 -
src/Filling/Inserter/RandomInserter.cpp
r49874c r0f9eb0 221 221 std::vector<Vector> RandomAtomTranslations(atoms.size(), zeroVec); 222 222 std::generate_n(RandomAtomTranslations.begin(), atoms.size(), 223 boost::bind(&RandomInserter::getRandomVector, boost::cref(this), MaxAtomComponent, -MaxAtomComponent));223 boost::bind(&RandomInserter::getRandomVector, this, MaxAtomComponent, -MaxAtomComponent)); 224 224 225 225 // apply! -
src/Fragmentation/Graph.cpp
r49874c r0f9eb0 182 182 sprintf(filename, "%s/%s%s", path, FRAGMENTPREFIX, TEFACTORSFILE); 183 183 InputFile.open(filename); 184 if (InputFile != NULL) {184 if (InputFile.good()) { 185 185 // 3. add found TEFactors to each keyset 186 186 NumberOfFragments = 0; … … 225 225 output.open(line.c_str(), ios::out); 226 226 LOG(1, "INFO: Saving TEFactors of the total graph ... "); 227 if(output != NULL) {227 if(output.good()) { 228 228 for(Graph::const_iterator runner = begin(); runner != end(); runner++) 229 229 output << (*runner).second.second << endl; -
src/Fragmentation/MatrixContainer.cpp
r49874c r0f9eb0 492 492 delete[](FragmentNumber); 493 493 output.open(line.str().c_str(), ios::out); 494 if ( output == NULL) {494 if (!output.good()) { 495 495 ELOG(0, "MatrixContainer::WriteTotalFragments: Unable to open output energy file " << line.str() << "!"); 496 496 performCriticalExit(); … … 522 522 line << name << prefix << suffix; 523 523 output.open(line.str().c_str(), ios::out); 524 if (output == NULL) {524 if (output.eof()) { 525 525 ELOG(0, "MatrixContainer::WriteLastMatrix: Unable to open output matrix file " << line.str() << "!"); 526 526 performCriticalExit(); -
src/UIElements/Views/Qt4/QtToolBar_QtFavoriteActions.cpp
r49874c r0f9eb0 62 62 LastActionCalled( 63 63 ActionQueue::getPointer(), 64 boost::bind(&QtToolBar::QtFavoriteActions::updateQueuedAction, boost::cref(this)),64 boost::bind(&QtToolBar::QtFavoriteActions::updateQueuedAction, this), 65 65 "QtFavoriteActions_QueuedAction", 66 66 std::string(""),
Note:
See TracChangeset
for help on using the changeset viewer.
