82 std::unique_ptr<QMPackage> qmpackage =
85 qmpackage->setLog(&
log_);
87 qmpackage->setRunDir(
".");
88 Orbitals orbitalsA, orbitalsB, orbitalsAB;
90 qmpackage->setLogFileName(
logA_);
91 bool parse_logA_status = qmpackage->ParseLogFile(orbitalsA);
92 if (!parse_logA_status) {
94 <<
"Failed to read log of molecule A" << std::flush;
97 qmpackage->setLogFileName(
logB_);
98 bool parse_logB_status = qmpackage->ParseLogFile(orbitalsB);
99 if (!parse_logB_status) {
101 <<
"Failed to read log of molecule B" << std::flush;
104 qmpackage->setLogFileName(
logAB_);
105 bool parse_logAB_status = qmpackage->ParseLogFile(orbitalsAB);
106 if (!parse_logAB_status) {
108 <<
"Failed to read log of molecule AB" << std::flush;
111 qmpackage->setMOsFileName(
MOsA_);
112 bool parse_orbitalsA_status = qmpackage->ParseMOsFile(orbitalsA);
113 if (!parse_orbitalsA_status) {
115 <<
"Failed to read orbitals of molecule A" << std::flush;
118 qmpackage->setMOsFileName(
MOsB_);
119 bool parse_orbitalsB_status = qmpackage->ParseMOsFile(orbitalsB);
120 if (!parse_orbitalsB_status) {
122 <<
"Failed to read orbitals of molecule B" << std::flush;
125 qmpackage->setMOsFileName(
MOsAB_);
126 bool parse_orbitalsAB_status = qmpackage->ParseMOsFile(orbitalsAB);
127 if (!parse_orbitalsAB_status) {
129 <<
"Failed to read orbitals of dimer AB" << std::flush;
143 dftcoupling.
Addoutput(pair_summary, orbitalsA, orbitalsB);