Ignore:
Timestamp:
May 5, 2016, 5:14:19 PM (10 years ago)
Author:
Frederik Heber <heber@…>
Children:
94605f
Parents:
9274f3
git-author:
Frederik Heber <heber@…> (05/05/16 14:25:00)
git-committer:
Frederik Heber <heber@…> (05/05/16 17:14:19)
Message:

Replace const_cast'd World::getInstance() by getConstInstance().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/FragmentationAction/AnalyseFragmentationResultsAction.cpp

    r9274f3 r4a319a  
    646646
    647647  // adding obtained forces
    648   if ( const_cast<const World &>(World::getInstance()).getAllAtoms().size() != 0) {
     648  if ( World::getConstInstance().getAllAtoms().size() != 0) {
    649649    const IndexedVectors::indexedvectors_t shortrange_forces =
    650650        boost::fusion::at_key<MPQCDataFused::forces>(
     
    658658#if defined(HAVE_JOBMARKET) && defined(HAVE_VMG)
    659659  if (DoLongrange) {
    660     if ( const_cast<const World &>(World::getInstance()).getAllAtoms().size() == 0) {
     660    if ( World::getConstInstance().getAllAtoms().size() == 0) {
    661661      STATUS("Please load the full molecule into std::map<JobId_t, VMGData> longrangeData the world before starting this action.");
    662662      return Action::failure;
     
    688688
    689689    // add long-range forces
    690     if ( const_cast<const World &>(World::getInstance()).getAllAtoms().size() != 0) {
     690    if ( World::getConstInstance().getAllAtoms().size() != 0) {
    691691      const IndexedVectors::indexedvectors_t longrange_forces =
    692692          boost::fusion::at_key<VMGDataFused::forces_longrange>(
Note: See TracChangeset for help on using the changeset viewer.