ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/sequentialProps/SequentialProps.cpp
(Generate patch)

Comparing trunk/src/applications/sequentialProps/SequentialProps.cpp (file contents):
Revision 2024 by gezelter, Thu Oct 16 19:13:51 2014 UTC vs.
Revision 2029 by gezelter, Thu Oct 30 18:51:38 2014 UTC

# Line 51 | Line 51
51  
52   #include "applications/sequentialProps/SequentialPropsCmd.h"
53   #include "applications/sequentialProps/SequentialAnalyzer.hpp"
54 < #include "applications/sequentialProps/DensityAnalyzer.hpp"
54 > #include "applications/sequentialProps/CenterOfMass.hpp"
55 > #include "applications/sequentialProps/ContactAngle1.hpp"
56  
57   using namespace OpenMD;
58  
# Line 105 | Line 106 | int main(int argc, char* argv[]){
106    SimInfo* info = creator.createSim(dumpFileName, false);
107  
108    SequentialAnalyzer* analyzer;
109 <  if(args_info.density_given){
110 <    analyzer = new DensityAnalyzer(info, dumpFileName, sele1);
109 >  if(args_info.com_given){
110 >    analyzer = new CenterOfMass(info, dumpFileName, sele1);
111 >  } else if(args_info.ca1_given){
112 >    RealType solidZ;
113 >    if (args_info.referenceZ_given)
114 >        solidZ = args_info.referenceZ_arg;
115 >    else {
116 >      sprintf( painCave.errMsg,
117 >               "--referenceZ must be set if --ca1 is used\n");
118 >      painCave.severity = OPENMD_ERROR;
119 >      painCave.isFatal = 1;
120 >      simError();
121 >    }
122 >    RealType dropletR;
123 >    if (args_info.dropletR_given)
124 >        dropletR = args_info.dropletR_arg;
125 >    else {
126 >      sprintf( painCave.errMsg,
127 >               "--dropletR must be set if --ca1 is used\n");
128 >      painCave.severity = OPENMD_ERROR;
129 >      painCave.isFatal = 1;
130 >      simError();
131 >    }
132 >
133 >    analyzer = new ContactAngle1(info, dumpFileName, sele1, solidZ, dropletR);
134    }
135  
136    if (args_info.output_given) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines