Ignore:
Timestamp:
Jul 12, 2017, 7:12:47 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Action_Thermostats, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Exclude_Hydrogens_annealWithBondGraph, Fix_Verbose_Codepatterns, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PythonUI_with_named_parameters, Recreated_GuiChecks, StoppableMakroAction, TremoloParser_IncreasedPrecision
Children:
6c2ae0, 780f25
Parents:
9a1e099
git-author:
Frederik Heber <frederik.heber@…> (07/12/17 15:08:55)
git-committer:
Frederik Heber <frederik.heber@…> (07/12/17 19:12:47)
Message:

FIX: FragmentResultsContainer is no longer purged during run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/regression/DiffFragmentResultContainer.cpp

    r9a1e099 rd86d97  
    7676  }
    7777
     78  FragmentationResultContainer &results = FragmentationResultContainer::getInstance();
    7879  // deserialize and compare
    7980  // Note that because FragmentationResultContainer is a singleton, we cannot
     
    8384  std::stringstream outfile1;
    8485  std::stringstream outfile2;
    85   FragmentationResultContainer::purgeInstance();
     86  results.clear();
    8687  {
    8788    std::ifstream infile(filenames[0].string().c_str());
    88     FragmentationResultContainer &results = FragmentationResultContainer::getInstance();
    8989    boost::archive::text_iarchive ia(infile);
    9090    boost::archive::text_oarchive oa(outfile1);
     
    9292    oa << results;
    9393  }
    94   FragmentationResultContainer::purgeInstance();
     94  results.clear();
    9595  {
    9696    std::ifstream infile(filenames[1].string().c_str());
    97     FragmentationResultContainer &results = FragmentationResultContainer::getInstance();
    9897    boost::archive::text_iarchive ia(infile);
    9998    boost::archive::text_oarchive oa(outfile2);
Note: See TracChangeset for help on using the changeset viewer.