Skip to content

Commit

Permalink
Merge pull request #25935 from GiudGiud/PR_misc_2
Browse files Browse the repository at this point in the history
One misc items on parameters
  • Loading branch information
GiudGiud authored Nov 2, 2023
2 parents 2c49597 + 992d2de commit e85a1a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions framework/include/utils/InputParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -1860,10 +1860,11 @@ InputParameters::transferParam(const InputParameters & source_params,
{
const auto name = source_params.checkForRename(std::string(name_in));
if (!source_params.have_parameter<T>(name) && !source_params.hasCoupledValue(name))
mooseError(
"The '",
name_in,
"' parameter could not be transferred because it does not exist in the source parameters");
mooseError("The '",
name_in,
"' parameter could not be transferred because it does not exist with type '",
MooseUtils::prettyCppType<T>(),
"' in the source parameters");
if (name != name_in)
mooseWarning("The transferred parameter " + name_in + " is deprecated in favor of " + name +
" in the source parameters. The new name should likely be used for the parameter "
Expand Down

0 comments on commit e85a1a9

Please sign in to comment.