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 2400 by chrisfen, Wed Oct 26 23:32:25 2005 UTC vs.
Revision 2404 by chrisfen, Tue Nov 1 19:14:27 2005 UTC

# Line 528 | Line 528 | namespace oopse {
528      //usePBC and useRF are from simParams
529      int usePBC = simParams_->getUsePeriodicBoundaryConditions();
530      int useRF;
531 +    int useDW;
532      std::string myMethod;
533  
534      // set the useRF logical
535      useRF = 0;
536 +    useDW = 0;
537  
538  
539      if (simParams_->haveElectrostaticSummationMethod()) {
# Line 539 | Line 541 | namespace oopse {
541        toUpper(myMethod);
542        if (myMethod == "REACTION_FIELD") {
543          useRF=1;
544 +      } else {
545 +        if (myMethod == "DAMPED_WOLF") {
546 +          useDW = 1;
547 +        }
548        }
549      }
550  
# Line 606 | Line 612 | namespace oopse {
612      temp = useRF;
613      MPI_Allreduce(&temp, &useRF, 1, MPI_INT, MPI_LOR, MPI_COMM_WORLD);    
614  
615 +    temp = useDW;
616 +    MPI_Allreduce(&temp, &useDW, 1, MPI_INT, MPI_LOR, MPI_COMM_WORLD);    
617 +
618   #endif
619  
620      fInfo_.SIM_uses_PBC = usePBC;    
# Line 621 | Line 630 | namespace oopse {
630      fInfo_.SIM_uses_Shapes = useShape;
631      fInfo_.SIM_uses_FLARB = useFLARB;
632      fInfo_.SIM_uses_RF = useRF;
633 +    fInfo_.SIM_uses_DampedWolf = useDW;
634  
635      if( myMethod == "REACTION_FIELD") {
636        
# Line 635 | Line 645 | namespace oopse {
645          simError();
646        }      
647      }
648 +
649    }
650  
651    void SimInfo::setupFortranSim() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines