@@ -42,7 +42,7 @@ void BCIface::read_bctype()
4242 amrex::ParmParse pp (bcid);
4343 std::string bcstr = " null" ;
4444 pp.query (" type" , bcstr);
45- pp.query (key. c_str () , bcstr);
45+ pp.query (key, bcstr);
4646 bcstr = amrex::toLower (bcstr);
4747
4848 // Protect against copy/paste errors where user intended to add a BC but
@@ -133,9 +133,9 @@ amrex::Array<const std::string, 3> BCIface::get_dirichlet_udfs()
133133 amrex::ParmParse pp (bcid);
134134
135135 if (bct == BC::mass_inflow) {
136- if (pp.contains (inflow_key. c_str () )) {
136+ if (pp.contains (inflow_key)) {
137137 std::string val;
138- pp.get (inflow_key. c_str () , val);
138+ pp.get (inflow_key, val);
139139
140140 if (has_inflow_udf && (inflow_udf != val)) {
141141 amrex::Abort (
@@ -148,9 +148,9 @@ amrex::Array<const std::string, 3> BCIface::get_dirichlet_udfs()
148148 }
149149
150150 if (bct == BC::mass_inflow_outflow) {
151- if (pp.contains (inflow_outflow_key. c_str () )) {
151+ if (pp.contains (inflow_outflow_key)) {
152152 std::string val;
153- pp.get (inflow_outflow_key. c_str () , val);
153+ pp.get (inflow_outflow_key, val);
154154
155155 if (has_inflow_outflow_udf && (inflow_outflow_udf != val)) {
156156 amrex::Abort (
@@ -164,9 +164,9 @@ amrex::Array<const std::string, 3> BCIface::get_dirichlet_udfs()
164164 }
165165
166166 if (bct == BC::slip_wall) {
167- if (pp.contains (wall_key. c_str () )) {
167+ if (pp.contains (wall_key)) {
168168 std::string val;
169- pp.get (wall_key. c_str () , val);
169+ pp.get (wall_key, val);
170170
171171 if (has_wall_udf && (wall_udf != val)) {
172172 amrex::Abort (
@@ -276,7 +276,7 @@ void BCVelocity::read_values()
276276 const auto bct = bctype[ori];
277277
278278 amrex::ParmParse pp (bcid);
279- pp.queryarr (fname. c_str () , bcval[ori], 0 , ndim);
279+ pp.queryarr (fname, bcval[ori], 0 , ndim);
280280 if (bct == BC::no_slip_wall) {
281281 // Set normal component to zero
282282 bcval[ori][ori.coordDir ()] = 0.0 ;
@@ -366,9 +366,9 @@ void BCScalar::read_values()
366366 if (((bct == BC::mass_inflow) && (const_dirichlet_inflow)) ||
367367 ((bct == BC::mass_inflow_outflow) &&
368368 (const_dirichlet_inflow_outflow))) {
369- pp.getarr (fname. c_str () , bcval[ori], 0 , ndim);
369+ pp.getarr (fname, bcval[ori], 0 , ndim);
370370 } else {
371- pp.queryarr (fname. c_str () , bcval[ori], 0 , ndim);
371+ pp.queryarr (fname, bcval[ori], 0 , ndim);
372372 }
373373 }
374374}
@@ -386,7 +386,7 @@ void BCPressure::read_values()
386386
387387 amrex::ParmParse pp (bcid);
388388 if ((bct == BC::pressure_outflow)) {
389- pp.queryarr (fname. c_str () , bcval[ori], 0 , ndim);
389+ pp.queryarr (fname, bcval[ori], 0 , ndim);
390390 }
391391 }
392392}
0 commit comments