| 53 |  | #include "applications/sequentialProps/SequentialAnalyzer.hpp" | 
| 54 |  | #include "applications/sequentialProps/CenterOfMass.hpp" | 
| 55 |  | #include "applications/sequentialProps/ContactAngle1.hpp" | 
| 56 | + | #include "applications/sequentialProps/ContactAngle2.hpp" | 
| 57 |  |  | 
| 58 |  | using namespace OpenMD; | 
| 59 |  |  | 
| 132 |  | } | 
| 133 |  |  | 
| 134 |  | analyzer = new ContactAngle1(info, dumpFileName, sele1, solidZ, dropletR); | 
| 135 | + | } else if(args_info.ca2_given){ | 
| 136 | + | RealType solidZ; | 
| 137 | + | if (args_info.referenceZ_given) | 
| 138 | + | solidZ = args_info.referenceZ_arg; | 
| 139 | + | else { | 
| 140 | + | sprintf( painCave.errMsg, | 
| 141 | + | "--referenceZ must be set if --ca2 is used\n"); | 
| 142 | + | painCave.severity = OPENMD_ERROR; | 
| 143 | + | painCave.isFatal = 1; | 
| 144 | + | simError(); | 
| 145 | + | } | 
| 146 | + | RealType threshDens; | 
| 147 | + | if (args_info.threshDens_given) | 
| 148 | + | threshDens = args_info.threshDens_arg; | 
| 149 | + | else { | 
| 150 | + | sprintf( painCave.errMsg, | 
| 151 | + | "--threshDens must be set if --ca1 is used\n"); | 
| 152 | + | painCave.severity = OPENMD_ERROR; | 
| 153 | + | painCave.isFatal = 1; | 
| 154 | + | simError(); | 
| 155 | + | } | 
| 156 | + |  | 
| 157 | + | analyzer = new ContactAngle2(info, dumpFileName, sele1, solidZ, | 
| 158 | + | threshDens, args_info.nbins_arg, | 
| 159 | + | args_info.nbins_z_arg); | 
| 160 |  | } | 
| 161 |  |  | 
| 162 |  | if (args_info.output_given) { |