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

Comparing trunk/SHAPES/forcer.cpp (file contents):
Revision 1275 by chrisfen, Tue Jun 15 22:36:23 2004 UTC vs.
Revision 1285 by chrisfen, Tue Jun 22 18:04:58 2004 UTC

# Line 5 | Line 5
5   #include "forcerCmd.h"
6   #include "PDBReader.hpp"
7   #include "RigidBody.hpp"
8 + #include "GridBuilder.hpp"
9  
10   #define MK_STR(s) # s
11   #define STR_DEFINE(t, s) t = MK_STR(s)
# Line 52 | Line 53 | int main(int argc, char* argv[]){
53    vector<VDWAtom*> theAtoms;
54    vector<VDWAtom*>::iterator j;
55    VDWAtom* atom;
56 <
56 >  GridBuilder* gb;
57 >  vector<double> sigmaGrid;
58 >  vector<double> epsGrid;
59 >  vector<double> sGrid;
60 >  
61    double mass, rpar, eps;
62    string fileName;  
63    char vdwFileName[2002];
# Line 84 | Line 89 | int main(int argc, char* argv[]){
89      exit(1);
90    }
91  
92 <  //the bandwidth has a default value (default=8), so it is always given
92 >  //the bandwidth has a default value (default=16), so it is always given
93    bandwidth = args_info.bandwidth_arg;
94    
95    if (args_info.charmm_given) {
# Line 236 | Line 241 | int main(int argc, char* argv[]){
241    for( j = theAtoms.begin(); j !=  theAtoms.end(); ++j){
242      rb->addAtom(*j);
243    }
239  
240  //GridBuilder gb = new GridBuilder(rb);
244  
245 <  //gb->launchProbe(FF, sigmaGrid, sGrid, epsGrid);
245 >  rb->calcRefCoords();
246 >  
247 >  gb = new GridBuilder(rb, bandwidth*2);
248  
249 <  
249 >  cout << "Doing GridBuilder calculations...\n";
250 >  gb->launchProbe(FF, sigmaGrid, sGrid, epsGrid);
251 >  
252 >  //write out the grid files
253 >  gb->printGridFiles();
254   }
255  
256   int count_tokens(char *line, char *delimiters) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines