* to refer to parameters under the old name, and they will
* automatically be mapped to the new parameter name.
*
- * It is valid to reference in a parameter file to the same parameter
- * multiple times. The value that will ultimately be chosen in such
+ * It is valid to set the same parameter multiple times in an input file.
+ * The value that will ultimately be chosen in such
* cases is simply the last value set. This rule also applies to
* aliases, where the final value of a parameter is the last value
* set either through the current name of the parameter or through
"> that references an entry <"
+ existing_entry_name +
">, but the latter does not exist."));
+ // then also make sure that what is being referred to is in
+ // fact a parameter (not an alias or subsection)
+ Assert (entries->get_optional<std::string>(get_current_full_path(existing_entry_name) + path_separator + "value"),
+ ExcMessage ("You are trying to declare an alias entry <"
+ + alias_name +
+ "> that references an entry <"
+ + existing_entry_name +
+ ">, but the latter does not seem to be a "
+ "parameter declaration."));
+
// now also make sure that if the alias has already been
// declared, that it is also an alias and refers to the same