source: src/Jobs/MPQCJob.hpp@ 88bb6b

Last change on this file since 88bb6b was 6ff62c, checked in by Frederik Heber <heber@…>, 13 years ago

Added DoValenceOnly has new option to FragmentationAutomationAction.

  • this carries over to MPQCData, MPQCJob, MPQCFragmentController, and VMGFragmentController, that need to pass on the option.
  • Changes to MPQCData have been caught by increasing serialization version.
  • TESTFIX: Redid files for regression test AnalyseFragmentResults.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 * MPQCJob.hpp
3 *
4 * Created on: Jul 10, 2012
5 * Author: heber
6 */
7
8#ifndef MPQCJOB_HPP_
9#define MPQCJOB_HPP_
10
11
12// include config.h
13#ifdef HAVE_CONFIG_H
14#include <config.h>
15#endif
16
17#include "boost/serialization/export.hpp"
18
19#include "JobMarket/Jobs/FragmentJob.hpp"
20
21#include "Fragmentation/Summation/SetValues/SamplingGridProperties.hpp"
22#include "Fragmentation/Summation/Containers/MPQCData.hpp"
23
24#include <string>
25
26/** This class encapsulates a MPQC Job.
27 *
28 */
29class MPQCJob : public FragmentJob
30{
31public:
32 MPQCJob(
33 const JobId_t _JobId,
34 const std::string &_inputfile,
35 const double _begin[3],
36 const double _end[3],
37 const int _level);
38 virtual ~MPQCJob();
39
40 FragmentResult::ptr Work();
41
42 //!> whether to actually sample the density
43 MPQCData::DoLongrange_t DoLongrange;
44
45 //!> whether to sample just the valence or the total electron and nuclei density
46 MPQCData::DoValenceOnly_t DoValenceOnly;
47
48private:
49 //!> contents of inputfile
50 const std::string inputfile;
51 //!> information for how to sample the density
52 const SamplingGridProperties grid;
53
54private:
55 /** private default cstor for serialization only
56 */
57 MPQCJob();
58
59 friend class boost::serialization::access;
60 // serialization
61 template <typename Archive>
62 void serialize(Archive& ar, const unsigned int version)
63 {
64 ar & boost::serialization::base_object<FragmentJob>(*this);
65 ar & DoLongrange;
66 ar & DoValenceOnly;
67 ar & const_cast<std::string &>(inputfile);
68 ar & const_cast<SamplingGridProperties &>(grid);
69 }
70};
71
72// we need to give this class a unique key for serialization
73// its is only serialized through its base class FragmentJob
74BOOST_CLASS_EXPORT_KEY(MPQCJob)
75
76#endif /* MPQCJOB_HPP_ */
Note: See TracBrowser for help on using the repository browser.