Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
DatabaseJobSubmissionHelper.h
Go to the documentation of this file.
1 
8 #ifndef MMPARAMETRIZATION_DATABASEJOBSUBMISSIONHELPER_H
9 #define MMPARAMETRIZATION_DATABASEJOBSUBMISSIONHELPER_H
10 
11 #include <memory>
12 #include <unordered_set>
13 #include <vector>
14 
15 namespace Scine {
16 
17 namespace Utils {
18 class Settings;
19 } // namespace Utils
20 
21 namespace Database {
22 class ID;
23 class Collection;
24 class Calculation;
25 } // namespace Database
26 
27 namespace MMParametrization {
28 struct ParametrizationData;
29 
30 namespace DatabaseJobSubmissionHelper {
31 
43 void submitStructureOptimization(int fragmentIndex, std::shared_ptr<Database::Collection> calcsColl,
44  std::string structureIDString, int priority, const std::string& orderName,
45  const ParametrizationData& data, const Utils::Settings& settings);
46 
58 void submitBondOrdersCalculation(int fragmentIndex, std::shared_ptr<Database::Collection> calcsColl,
59  std::string structureIDString, int priority, const std::string& orderName,
60  const ParametrizationData& data, const Utils::Settings& settings);
61 
79 bool submitHessianCalculation(int fragmentIndex, std::shared_ptr<Database::Collection> calcsColl,
80  std::string unoptimizedStructureIDString, std::string optimizedStructureIDString, int priority,
81  const std::string& orderName, const ParametrizationData& data, const Utils::Settings& settings,
82  const std::unordered_set<int>& fragmentsWithHessianCalculationsInDatabase);
100 bool submitAtomicChargesCalculation(int fragmentIndex, std::shared_ptr<Database::Collection> calcsColl,
101  std::string unoptimizedStructureIDString, std::string optimizedStructureIDString,
102  int priority, const std::string& orderName, const ParametrizationData& data,
103  const Utils::Settings& settings,
104  const std::unordered_set<int>& fragmentsWithAtomicChargesCalculationsInDatabase);
105 
109 void applyScfSafetySettings(Database::Calculation& calculation, const Utils::Settings& settings);
110 
111 } // namespace DatabaseJobSubmissionHelper
112 } // namespace MMParametrization
113 } // namespace Scine
114 
115 #endif // MMPARAMETRIZATION_DATABASEJOBSUBMISSIONHELPER_H