Error formatting

This commit is contained in:
Ludwig Ahrens
2023-12-21 14:28:54 +01:00
parent de066bcde0
commit d61c379b0c

View File

@ -522,11 +522,9 @@ void FixElectrodeConp::setup_post_neighbor()
if (qtotal_var_style == VarStyle::EQUAL) {
const char *var_name = qtotal_var_name.c_str();
int var_id = input->variable->find(var_name);
if (var_id < 0)
error->all(FLERR, fmt::format("Variable '{}' for fix electrode does not exist", var_name));
if (var_id < 0) error->all(FLERR, "Variable '{}' for fix electrode does not exist", var_name);
if (!input->variable->equalstyle(var_id))
error->all(FLERR,
fmt::format("Variable '{}' for fix electrode is not equal-style", var_name));
error->all(FLERR, "Variable '{}' for fix electrode is not equal-style", var_name);
qtotal_var_id = var_id;
}