Update upstream source from tag 'upstream/1.6.4'
Update to upstream version '1.6.4'
with Debian dir 629a020139ca57aa6414c94a5d657793f8060af4
Nicholas Breen
3 years ago
0 | *~ | |
1 | Makefile | |
2 | ||
3 | libvotca*.a | |
4 | libvotca*.so | |
5 | libvotca*.so.* | |
6 | ||
7 | share/doc/html | |
8 | share/doc/Doxyfile | |
9 | ||
10 | include/votca/xtp/votca_config.h | |
11 | src/libxtp/gitversion.h | |
12 | include/votca/xtp/votca_config.h | |
13 | ||
14 | src/tools/xtp_dump | |
15 | src/tools/xtp_parallel | |
16 | src/tools/xtp_map | |
17 | src/tools/xtp_run | |
18 | src/tools/xtp_tools | |
19 | src/tools/xtp_overlap | |
20 | src/tools/xtp_kmc_run | |
21 | src/dipro/*.mod | |
22 | src/dipro/*.x | |
23 | src/tools/*.man | |
24 | ||
25 | scripts/xtp_dipro.out | |
26 | scripts/xtp_dipro | |
27 | scripts/xtp_update | |
28 | scripts/xtp_update.out | |
29 | scripts/xtp_testsuite | |
30 | scripts/xtp_testsuite.out | |
31 | scripts/xtp_update_exciton | |
32 | scripts/xtp_update_exciton.out | |
33 | scripts/xtp_basisset | |
34 | scripts/xtp_basisset.out | |
35 | scripts/xtp_makeauxbasis | |
36 | scripts/xtp_makeauxbasis.out | |
37 | ||
38 | netbeans | |
39 | .dep.inc | |
40 | */nbproject/private | |
41 | ||
42 | CMakeFiles | |
43 | cmake_install.cmake | |
44 | CMakeCache.txt | |
45 | install_manifest.txt | |
46 | ||
47 | /build |
0 | 0 | For more detailed information about the changes see the history of the |
1 | 1 | [repository](https://github.com/votca/xtp/commits/master). |
2 | ||
3 | ## Version 1.6.4 (released 12.01.21) | |
4 | * fix build on openSUSE (#622) | |
5 | * Refactored logger (#625) | |
2 | 6 | |
3 | 7 | ## Version 1.6.3 (released 09.12.20) |
4 | 8 | * switch to ghcr.io for CI (#555) |
1 | 1 | project(votca-xtp) |
2 | 2 | |
3 | 3 | |
4 | set(PROJECT_VERSION "1.6.3") | |
4 | set(PROJECT_VERSION "1.6.4") | |
5 | 5 | set(PROJECT_CONTACT "bugs@votca.org") |
6 | 6 | string(REGEX REPLACE "^[1-9]+\\.([1-9]+).*$" "\\1" SOVERSION "${PROJECT_VERSION}") |
7 | 7 | if (NOT ${SOVERSION} MATCHES "[1-9]+") |
41 | 41 | /* |
42 | 42 | * Custom buffer to store messages |
43 | 43 | */ |
44 | class LogBuffer : public std::stringbuf { | |
44 | class LogBuffer final : public std::stringbuf { | |
45 | 45 | |
46 | 46 | public: |
47 | 47 | LogBuffer() : std::stringbuf() { _LogLevel = Log::current_level; } |
104 | 104 | bool _writePreface = true; |
105 | 105 | |
106 | 106 | protected: |
107 | int sync() override { | |
107 | int sync() { | |
108 | 108 | |
109 | 109 | std::ostringstream _message; |
110 | 110 | |
164 | 164 | } |
165 | 165 | |
166 | 166 | public: |
167 | Logger() : std::ostream(new LogBuffer()), _ReportLevel(Log::current_level) { | |
167 | Logger() : std::ostream(&_buffer), _ReportLevel(Log::current_level) { | |
168 | 168 | setMultithreading(_maverick); |
169 | 169 | } |
170 | 170 | Logger(Log::Level ReportLevel) |
171 | : std::ostream(new LogBuffer()), _ReportLevel(ReportLevel) { | |
171 | : std::ostream(&_buffer), _ReportLevel(ReportLevel) { | |
172 | 172 | setMultithreading(_maverick); |
173 | 173 | } |
174 | 174 | |
175 | ~Logger() final { | |
176 | delete rdbuf(); | |
177 | rdbuf(nullptr); | |
178 | } | |
179 | ||
180 | 175 | Logger &operator()(Log::Level LogLevel) { |
181 | dynamic_cast<LogBuffer *>(rdbuf())->setLogLevel(LogLevel); | |
176 | _buffer.setLogLevel(LogLevel); | |
182 | 177 | return *this; |
183 | 178 | } |
184 | 179 | |
185 | 180 | void setReportLevel(Log::Level ReportLevel) { _ReportLevel = ReportLevel; } |
186 | 181 | void setMultithreading(bool maverick) { |
187 | 182 | _maverick = maverick; |
188 | dynamic_cast<LogBuffer *>(rdbuf())->setMultithreading(_maverick); | |
183 | _buffer.setMultithreading(_maverick); | |
189 | 184 | } |
190 | 185 | bool isMaverick() const { return _maverick; } |
191 | 186 | |
192 | 187 | Log::Level getReportLevel() const { return _ReportLevel; } |
193 | 188 | |
194 | 189 | void setPreface(Log::Level level, const std::string &preface) { |
195 | dynamic_cast<LogBuffer *>(rdbuf())->setPreface(level, preface); | |
190 | _buffer.setPreface(level, preface); | |
196 | 191 | } |
197 | 192 | |
198 | 193 | void setCommonPreface(const std::string &preface) { |
202 | 197 | setPreface(Log::warning, preface); |
203 | 198 | } |
204 | 199 | |
205 | void EnablePreface() { dynamic_cast<LogBuffer *>(rdbuf())->EnablePreface(); } | |
206 | ||
207 | void DisablePreface() { | |
208 | dynamic_cast<LogBuffer *>(rdbuf())->DisablePreface(); | |
209 | } | |
200 | void EnablePreface() { _buffer.EnablePreface(); } | |
201 | ||
202 | void DisablePreface() { _buffer.DisablePreface(); } | |
210 | 203 | |
211 | 204 | private: |
205 | LogBuffer _buffer; | |
212 | 206 | // at what level of detail output messages |
213 | 207 | Log::Level _ReportLevel = Log::error; |
214 | 208 | |
215 | 209 | // if true, only a single processor job is executed |
216 | 210 | bool _maverick = false; |
217 | 211 | |
218 | std::string Messages() { | |
219 | return dynamic_cast<LogBuffer *>(rdbuf())->Messages(); | |
220 | } | |
212 | std::string Messages() { return _buffer.Messages(); } | |
221 | 213 | }; |
222 | 214 | |
223 | 215 | /** |
22 | 22 | #include "votca/xtp/qmmolecule.h" |
23 | 23 | #include <boost/filesystem.hpp> |
24 | 24 | #include <boost/format.hpp> |
25 | #include <iomanip> | |
25 | 26 | #include <vector> |
26 | 27 | #include <votca/tools/constants.h> |
27 | 28 | #include <votca/tools/elements.h> |
17 | 17 | */ |
18 | 18 | |
19 | 19 | #include "votca/xtp/eeinteractor.h" |
20 | #include <iomanip> | |
20 | 21 | #include <numeric> |
21 | 22 | #include <votca/xtp/dipoledipoleinteraction.h> |
22 | 23 | #include <votca/xtp/polarregion.h> |
20 | 20 | #include <boost/algorithm/string.hpp> |
21 | 21 | #include <boost/filesystem.hpp> |
22 | 22 | #include <boost/format.hpp> |
23 | #include <iomanip> | |
23 | 24 | #include <votca/tools/filesystem.h> |
24 | 25 | #include <votca/tools/getline.h> |
25 | 26 | #include <votca/xtp/ecpaobasis.h> |
15 | 15 | */ |
16 | 16 | |
17 | 17 | #include "apdft.h" |
18 | #include <iomanip> | |
18 | 19 | #include <votca/xtp/density_integration.h> |
19 | 20 | #include <votca/xtp/orbitals.h> |
20 | 21 | #include <votca/xtp/vxc_grid.h> |
1 | 1 | |
2 | 2 | project(xtp-tutorials) |
3 | 3 | |
4 | set(PROJECT_VERSION "1.6.3") | |
4 | set(PROJECT_VERSION "1.6.4") | |
5 | 5 | |
6 | 6 | set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules) |
7 | 7 | include(GNUInstallDirs) |
0 | <options> | |
1 | <molpol help="Molecular polarizability calculator (and optimizer)" label="tool:molpol"> | |
2 | <mpsfiles> | |
3 | <input help="mps input file">CH4_i.mps</input> | |
4 | <output help="mps output file">CH4_i.mps</output> | |
5 | <polar help="xml file with infos on polarizability tensor">output.xml</polar> | |
6 | </mpsfiles> | |
7 | <induction> | |
8 | <expdamp help="Thole sharpness parameter">0.39000</expdamp> | |
9 | <wSOR help="mixing factor for convergence">0.35000</wSOR> | |
10 | <maxiter help="maximum number of iterations">1024</maxiter> | |
11 | <tolerance help="rel. tolerance for induced moments">0.00001</tolerance> | |
12 | </induction> | |
13 | <target> | |
14 | <optimize help="if 'true', refine atomic polarizabilities to match molecular polarizable volume specified in target.molpol">true</optimize> | |
15 | <molpol help="target polarizability tensor in format xx xy xz yy yz zz (this should be in the eigen-frame, hence xy = xz = yz = 0), if optimize=true the associated polarizable volume will be matched iteratively and the resulting set of polar sites written to mpsfiles.output">2.3191 0.0 0.0 2.3199 0.0 2.3204</molpol> | |
16 | <tolerance help="relative tolerance when optimizing the polarizable volume">0.00001</tolerance> | |
17 | </target> | |
18 | </molpol> | |
19 | </options> |
0 | <options> | |
1 | <molpol help="Molecular polarizability calculator (and optimizer)" label="tool:molpol"> | |
2 | <mpsfiles> | |
3 | <input help="mps input file">CH4_h.mps</input> | |
4 | <output help="mps output file">CH4_h.mps</output> | |
5 | <polar help="xml file with infos on polarizability tensor">output.xml</polar> | |
6 | </mpsfiles> | |
7 | <induction> | |
8 | <expdamp help="Thole sharpness parameter">0.39000</expdamp> | |
9 | <wSOR help="mixing factor for convergence">0.35000</wSOR> | |
10 | <maxiter help="maximum number of iterations">1024</maxiter> | |
11 | <tolerance help="rel. tolerance for induced moments">0.00001</tolerance> | |
12 | </induction> | |
13 | <target> | |
14 | <optimize help="if 'true', refine atomic polarizabilities to match molecular polarizable volume specified in target.molpol">true</optimize> | |
15 | <molpol help="target polarizability tensor in format xx xy xz yy yz zz (this should be in the eigen-frame, hence xy = xz = yz = 0), if optimize=true the associated polarizable volume will be matched iteratively and the resulting set of polar sites written to mpsfiles.output">1.4451 0.0 0.0 2.0267 0.0 2.0267</molpol> | |
16 | <tolerance help="relative tolerance when optimizing the polarizable volume">0.00001</tolerance> | |
17 | </target> | |
18 | </molpol> | |
19 | </options> |
0 | <options> | |
1 | <molpol help="Molecular polarizability calculator (and optimizer)" label="tool:molpol"> | |
2 | <mpsfiles> | |
3 | <input help="mps input file">CH4_n.mps</input> | |
4 | <output help="mps output file">CH4_n.mps</output> | |
5 | <polar help="xml file with infos on polarizability tensor">output.xml</polar> | |
6 | </mpsfiles> | |
7 | <induction> | |
8 | <expdamp help="Thole sharpness parameter">0.39000</expdamp> | |
9 | <wSOR help="mixing factor for convergence">0.35000</wSOR> | |
10 | <maxiter help="maximum number of iterations">1024</maxiter> | |
11 | <tolerance help="rel. tolerance for induced moments">0.00001</tolerance> | |
12 | </induction> | |
13 | <target> | |
14 | <optimize help="if 'true', refine atomic polarizabilities to match molecular polarizable volume specified in target.molpol">true</optimize> | |
15 | <molpol help="target polarizability tensor in format xx xy xz yy yz zz (this should be in the eigen-frame, hence xy = xz = yz = 0), if optimize=true the associated polarizable volume will be matched iteratively and the resulting set of polar sites written to mpsfiles.output">2.3191 0.0 0.0 2.3199 0.0 2.3204</molpol> | |
16 | <tolerance help="relative tolerance when optimizing the polarizable volume">0.00001</tolerance> | |
17 | </target> | |
18 | </molpol> | |
19 | </options> |