paralellized with OMP and MPI
[gpiv.git] / src / main.h
blobdd50e17fc15ce1392296f7c2ffd25108a97f2c76
1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
3 /*----------------------------------------------------------------------
5 gpiv - Graphic program for Particle Image Velocimetry, based on gtk/gnome
6 libraries.
8 Copyright (C) 2002, 2003, 2004 Gerber van der Graaf
10 This file is part of gpiv.
12 Gpiv is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2, or (at your option)
15 any later version.
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 ----------------------------------------------------------------------*/
27 /* {NULL, 'q', POPT_ARG_NONE, &q, 0, */
28 /* N_("Explain gpiv"), NULL}, */
31 static const struct poptOption options [] = {
32 {"cross", 'x', POPT_ARG_NONE, &gp.x_corr, 0,
33 N_("cross-correlation image"), N_("XCORR")},
35 {"img_fmt", '\0', POPT_ARG_INT, &gp.img_fmt, 0,
36 N_("store image and header in PNG (0), raw (1) or HDF5 (2) format"), NULL},
38 {"hdf", '\0', POPT_ARG_NONE, &gp.hdf, 0,
39 N_("store resulting data in HDF5 format with .h5 extension"), NULL},
41 #ifdef ENABLE_MPI
42 {"mpi_nodes", '\0', POPT_ARG_INT, &gp.mpi_nodes, 0,
43 N_("number of nodes for parallel execution on cluster using MPI"), N_("INT")},
44 #endif /* ENABLE_MPI */
46 {"print", 'p', POPT_ARG_NONE, &gp.print_par, 0,
47 N_("print parameters and other info to stdout"), NULL},
49 {"verbose", 'V', POPT_ARG_NONE, &gp.verbose, 0,
50 N_("more verbose behaviour to stdout"), NULL},
52 {"console__view_gpivbuttons", '\0', POPT_ARG_NONE, &gp.console__view_gpivbuttons, 0,
53 N_("view the GPIV processing buttons"), NULL},
55 {"console__view_tabulator", '\0', POPT_ARG_NONE, &gp.console__view_tabulator, 0,
56 N_("view the tabulator of the application"), NULL},
58 {"console__tooltips", '\0', POPT_ARG_NONE, &gp.console__show_tooltips, 0,
59 N_("show tooltips"), NULL},
61 {"console__bins", '\0', POPT_ARG_INT, &gp.console__nbins, 0,
62 N_("number of bins for histograms"), N_("BINS")},
64 {"display__view_menubar", '\0', POPT_ARG_NONE, &gp.display__view_menubar, 0,
65 N_("view the menubar of the display"),
66 NULL},
68 {"display__view_rulers", '\0', POPT_ARG_NONE, &gp.display__view_rulers, 0,
69 N_("view the rulers of the display"),
70 NULL},
72 {"display__stretch", '\0', POPT_ARG_NONE, &gp.display__stretch_auto, 0,
73 N_("automatic stretching of the display when zooming"),
74 NULL},
76 {"display__background", '\0', POPT_ARG_INT, &gp.display__backgrnd, 0,
77 N_("display background: 0:darkblue 1:black 2:image1 3:image2"),
78 NULL},
80 {"display__intregs", '\0', POPT_ARG_NONE, &gp.display__intregs, 0,
81 N_("display interrogation region contours"), NULL},
83 {"display__piv", '\0', POPT_ARG_NONE, &gp.display__piv, 0,
84 N_("display PIV data"), NULL},
86 {"display__scalar", '\0', POPT_ARG_INT, &gp.display__scalar, 0,
87 N_("display scalar data derived from PIV: 0:none 1:vorticity 2:shear strain 3:normal strain"), NULL},
89 {"display__zoomscale", '\0', POPT_ARG_INT, &gp.display__zoom_index, 0,
90 N_("display zoom index: 0:0.5, 1:0.83, 2:1.0, 3:1.3, 4:1.6, 5:2.0"),
91 N_("SCALE")},
93 {"display__vectorscale", '\0', POPT_ARG_INT, &gp.display__vector_scale, 0,
94 N_("vector length scale"), N_("SCALE")},
96 #ifdef ENABLE_CAM
97 {"process__cam", '\0', POPT_ARG_NONE, &gp.process__cam, 0,
98 N_("executes image recording"), NULL},
99 #endif /* ENABLE_CAM */
101 #ifdef ENABLE_TRIG
102 {"process__trig", '\0', POPT_ARG_NONE, &gp.process__trig, 0,
103 N_("executes triggering of light source and camera"), NULL},
104 #endif /* ENABLE_TRIG */
106 #ifdef ENABLE_IMGPROC
107 {"process__imgproc", '\0', POPT_ARG_NONE, &gp.process__imgproc, 0,
108 N_("executes image manipulation"), NULL},
109 #endif /* ENABLE_IMGPROC */
111 {"process__piv", '\0', POPT_ARG_NONE, &gp.process__piv, 0,
112 N_("executes piv interrogation"), NULL},
114 {"process__gradient", '\0', POPT_ARG_NONE, &gp.process__gradient, 0,
115 N_("executes gradient test"), NULL},
117 {"process__resstats", '\0', POPT_ARG_NONE, &gp.process__resstats, 0,
118 N_("executes calculation of residu statistics"), NULL},
120 {"process__errvec", '\0', POPT_ARG_NONE, &gp.process__errvec, 0,
121 N_("executes PIV data validation"), NULL},
123 {"process__peaklock", '\0', POPT_ARG_NONE, &gp.process__peaklock, 0,
124 N_("executes peaklock testing"), NULL},
126 {"process__average", '\0', POPT_ARG_NONE, &gp.process__average, 0,
127 N_("executes average calculation"), NULL},
129 {"process__scale", '\0', POPT_ARG_NONE, &gp.process__scale, 0,
130 N_("executes time and spatial scaling"), NULL},
132 {"process__subtract", '\0', POPT_ARG_NONE, &gp.process__subtract, 0,
133 N_("executes subtracting the mean"), NULL},
135 {"process__vorstra", '\0', POPT_ARG_NONE, &gp.process__vorstra, 0,
136 N_("executes vorticity / strain calculation"), NULL},
138 {NULL, '\0', 0, NULL, 0}