Cantera  3.1.0a1
Loading...
Searching...
No Matches
global.cpp File Reference
#include "cantera/base/FactoryBase.h"
#include "application.h"
#include "cantera/base/AnyMap.h"
#include <boost/stacktrace.hpp>
#include <boost/core/demangle.hpp>
#include <signal.h>
Include dependency graph for global.cpp:

Go to the source code of this file.

Namespaces

namespace  Cantera
 Namespace for the Cantera kernel.
 

Functions

static Applicationapp ()
 Return a pointer to the application object.
 
void setLogger (Logger *logwriter)
 Install a logger.
 
void writelog_direct (const string &msg)
 Write a message to the screen.
 
void writelogendl ()
 Write an end of line character to the screen and flush output.
 
void writeline (char repeat, size_t count, bool endl_after, bool endl_before)
 
void _warn_deprecated (const string &method, const string &extra)
 
void _warn (const string &warning, const string &method, const string &extra)
 
void use_legacy_rate_constants (bool legacy=true)
 Set definition used for rate constant calculation.
 
bool legacy_rate_constants_used ()
 Returns true if legacy rate constant definition is used.
 
void printStackTraceOnSegfault ()
 Enables printing a stacktrace to std::err if a segfault occurs.
 
void appdelete ()
 Delete and free all memory associated with the application.
 
void thread_complete ()
 Delete and free memory allocated per thread in multithreaded applications.
 
void addDirectory (const string &dir)
 Add a directory to the data file search path.
 
string getDataDirectories (const string &sep)
 Get the Cantera data directories.
 
string findInputFile (const string &name)
 Find an input file.
 
void loadExtension (const string &extType, const string &name)
 Load an extension implementing user-defined models.
 
void loadExtensions (const AnyMap &node)
 Load extensions providing user-defined models from the extensions section of the given node.
 
void searchPythonVersions (const string &versions)
 Set the versions of Python to try when loading user-defined extensions, in order of preference.
 
bool debugModeEnabled ()
 Returns true if Cantera was compiled in debug mode.
 
bool usesHDF5 ()
 Returns true if Cantera was compiled with C++ HDF5 support.
 
string demangle (const std::type_info &type)
 Convert a type name to a human readable string, using boost::core::demangle if available.
 
Global Warning Settings
void suppress_deprecation_warnings ()
 Globally disable printing of deprecation warnings.
 
void make_deprecation_warnings_fatal ()
 Turns deprecation warnings into exceptions.
 
void suppress_warnings ()
 Globally disable printing of (user) warnings.
 
bool warnings_suppressed ()
 Returns true if warnings should be suppressed.
 
void make_warnings_fatal ()
 Turns Cantera warnings into exceptions.
 
void suppress_thermo_warnings (bool suppress=true)
 Globally disable printing of warnings about problematic thermo data, such as NASA polynomials with discontinuities at the midpoint temperature.
 
bool thermo_warnings_suppressed ()
 Returns true if thermo warnings should be suppressed.
 
Cantera Version Information
string version ()
 Returns the Cantera version.
 
string gitCommit ()
 Returns the hash of the git commit from which Cantera was compiled, if known.
 

Macro Definition Documentation

◆ BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED

#define BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED

Definition at line 10 of file global.cpp.