MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / printNameValueSourceLine

Function printNameValueSourceLine

src/sys/options.cxx:368–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366/// Helper function to print `key = value` with optional source
367template <class T>
368void printNameValueSourceLine(const Options& option, const T& value) {
369 output_info.write(_("\tOption {} = {}"), option.str(), value);
370 if (option.hasAttribute("source")) {
371 // Specify the source of the setting
372 output_info.write(" ({})",
373 bout::utils::variantToString(option.attributes.at("source")));
374 }
375 output_info.write("\n");
376}
377} // namespace
378
379template <>

Callers 7

string>Method · 0.85
as<int>Method · 0.85
as<BoutReal>Method · 0.85
as<bool>Method · 0.85
as<Array<BoutReal>>Method · 0.85
as<Matrix<BoutReal>>Method · 0.85
as<Tensor<BoutReal>>Method · 0.85

Calls 2

writeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected