44 |
|
" --sele2=selection script select second stuntdouble set (if sele2 is not \n set, use script from sele1)", |
45 |
|
" -b, --nbins=INT number of bins (general purpose) \n (default=`100')", |
46 |
|
" --nbins_z=INT number of bins in z axis (default=`100')", |
47 |
+ |
" -x, --centroidX=DOUBLE Location of droplet centroid in x", |
48 |
+ |
" -y, --centroidY=DOUBLE Location of droplet centroid in y", |
49 |
|
" -z, --referenceZ=DOUBLE Reference z-height of solid surface", |
50 |
|
" -r, --dropletR=DOUBLE Droplet radius in angstroms", |
51 |
|
" --threshDens=DOUBLE Threshold Density in g/cm^3", |
89 |
|
args_info->sele2_given = 0 ; |
90 |
|
args_info->nbins_given = 0 ; |
91 |
|
args_info->nbins_z_given = 0 ; |
92 |
+ |
args_info->centroidX_given = 0 ; |
93 |
+ |
args_info->centroidY_given = 0 ; |
94 |
|
args_info->referenceZ_given = 0 ; |
95 |
|
args_info->dropletR_given = 0 ; |
96 |
|
args_info->threshDens_given = 0 ; |
117 |
|
args_info->nbins_orig = NULL; |
118 |
|
args_info->nbins_z_arg = 100; |
119 |
|
args_info->nbins_z_orig = NULL; |
120 |
+ |
args_info->centroidX_orig = NULL; |
121 |
+ |
args_info->centroidY_orig = NULL; |
122 |
|
args_info->referenceZ_orig = NULL; |
123 |
|
args_info->dropletR_orig = NULL; |
124 |
|
args_info->threshDens_orig = NULL; |
139 |
|
args_info->sele2_help = gengetopt_args_info_help[5] ; |
140 |
|
args_info->nbins_help = gengetopt_args_info_help[6] ; |
141 |
|
args_info->nbins_z_help = gengetopt_args_info_help[7] ; |
142 |
< |
args_info->referenceZ_help = gengetopt_args_info_help[8] ; |
143 |
< |
args_info->dropletR_help = gengetopt_args_info_help[9] ; |
144 |
< |
args_info->threshDens_help = gengetopt_args_info_help[10] ; |
145 |
< |
args_info->bufferLength_help = gengetopt_args_info_help[11] ; |
146 |
< |
args_info->com_help = gengetopt_args_info_help[13] ; |
147 |
< |
args_info->ca1_help = gengetopt_args_info_help[14] ; |
148 |
< |
args_info->ca2_help = gengetopt_args_info_help[15] ; |
142 |
> |
args_info->centroidX_help = gengetopt_args_info_help[8] ; |
143 |
> |
args_info->centroidY_help = gengetopt_args_info_help[9] ; |
144 |
> |
args_info->referenceZ_help = gengetopt_args_info_help[10] ; |
145 |
> |
args_info->dropletR_help = gengetopt_args_info_help[11] ; |
146 |
> |
args_info->threshDens_help = gengetopt_args_info_help[12] ; |
147 |
> |
args_info->bufferLength_help = gengetopt_args_info_help[13] ; |
148 |
> |
args_info->com_help = gengetopt_args_info_help[15] ; |
149 |
> |
args_info->ca1_help = gengetopt_args_info_help[16] ; |
150 |
> |
args_info->ca2_help = gengetopt_args_info_help[17] ; |
151 |
|
|
152 |
|
} |
153 |
|
|
241 |
|
free_string_field (&(args_info->sele2_orig)); |
242 |
|
free_string_field (&(args_info->nbins_orig)); |
243 |
|
free_string_field (&(args_info->nbins_z_orig)); |
244 |
+ |
free_string_field (&(args_info->centroidX_orig)); |
245 |
+ |
free_string_field (&(args_info->centroidY_orig)); |
246 |
|
free_string_field (&(args_info->referenceZ_orig)); |
247 |
|
free_string_field (&(args_info->dropletR_orig)); |
248 |
|
free_string_field (&(args_info->threshDens_orig)); |
298 |
|
write_into_file(outfile, "nbins", args_info->nbins_orig, 0); |
299 |
|
if (args_info->nbins_z_given) |
300 |
|
write_into_file(outfile, "nbins_z", args_info->nbins_z_orig, 0); |
301 |
+ |
if (args_info->centroidX_given) |
302 |
+ |
write_into_file(outfile, "centroidX", args_info->centroidX_orig, 0); |
303 |
+ |
if (args_info->centroidY_given) |
304 |
+ |
write_into_file(outfile, "centroidY", args_info->centroidY_orig, 0); |
305 |
|
if (args_info->referenceZ_given) |
306 |
|
write_into_file(outfile, "referenceZ", args_info->referenceZ_orig, 0); |
307 |
|
if (args_info->dropletR_given) |
625 |
|
{ "sele2", 1, NULL, 0 }, |
626 |
|
{ "nbins", 1, NULL, 'b' }, |
627 |
|
{ "nbins_z", 1, NULL, 0 }, |
628 |
+ |
{ "centroidX", 1, NULL, 'x' }, |
629 |
+ |
{ "centroidY", 1, NULL, 'y' }, |
630 |
|
{ "referenceZ", 1, NULL, 'z' }, |
631 |
|
{ "dropletR", 1, NULL, 'r' }, |
632 |
|
{ "threshDens", 1, NULL, 0 }, |
637 |
|
{ 0, 0, 0, 0 } |
638 |
|
}; |
639 |
|
|
640 |
< |
c = getopt_long (argc, argv, "hVi:o:b:z:r:c", long_options, &option_index); |
640 |
> |
c = getopt_long (argc, argv, "hVi:o:b:x:y:z:r:c", long_options, &option_index); |
641 |
|
|
642 |
|
if (c == -1) break; /* Exit from `while (1)' loop. */ |
643 |
|
|
685 |
|
&(local_args_info.nbins_given), optarg, 0, "100", ARG_INT, |
686 |
|
check_ambiguity, override, 0, 0, |
687 |
|
"nbins", 'b', |
688 |
+ |
additional_error)) |
689 |
+ |
goto failure; |
690 |
+ |
|
691 |
+ |
break; |
692 |
+ |
case 'x': /* Location of droplet centroid in x. */ |
693 |
+ |
|
694 |
+ |
|
695 |
+ |
if (update_arg( (void *)&(args_info->centroidX_arg), |
696 |
+ |
&(args_info->centroidX_orig), &(args_info->centroidX_given), |
697 |
+ |
&(local_args_info.centroidX_given), optarg, 0, 0, ARG_DOUBLE, |
698 |
+ |
check_ambiguity, override, 0, 0, |
699 |
+ |
"centroidX", 'x', |
700 |
|
additional_error)) |
701 |
|
goto failure; |
702 |
|
|
703 |
|
break; |
704 |
+ |
case 'y': /* Location of droplet centroid in y. */ |
705 |
+ |
|
706 |
+ |
|
707 |
+ |
if (update_arg( (void *)&(args_info->centroidY_arg), |
708 |
+ |
&(args_info->centroidY_orig), &(args_info->centroidY_given), |
709 |
+ |
&(local_args_info.centroidY_given), optarg, 0, 0, ARG_DOUBLE, |
710 |
+ |
check_ambiguity, override, 0, 0, |
711 |
+ |
"centroidY", 'y', |
712 |
+ |
additional_error)) |
713 |
+ |
goto failure; |
714 |
+ |
|
715 |
+ |
break; |
716 |
|
case 'z': /* Reference z-height of solid surface. */ |
717 |
|
|
718 |
|
|