[OneD] reformat warnings

This commit is contained in:
Ingmar Schoegl 2019-11-03 18:59:14 -06:00 committed by Ray Speth
parent f5f7227e79
commit 2fdbce42b2
3 changed files with 6 additions and 6 deletions

View file

@ -129,9 +129,9 @@ void Domain1D::restore(const XML_Node& dom, doublereal* soln, int loglevel)
getFloatArray(*nodes[i], values, false);
if (values.size() != nComponents()) {
if (loglevel > 0) {
writelog("Warning: Domain1D::restore: Got an array of length {}"
" when one of length {} was expected. "
"Tolerances for individual species may not be preserved.\n",
warn_user("Domain1D::restore", "Received an array of length "
"{} when one of length {} was expected. Tolerances for "
"individual species may not be preserved.",
values.size(), nComponents());
}
// The number of components will differ when restoring from a

View file

@ -124,8 +124,8 @@ void Sim1D::restore(const std::string& fname, const std::string& id,
for (size_t m = 0; m < nDomains(); m++) {
Domain1D& dom = domain(m);
if (loglevel > 0 && xd[m]->attrib("id") != dom.id()) {
writelog("Warning: domain names do not match: '" +
(*xd[m])["id"] + + "' and '" + dom.id() + "'\n");
warn_user("Sim1D::restore", "Domain names do not match: "
"'{} and '{}'", (*xd[m])["id"], dom.id());
}
dom.resize(domain(m).nComponents(), intValue((*xd[m])["points"]));
}

View file

@ -760,7 +760,7 @@ void StFlow::restore(const XML_Node& dom, doublereal* soln, int loglevel)
// This may occur when restoring from a mechanism with a different
// number of species.
if (loglevel > 0) {
writelog("\nWarning: StFlow::restore: species_enabled is "
warn_user("StFlow::restore", "species_enabled is "
"length {} but should be length {}. Enabling all species "
"equations by default.", x.size(), m_nsp);
}