|
2 | 2 | /*
|
3 | 3 | * PCMSolver, an API for the Polarizable Continuum Model
|
4 | 4 | * Copyright (C) 2013-2016 Roberto Di Remigio, Luca Frediani and contributors
|
5 |
| - * |
| 5 | + * |
6 | 6 | * This file is part of PCMSolver.
|
7 |
| - * |
| 7 | + * |
8 | 8 | * PCMSolver is free software: you can redistribute it and/or modify
|
9 | 9 | * it under the terms of the GNU Lesser General Public License as published by
|
10 | 10 | * the Free Software Foundation, either version 3 of the License, or
|
11 | 11 | * (at your option) any later version.
|
12 |
| - * |
| 12 | + * |
13 | 13 | * PCMSolver is distributed in the hope that it will be useful,
|
14 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16 | 16 | * GNU Lesser General Public License for more details.
|
17 |
| - * |
| 17 | + * |
18 | 18 | * You should have received a copy of the GNU Lesser General Public License
|
19 | 19 | * along with PCMSolver. If not, see <http://www.gnu.org/licenses/>.
|
20 |
| - * |
| 20 | + * |
21 | 21 | * For information on the complete list of contributors to the
|
22 | 22 | * PCMSolver API, see: <http://pcmsolver.readthedocs.io/>
|
23 | 23 | */
|
|
27 | 27 |
|
28 | 28 | #include "Config.hpp"
|
29 | 29 |
|
| 30 | +#include <Eigen/Cholesky> |
30 | 31 | #include <Eigen/Core>
|
31 | 32 | #include <Eigen/LU>
|
32 | 33 |
|
@@ -104,7 +105,7 @@ inline Eigen::MatrixXd anisotropicIEFMatrix(const Cavity & cav, const IGreensFun
|
104 | 105 | TIMER_OFF("Assemble T matrix");
|
105 | 106 |
|
106 | 107 | TIMER_ON("Assemble R matrix");
|
107 |
| - Eigen::MatrixXd R = ((2 * M_PI * Id - DE * a) - SE * SI.ldlt().solve((2 * M_PI * Id - DI * a))); |
| 108 | + Eigen::MatrixXd R = ((2 * M_PI * Id - DE * a) - SE * SI.llt().solve((2 * M_PI * Id - DI * a))); |
108 | 109 | TIMER_OFF("Assemble R matrix");
|
109 | 110 |
|
110 | 111 | TIMER_ON("Assemble T^-1R matrix");
|
@@ -312,7 +313,7 @@ inline Eigen::MatrixXd anisotropicRinfinity(const Cavity & cav, const IGreensFun
|
312 | 313 | Eigen::MatrixXd Id = Eigen::MatrixXd::Identity(cavitySize, cavitySize);
|
313 | 314 |
|
314 | 315 | // Form R
|
315 |
| - return ((2 * M_PI * Id - DE * a) - SE * SI.ldlt().solve((2 * M_PI * Id - DI * a))); |
| 316 | + return ((2 * M_PI * Id - DE * a) - SE * SI.llt().solve((2 * M_PI * Id - DI * a))); |
316 | 317 | }
|
317 | 318 |
|
318 | 319 | /*! \brief Builds the **isotropic** \f$ \mathbf{R}_\infty \f$ matrix
|
|
0 commit comments