ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/brains/SimInfo.cpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/brains/SimInfo.cpp (file contents):
Revision 2010 by tim, Sun Feb 13 20:05:42 2005 UTC vs.
Revision 2012 by tim, Sun Feb 13 20:36:24 2005 UTC

# Line 765 | Line 765 | void SimInfo::getCutoff(double& rcut, double& rsw) {
765                  "\tfor the cutoffRadius.\n");
766              painCave.isFatal = 0;
767              simError();
768 <            rcut_ = 15.0;
768 >            rcut = 15.0;
769          } else{
770 <            rcut_ = simParams_->getRcut();
770 >            rcut = simParams_->getRcut();
771          }
772  
773          if (!simParams_->haveRsw()){
# Line 777 | Line 777 | void SimInfo::getCutoff(double& rcut, double& rsw) {
777                  "\t0.95 * cutoffRadius for the switchingRadius\n");
778              painCave.isFatal = 0;
779              simError();
780 <            rsw_ = 0.95 * rcut_;
780 >            rsw = 0.95 * rcut;
781          } else{
782 <            rsw_ = simParams_->getRsw();
782 >            rsw = simParams_->getRsw();
783          }
784  
785      } else {
# Line 787 | Line 787 | void SimInfo::getCutoff(double& rcut, double& rsw) {
787          //meta-data file, the maximum cutoff radius calculated from forcefiled will be used
788          
789          if (simParams_->haveRcut()) {
790 <            rcut_ = simParams_->getRcut();
790 >            rcut = simParams_->getRcut();
791          } else {
792              //set cutoff radius to the maximum cutoff radius based on atom types in the whole system
793 <            rcut_ = calcMaxCutoffRadius();
793 >            rcut = calcMaxCutoffRadius();
794          }
795  
796          if (simParams_->haveRsw()) {
797 <            rsw_  = simParams_->getRsw();
797 >            rsw  = simParams_->getRsw();
798          } else {
799 <            rsw_ = rcut_;
799 >            rsw = rcut;
800          }
801      
802      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines