22/*
33 * PCMSolver, an API for the Polarizable Continuum Model
44 * Copyright (C) 2013 Roberto Di Remigio, Luca Frediani and contributors
5- *
5+ *
66 * This file is part of PCMSolver.
7- *
8- * PCMSolver is free software: you can redistribute it and/or modify
7+ *
8+ * PCMSolver is free software: you can redistribute it and/or modify
99 * it under the terms of the GNU Lesser General Public License as published by
1010 * the Free Software Foundation, either version 3 of the License, or
1111 * (at your option) any later version.
12- *
12+ *
1313 * PCMSolver is distributed in the hope that it will be useful,
1414 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1515 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1616 * GNU Lesser General Public License for more details.
17- *
17+ *
1818 * You should have received a copy of the GNU Lesser General Public License
1919 * along with PCMSolver. If not, see <http://www.gnu.org/licenses/>.
20- *
20+ *
2121 * For information on the complete list of contributors to the
2222 * PCMSolver API, see: <http://pcmsolver.github.io/pcmsolver-doc>
2323 */
@@ -65,7 +65,7 @@ void IEFSolver::buildAnisotropicMatrix(const Cavity & cav)
6565
6666 // This is the very core of PCMSolver
6767 throw std::runtime_error (" Calculation of anisotropic matrix elements not yet implemented." );
68- /*
68+ /*
6969 greenInside_->compOffDiagonal(cav.elementCenter(), cav.elementNormal(), SI, DI);
7070 greenInside_->compDiagonal(cav.elementArea(), cav.elementRadius(), SI, DI);
7171 greenOutside_->compOffDiagonal(cav.elementCenter(), cav.elementNormal(), SE, DE);
@@ -100,9 +100,8 @@ void IEFSolver::buildAnisotropicMatrix(const Cavity & cav)
100100 if (hermitivitize_) {
101101 hermitivitize (fullPCMMatrix);
102102 }
103- // Pack into a BlockDiagonalMatrix
104- // For the moment just packs into a std::vector<Eigen::MatrixXd> without the syntactic
105- // sugar of the BlockDiagonalMatrix class...
103+ // Pack into a block diagonal matrix
104+ // For the moment just packs into a std::vector<Eigen::MatrixXd>
106105 symmetryPacking (blockPCMMatrix, fullPCMMatrix, dimBlock, nrBlocks);
107106 std::ofstream matrixOut (" PCM_matrix" );
108107 matrixOut << " fullPCMMatrix" << std::endl;
@@ -193,9 +192,8 @@ void IEFSolver::buildIsotropicMatrix(const Cavity & cav)
193192 matrixOut << "List of Eigenvalues:\n" << solver.eigenvalues() << std::endl;
194193 matrixOut.close();
195194 */
196- // Pack into a BlockDiagonalMatrix
197- // For the moment just packs into a std::vector<Eigen::MatrixXd> without the syntactic
198- // sugar of the BlockDiagonalMatrix class...
195+ // Pack into a block diagonal matrix
196+ // For the moment just packs into a std::vector<Eigen::MatrixXd>
199197 symmetryPacking (blockPCMMatrix, fullPCMMatrix, dimBlock, nrBlocks);
200198 std::ofstream matrixOut (" PCM_matrix" );
201199 matrixOut << " fullPCMMatrix" << std::endl;
@@ -221,7 +219,6 @@ void IEFSolver::computeCharge(const Eigen::VectorXd &potential,
221219 if (builtIsotropicMatrix or builtAnisotropicMatrix) {
222220 charge.segment (irrep*irrDim,
223221 irrDim)= - blockPCMMatrix[irrep] * potential.segment (irrep*irrDim, irrDim);
224- // charge = - fullPCMMatrix * potential;
225222 } else {
226223 throw std::runtime_error (" PCM matrix not initialized!" );
227224 }
0 commit comments