--- trunk/OOPSE/libmdtools/ForceFields.cpp 2003/07/14 21:28:54 597 +++ trunk/OOPSE/libmdtools/ForceFields.cpp 2003/07/16 02:11:02 621 @@ -27,12 +27,12 @@ void ForceFields::calcRcut( void ){ //calc rCut and rList entry_plug->rCut = 2.5 * bigSigma; - if(entry_plug->rCut > (entry_plug->boxLx / 2.0)) - entry_plug->rCut = entry_plug->boxLx / 2.0; - if(entry_plug->rCut > (entry_plug->boxLy / 2.0)) - entry_plug->rCut = entry_plug->boxLy / 2.0; - if(entry_plug->rCut > (entry_plug->boxLz / 2.0)) - entry_plug->rCut = entry_plug->boxLz / 2.0; + if(entry_plug->rCut > (entry_plug->boxL[0] / 2.0)) + entry_plug->rCut = entry_plug->boxL[0] / 2.0; + if(entry_plug->rCut > (entry_plug->boxL[1] / 2.0)) + entry_plug->rCut = entry_plug->boxL[1] / 2.0; + if(entry_plug->rCut > (entry_plug->boxL[2] / 2.0)) + entry_plug->rCut = entry_plug->boxL[2] / 2.0; entry_plug->rList = entry_plug->rCut + 1.0;