We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69496a2 commit b82481fCopy full SHA for b82481f
ExampleCodes/Basic/main_C/main.cpp
@@ -99,12 +99,21 @@ void test_parameters ()
99
pp.getarr("an_int_array", ia);
100
pp.get("a_real_scalar", r);
101
pp.get("a_string", s);
102
- amrex::Print() << "an_int_array = ";
+ amrex::Print() << "a_prefix.an_int_array = ";
103
for (auto x : ia) {
104
amrex::Print() << x << " ";
105
}
106
amrex::Print() << "\n";
107
amrex::Print() << "a_prefix.a_real_scalar = " << r << "\n"
108
<< "a_prefix.a_string = " << s << "\n";
109
110
+
111
+ {
112
+ amrex::ParmParse pp;
113
+ amrex::Print() << "Inputs that start with 'a_prefix':\n";
114
+ auto entr = pp.getEntries ("a_prefix");
115
+ for (auto && v : entr) {
116
+ amrex::Print() << " " << v << "\n";
117
+ }
118
119
0 commit comments