--- trunk/OOPSE/libmdtools/SimSetup.cpp 2004/06/11 14:14:10 1261 +++ trunk/OOPSE/libmdtools/SimSetup.cpp 2004/08/23 15:11:36 1452 @@ -1820,11 +1820,11 @@ void SimSetup::makeIntegrator(void){ void SimSetup::makeIntegrator(void){ int k; - NVE* myNVE = NULL; - NVT* myNVT = NULL; - NPTi >* myNPTi = NULL; - NPTf >* myNPTf = NULL; - NPTxyz >* myNPTxyz = NULL; + NVE >* myNVE = NULL; + NVT >* myNVT = NULL; + NPTi > >* myNPTi = NULL; + NPTf > >* myNPTf = NULL; + NPTxyz > >* myNPTxyz = NULL; for (k = 0; k < nInfo; k++){ switch (ensembleCase){ @@ -1834,7 +1834,15 @@ void SimSetup::makeIntegrator(void){ myNVE = new ZConstraint >(&(info[k]), the_ff); } else{ - myNVE = new NVE(&(info[k]), the_ff); + if (globals->haveQuaternion()){ + if (globals->getUseQuaternion()) + info->the_integrator = new NVE >(&(info[k]), the_ff); + } + else + info->the_integrator = new NVE(&(info[k]), the_ff); + break; + + //myNVE = new NVE(&(info[k]), the_ff); } info->the_integrator = myNVE;