make kim_query log of variable setting look more like other KIM log messages

this adds BEGIN/END marker comments and echoes the actual command line
that the kim_query command implicitly executes
This commit is contained in:
Axel Kohlmeyer
2019-07-29 16:57:34 -04:00
parent 514608b82f
commit 2ffc35297b

View File

@ -305,7 +305,9 @@ void KimQuery::echo_var_assign(std::string const & name,
{
if (comm->me == 0) {
std::string mesg;
mesg = name + " = " + value + "\n";
mesg = "#=== BEGIN kim_query =========================================\n";
mesg += "variable " + name + " string " + value + "\n";
mesg += "#=== END kim_query ===========================================\n";
input->write_echo(mesg.c_str());
}
}