5#include "precice/impl/versions.hpp"
26 out <<
"<!-- generated with preCICE " PRECICE_VERSION
" -->\n";
38 config.
format =
"precice-tools: %ColorizedSeverity%%Message%";
39 config.
filter =
"%Severity% >= info";
40 config.
type =
"stream";
49 fmt::print(
"Checking {} for syntax and basic setup issues...\n", filename);
53 if (!wasInitialized) {
61 fmt::print(fmt::emphasis::bold | fg(fmt::color::green),
"No major issues detected\n", filename);
62 if (!wasInitialized) {
72 return {precice::versionInformation};
Main class for preCICE XML configuration tree.
xml::XMLTag & getXMLTag()
Returns root xml tag to start the automatic configuration process.
static bool isMPIInitialized()
Return true if MPI is initialized.
static void finalizeTestingMPI()
Unconditionally finalizes MPI environment.
static void initializeTestingMPI(int *argc, char ***argv)
static void finalize()
Finalizes Petsc environment.
void setupLogging(LoggingConfiguration configs, bool enabled)
Configures the logging from a LoggingConfiguration.
void setMPIRank(int const rank)
void toMarkdown(std::ostream &out, const XMLTag &tag)
Prints the Markdown reference for the given tag.
void toDTD(std::ostream &out, const XMLTag &tag)
Prints the DTD reference for the given tag.
void toDocumentation(std::ostream &out, const XMLTag &tag)
Prints the XML reference for the given tag.
void configure(XMLTag &tag, const precice::xml::ConfigurationContext &context, std::string_view configurationFilename)
Configures the given configuration from file configurationFilename.
Main namespace of the precice library.
std::string getVersionInformation()
Returns information on the version of preCICE.
Holds the configuration for one logging backend (sink) and takes care of default values.
Tightly coupled to the parameters of Participant()