Révision | 90f952f152e173a6d7660efbe79f6bfea0d9aa39 (tree) |
---|---|
l'heure | 2012-07-03 03:12:39 |
Auteur | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
vdw correction in Mndo::CalcHessianSCF is implemented. #28554
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@862 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -1834,6 +1834,14 @@ void Mndo::CalcHessianSCF(double** hessianSCF) const{ | ||
1834 | 1834 | atomCIndex, |
1835 | 1835 | static_cast<CartesianType>(axisA), |
1836 | 1836 | static_cast<CartesianType>(axisA2)); |
1837 | + | |
1838 | + // second derivative of van der waals corrections | |
1839 | + if(Parameters::GetInstance()->RequiresVdWSCF()){ | |
1840 | + hessianSCF[k][l] += this->GetDiatomVdWCorrectionSecondDerivative(atomAIndex, | |
1841 | + atomCIndex, | |
1842 | + static_cast<CartesianType>(axisA), | |
1843 | + static_cast<CartesianType>(axisA2)); | |
1844 | + } | |
1837 | 1845 | } |
1838 | 1846 | } |
1839 | 1847 |
@@ -1847,6 +1855,13 @@ void Mndo::CalcHessianSCF(double** hessianSCF) const{ | ||
1847 | 1855 | atomBIndex, |
1848 | 1856 | static_cast<CartesianType>(axisA), |
1849 | 1857 | static_cast<CartesianType>(axisB)); |
1858 | + // second derivative of van der waals corrections | |
1859 | + if(Parameters::GetInstance()->RequiresVdWSCF()){ | |
1860 | + hessianSCF[k][l] -= this->GetDiatomVdWCorrectionSecondDerivative(atomAIndex, | |
1861 | + atomBIndex, | |
1862 | + static_cast<CartesianType>(axisA), | |
1863 | + static_cast<CartesianType>(axisB)); | |
1864 | + } | |
1850 | 1865 | |
1851 | 1866 | |
1852 | 1867 | hessianSCF[l][k] = hessianSCF[k][l]; |