From: Wolfgang Bangerth Date: Tue, 6 Jun 2023 14:34:41 +0000 (-0600) Subject: Minor updates to step-62. X-Git-Tag: v9.5.0-rc1~150^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15317%2Fhead;p=dealii.git Minor updates to step-62. --- diff --git a/examples/step-62/step-62.cc b/examples/step-62/step-62.cc index 3d31085566..eef3c54135 100644 --- a/examples/step-62/step-62.cc +++ b/examples/step-62/step-62.cc @@ -1386,9 +1386,7 @@ int main(int argc, char *argv[]) // Each of the simulations (displacement and calibration) is stored in a // separate HDF5 group: - const std::vector group_names = {"displacement", - "calibration"}; - for (auto group_name : group_names) + for (const std::string &group_name : {"displacement", "calibration"}) { // For each of these two group names, we now create the group and put // attributes into these groups. @@ -1420,7 +1418,7 @@ int main(int argc, char *argv[]) group.set_attribute("youngs_modulus", 270000000000.0); group.set_attribute("material_a_rho", 3200); - if (group_name == std::string("displacement")) + if (group_name == "displacement") group.set_attribute("material_b_rho", 2000); else group.set_attribute("material_b_rho", 3200);