1 |
< |
/* |
1 |
> |
/* |
2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
3 |
|
* |
4 |
|
* The University of Notre Dame grants you ("Licensee") a |
99 |
|
|
100 |
|
|
101 |
|
|
102 |
< |
//creat visitor list |
102 |
> |
//create visitor list |
103 |
|
CompositeVisitor* compositeVisitor = new CompositeVisitor(); |
104 |
|
|
105 |
< |
//creat RigidBody Visitor |
105 |
> |
//create RigidBody Visitor |
106 |
|
if(args_info.rigidbody_flag){ |
107 |
|
RBCOMVisitor* rbCOMVisitor = new RBCOMVisitor(info); |
108 |
|
compositeVisitor->addVisitor(rbCOMVisitor, 900); |
109 |
|
} |
110 |
|
|
111 |
< |
//creat SSD atom visitor |
111 |
> |
//create SSD atom visitor |
112 |
|
SSDAtomVisitor* ssdVisitor = new SSDAtomVisitor(info); |
113 |
|
compositeVisitor->addVisitor(ssdVisitor, 800); |
114 |
|
|
115 |
|
LinearAtomVisitor* linearVisitor = new LinearAtomVisitor(info); |
116 |
|
compositeVisitor->addVisitor(linearVisitor, 750); |
117 |
|
|
118 |
< |
//creat default atom visitor |
118 |
> |
//create default atom visitor |
119 |
|
DefaultAtomVisitor* defaultAtomVisitor = new DefaultAtomVisitor(info); |
120 |
|
compositeVisitor->addVisitor(defaultAtomVisitor, 700); |
121 |
|
|
122 |
< |
//creat waterType visitor |
122 |
> |
//create waterType visitor |
123 |
|
if(args_info.watertype_flag){ |
124 |
|
WaterTypeVisitor* waterTypeVisitor = new WaterTypeVisitor; |
125 |
|
compositeVisitor->addVisitor(waterTypeVisitor, 600); |
137 |
|
} |
138 |
|
} |
139 |
|
|
140 |
< |
//creat wrapping visitor |
140 |
> |
//create wrapping visitor |
141 |
|
|
142 |
|
if(args_info.periodicBox_flag){ |
143 |
|
WrappingVisitor* wrappingVisitor = new WrappingVisitor(info); |
144 |
|
compositeVisitor->addVisitor(wrappingVisitor, 400); |
145 |
|
} |
146 |
|
|
147 |
< |
//creat replicate visitor |
147 |
> |
//create replicate visitor |
148 |
|
if(args_info.repeatX_given > 0 || args_info.repeatY_given > 0 ||args_info.repeatY_given > 0){ |
149 |
|
Vector3i replicateOpt(args_info.repeatX_arg, args_info.repeatY_arg, args_info.repeatZ_arg); |
150 |
|
ReplicateVisitor* replicateVisitor = new ReplicateVisitor(info, replicateOpt); |
160 |
|
exit(1); |
161 |
|
} |
162 |
|
|
163 |
< |
//creat xyzVisitor |
163 |
> |
//create xyzVisitor |
164 |
|
XYZVisitor* xyzVisitor; |
165 |
|
if (args_info.selection_given) { |
166 |
|
xyzVisitor = new XYZVisitor(info, args_info.selection_arg); |
171 |
|
|
172 |
|
std::cout << compositeVisitor->toString(); |
173 |
|
|
174 |
< |
//creat prepareVisitor |
174 |
> |
//create prepareVisitor |
175 |
|
PrepareVisitor* prepareVisitor = new PrepareVisitor(); |
176 |
|
|
177 |
|
//open dump file |
229 |
|
|
230 |
|
xyzStream.close(); |
231 |
|
|
232 |
< |
|
232 |
> |
delete prepareVisitor; |
233 |
|
delete compositeVisitor; |
234 |
|
delete info; |
235 |
|
|