diff --git a/src/userInputParameters/userInputParameters.cc b/src/userInputParameters/userInputParameters.cc index d8dffc338..a1f460ddb 100644 --- a/src/userInputParameters/userInputParameters.cc +++ b/src/userInputParameters/userInputParameters.cc @@ -643,9 +643,9 @@ userInputParameters::userInputParameters(inputFileReader &input_fi /*---------------------- | Pinning point -----------------------*/ - std::string pinning_text = "Pinning point: "; for (unsigned int i = 0; i < number_of_variables; i++) { + std::string pinning_text = "Pinning point: "; pinning_text.append(input_file_reader.var_names.at(i)); parameter_handler.enter_subsection(pinning_text);