1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
use structopt::StructOpt;
#[derive(Debug, StructOpt)]
#[structopt(
name = "libCEED Rust Example 2 - Surface Area",
about = "This example illustrates a simple usage of libCEED to compute the surface area of a body using matrix-free application of a diffusion operator."
)]
#[cfg(not(tarpaulin_include))]
pub(crate) struct Opt {
#[structopt(name = "ceed", short = "c", long = "ceed", default_value = "/cpu/self")]
pub(crate) ceed_spec: String,
#[structopt(
name = "dimension",
short = "d",
long = "dimension",
default_value = "3"
)]
pub(crate) dim: usize,
#[structopt(
name = "mesh degree",
short = "m",
long = "mesh_degree",
default_value = "4"
)]
pub(crate) mesh_degree: usize,
#[structopt(
name = "solution degree",
short = "p",
long = "solution_degree",
default_value = "4"
)]
pub(crate) solution_degree: usize,
#[structopt(
name = "number of quadrature points",
short = "q",
long = "num_qpts",
default_value = "6"
)]
pub(crate) num_qpts: usize,
#[structopt(
name = "problem size",
short = "s",
long = "problem_size",
default_value = "-1"
)]
pub(crate) problem_size_requested: i64,
#[structopt(name = "test mode", short = "t", long = "test")]
pub(crate) test: bool,
#[structopt(name = "quiet mode", short = "q", long = "quiet")]
pub(crate) quiet: bool,
#[structopt(name = "gallery QFunctions", short = "g", long = "gallery")]
pub(crate) gallery: bool,
}