Revision | 373ce2ac7bbf2ad9ade0a3e14d8c49743a5013d8 (tree) |
---|---|
Time | 2012-12-17 14:43:15 |
Author | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
Bug for the timing of setting the molecule is fixed. #30327
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1190 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -252,14 +252,11 @@ TheoryType Cndo2::GetTheoryType() const{ | ||
252 | 252 | } |
253 | 253 | |
254 | 254 | void Cndo2::SetMolecule(Molecule* molecule){ |
255 | - // check of number of valence electrons | |
255 | + this->molecule = molecule; | |
256 | 256 | this->CheckNumberValenceElectrons(*molecule); |
257 | - | |
258 | - // check enable atom type | |
259 | 257 | this->CheckEnableAtomType(*molecule); |
260 | 258 | |
261 | - // set molecule and malloc | |
262 | - this->molecule = molecule; | |
259 | + // malloc | |
263 | 260 | MallocerFreer::GetInstance()->Malloc<double>(&this->fockMatrix, |
264 | 261 | this->molecule->GetTotalNumberAOs(), |
265 | 262 | this->molecule->GetTotalNumberAOs()); |