ug4
ug.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2015: G-CSC, Goethe University Frankfurt
3  * Author: Sebastian Reiter
4  *
5  * This file is part of UG4.
6  *
7  * UG4 is free software: you can redistribute it and/or modify it under the
8  * terms of the GNU Lesser General Public License version 3 (as published by the
9  * Free Software Foundation) with the following additional attribution
10  * requirements (according to LGPL/GPL v3 §7):
11  *
12  * (1) The following notice must be displayed in the Appropriate Legal Notices
13  * of covered and combined works: "Based on UG4 (www.ug4.org/license)".
14  *
15  * (2) The following notice must be displayed at a prominent place in the
16  * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".
17  *
18  * (3) The following bibliography is recommended for citation and must be
19  * preserved in all covered files:
20  * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively
21  * parallel geometric multigrid solver on hierarchically distributed grids.
22  * Computing and visualization in science 16, 4 (2013), 151-164"
23  * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel
24  * flexible software system for simulating pde based models on high performance
25  * computers. Computing and visualization in science 16, 4 (2013), 165-179"
26  *
27  * This program is distributed in the hope that it will be useful,
28  * but WITHOUT ANY WARRANTY; without even the implied warranty of
29  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30  * GNU Lesser General Public License for more details.
31  */
32 
33 #ifndef __H__UG__UG__
34 #define __H__UG__UG__
35 
36 #include <string>
37 
39 #include "common/ug_config.h"
40 
46 namespace ug
47 {
48 
50 // INFORMATION ON UG
52 
53 UG_API std::string UGGetVersionString();
54 
55 
57 // INITIALISATION AND FINALISATION
59 
65 UG_API int UGInit(int *argcp, char ***argvp, int parallelOutputProcRank = -1);
66 
68 
77 UG_API bool InitPaths(const char* argv0);
78 
80 
88 UG_API void SetRootPath(const std::string& strRoot);
89 UG_API void SetRootPath(const char* c_strRoot);
90 
92 UG_API void SetScriptPath(const std::string& strScript);
93 UG_API void SetScriptPath(const char* c_strScript);
94 
96 UG_API void SetAppsPath(const std::string& strApps);
97 UG_API void SetAppsPath(const char* c_strApps);
98 
100 UG_API void SetPluginPath(const std::string& strPlugin);
101 UG_API void SetPluginPath(const char* c_strPlugin);
102 
104 
110 UG_API int UGFinalize();
111 
113 
115 UG_API void UGForceExit();
116 
118 UG_API void UGOutputProfileStatsOnExit(bool bEnable);
119 
121 UG_API bool UGInitPlugins();
122 
124 UG_API void AbortRun();
129 
130 }// end of namespace
131 
132 #endif
#define UG_API
Definition: ug_config.h:65
the ug namespace
int UGInit(int *argcp, char ***argvp, int parallelOutputProcRank)
initializes ug
Definition: ug.cpp:224
UG_API std::string UGGetVersionString()
Returns the version number of the current ug-version.
Definition: ug.cpp:75
void SetScriptPath(const std::string &strScript)
Initializes the SCRIPT_PATH of ug::PathProvider.
Definition: ug.cpp:167
void UGOutputProfileStatsOnExit(bool bEnable)
Call with true, if profiling output is desired at the end of the show.
Definition: ug.cpp:324
void UGForceExit()
Calls UGFinalize and terminates the application.
Definition: ug.cpp:303
void SetPluginPath(const std::string &strPlugin)
Initializes the PLUGIN_PATH of ug::PathProvider.
Definition: ug.cpp:203
bool UGInitPlugins()
Init (if UG_PLUGINS is set) embedded or non-shared plugins.
Definition: ug.cpp:336
void AbortRun()
sets a flag, that the current run shall be aborted during the next call of TerminateAbortedRun()
Definition: ug.cpp:343
void ClearAbortRunFlag()
clears the abort-run-flag.
Definition: ug.cpp:348
void TerminateAbortedRun()
Terminates the current run if AbortRun() was called and the abort-run-flag is thus set to true.
Definition: ug.cpp:353
void SetAppsPath(const std::string &strApps)
Initializes the APPS_PATH of ug::PathProvider.
Definition: ug.cpp:185
void SetRootPath(const std::string &strRoot)
Initializes the paths of ug::PathProvider.
Definition: ug.cpp:143
bool InitPaths(const char *argv0)
Initializes the pathes of ug::PathProvider.
Definition: ug.cpp:84
int UGFinalize()
finalizes ug
Definition: ug.cpp:292