ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/SimSetup.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/SimSetup.cpp (file contents):
Revision 855 by mmeineke, Thu Nov 6 22:01:37 2003 UTC vs.
Revision 859 by mmeineke, Mon Nov 10 21:50:36 2003 UTC

# Line 103 | Line 103 | void SimSetup::createSim(void){
103  
104    sysObjectsCreation();
105  
106 +  // check on the post processing info
107 +
108 +  finalInfoCheck();
109 +
110    // initialize the system coordinates
111  
112    if ( !initSuspend ){
# Line 111 | Line 115 | void SimSetup::createSim(void){
115      if( !(globals->getUseInitTime()) )
116        info[0].currentTime = 0.0;
117    }  
114
115  // check on the post processing info
116
117  finalInfoCheck();
118  
119    // make the output filenames
120  
# Line 781 | Line 781 | void SimSetup::finalInfoCheck(void){
781  
782        if (!globals->haveECR()){
783          sprintf(painCave.errMsg,
784 <                "SimSetup Warning: using default value of 1/2 the smallest "
785 <                "box length for the electrostaticCutoffRadius.\n"
786 <                "I hope you have a very fast processor!\n");
784 >                "SimSetup Warning: using default value of 15.0 angstroms"
785 >                "box length for the electrostaticCutoffRadius.\n");
786          painCave.isFatal = 0;
787          simError();
788 <        double smallest;
790 <        smallest = info[i].boxL[0];
791 <        if (info[i].boxL[1] <= smallest)
792 <          smallest = info[i].boxL[1];
793 <        if (info[i].boxL[2] <= smallest)
794 <          smallest = info[i].boxL[2];
795 <        theEcr = 0.5 * smallest;
788 >        theEcr = 15.0;
789        }
790        else{
791          theEcr = globals->getECR();
# Line 825 | Line 818 | void SimSetup::finalInfoCheck(void){
818        if (usesDipoles){
819          if (!globals->haveECR()){
820            sprintf(painCave.errMsg,
821 <                  "SimSetup Warning: using default value of 1/2 the smallest "
822 <                  "box length for the electrostaticCutoffRadius.\n"
823 <                  "I hope you have a very fast processor!\n");
824 <          painCave.isFatal = 0;
825 <          simError();
833 <          double smallest;
834 <          smallest = info[i].boxL[0];
835 <          if (info[i].boxL[1] <= smallest)
836 <            smallest = info[i].boxL[1];
837 <          if (info[i].boxL[2] <= smallest)
838 <            smallest = info[i].boxL[2];
839 <          theEcr = 0.5 * smallest;
821 >                  "SimSetup Warning: using default value of 15.0 angstroms"
822 >                  "box length for the electrostaticCutoffRadius.\n");
823 >          painCave.isFatal = 0;
824 >          simError();
825 >          theEcr = 15.0;
826          }
827          else{
828            theEcr = globals->getECR();
829          }
830 <
830 >        
831          if (!globals->haveEST()){
832            sprintf(painCave.errMsg,
833                    "SimSetup Warning: using default value of 0.05 * the "
# Line 854 | Line 840 | void SimSetup::finalInfoCheck(void){
840          else{
841            theEst = globals->getEST();
842          }
843 <
843 >        
844          info[i].setDefaultEcr(theEcr, theEst);
845        }
846      }
861
862    if( !initSuspend )
863      info[i].checkCutOffs();
847    }
865
848   #ifdef IS_MPI
849    strcpy(checkPointMsg, "post processing checks out");
850    MPIcheckPoint();
851   #endif // is_mpi
852   }
853 <
853 >  
854   void SimSetup::initSystemCoords(void){
855    int i;
856  
# Line 896 | Line 878 | void SimSetup::initSystemCoords(void){
878      delete fileInit;
879    }
880    else{
881 < #ifdef IS_MPI
900 <
881 >    
882      // no init from bass
883 <
883 >    
884      sprintf(painCave.errMsg,
885 <            "Cannot intialize a parallel simulation without an initial configuration file.\n");
885 >            "Cannot intialize a simulation without an initial configuration file.\n");
886      painCave.isFatal = 1;;
887      simError();
888 <
908 < #else
909 <
910 <    initFromBass();
911 <
912 <
913 < #endif
888 >    
889    }
890  
891   #ifdef IS_MPI

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines