- Timestamp:
- Mar 2, 2017, 2:01:50 PM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
- Children:
- 290c8e
- Parents:
- dfeb7c
- git-author:
- Frederik Heber <heber@…> (02/20/17 09:46:50)
- git-committer:
- Frederik Heber <heber@…> (03/02/17 14:01:50)
- Location:
- src/Jobs
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Jobs/MPQCJob.cpp
rdfeb7c rcb98f1 45 45 46 46 #include <limits> 47 #include <sstream>48 47 49 48 #include "CodePatterns/Assert.hpp" … … 84 83 {} 85 84 86 FragmentResult::ptr MPQCJob::Work()87 {88 // instantiate empty data89 const MPQCData data;90 std::stringstream returnstream;91 boost::archive::text_oarchive oa(returnstream);92 oa << data;93 94 // create the result95 FragmentResult::ptr ptr( new FragmentResult(getId(), returnstream.str()) );96 if (data.desired_accuracy != 0.) {97 ptr->exitflag = data.accuracy < data.desired_accuracy ? 0 : 1;98 if (ptr->exitflag != 0)99 ELOG(1, "Job #" << ptr->getId() << " failed to reach desired accuracy.");100 } else {101 LOG(3, "INFO: No precision returned from MPQC job, not checking.");102 }103 104 return ptr;105 }106 107 85 // we need to explicitly instantiate the serialization functions as 108 86 // its is only serialized through its base class FragmentJob -
src/Jobs/Makefile.am
rdfeb7c rcb98f1 55 55 endif 56 56 57 lib_LTLIBRARIES += libMolecuilderJobs.la 57 lib_LTLIBRARIES += \ 58 libMolecuilderJobs.la 59 noinst_LTLIBRARIES += \ 60 libMolecuilderJobs_Work.la 58 61 libMolecuilderJobs_la_includedir = $(includedir)/MoleCuilder/ 59 62 nobase_libMolecuilderJobs_la_include_HEADERS = $(JOBSHEADER) 60 63 libMolecuilderJobs_la_CPPFLAGS = $(AM_CPPFLAGS) ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${JobMarket_CFLAGS} -Dvmg_float=double -Dvmg_int=int $(VMG_CFLAGS) 64 libMolecuilderJobs_Work_la_CPPFLAGS = $(AM_CPPFLAGS) ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${JobMarket_CFLAGS} -Dvmg_float=double -Dvmg_int=int $(VMG_CFLAGS) 61 65 libMolecuilderJobs_la_LDFLAGS = $(AM_LDFLAGS) \ 62 66 $(BOOST_IOSTREAMS_LDFLAGS) \ 63 67 $(BOOST_SERIALIZATION_LDFLAGS) \ 64 68 $(BOOST_SYSTEM_LDFLAGS) 69 libMolecuilderJobs_Work_la_LDFLAGS = $(AM_LDFLAGS) 65 70 if CONDJOBMARKET 66 71 libMolecuilderJobs_la_LDFLAGS += \ 72 $(JobMarket_LDFLAGS) 73 libMolecuilderJobs_Work_la_LDFLAGS += \ 67 74 $(JobMarket_LDFLAGS) 68 75 endif … … 83 90 if CONDJOBMARKET 84 91 libMolecuilderJobs_la_LIBADD += \ 92 $(JobMarket_LIBS) 93 libMolecuilderJobs_Work_la_LIBADD = \ 85 94 $(JobMarket_LIBS) 86 95 endif … … 105 114 ## which are already listed elsewhere in a _HEADERS variable assignment. 106 115 libMolecuilderJobs_la_SOURCES = $(JOBSSOURCE) 116 libMolecuilderJobs_Work_la_SOURCES = Jobs/MPQCJob_Work.cpp 107 117 108 118 ## Instruct libtool to include ABI version information in the generated shared -
src/Jobs/unittests/Makefile.am
rdfeb7c rcb98f1 20 20 ../libMolecuilder.la \ 21 21 ../libMolecuilderJobs.la \ 22 ../libMolecuilderJobs_Work.la \ 22 23 ../libMolecuilderFragmentationContainers.la \ 23 24 ../libMolecuilderFragmentationSummation.la \
Note:
See TracChangeset
for help on using the changeset viewer.