Skip to content
Snippets Groups Projects
Commit 638fb7bc authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

add GmshMergePostProcessing to the API

parent 6a767f8e
No related branches found
No related tags found
No related merge requests found
...@@ -127,15 +127,21 @@ int GmshGetOption(const std::string &category, const std::string &name, ...@@ -127,15 +127,21 @@ int GmshGetOption(const std::string &category, const std::string &name,
return ColorOption(GMSH_GET, category.c_str(), index, name.c_str(), value); return ColorOption(GMSH_GET, category.c_str(), index, name.c_str(), value);
} }
int GmshOpenProject(const std::string &fileName)
{
OpenProject(fileName);
return 1;
}
int GmshMergeFile(const std::string &fileName) int GmshMergeFile(const std::string &fileName)
{ {
return MergeFile(fileName, true); return MergeFile(fileName, true);
} }
int GmshOpenProject(const std::string &fileName) int GmshMergePostProcessingFile(const std::string &fileName)
{ {
OpenProject(fileName); return MergePostProcessingFile(fileName, CTX::instance()->solver.autoShowLastStep,
return 1; CTX::instance()->solver.autoHideNewViews, true);
} }
int GmshWriteFile(const std::string &fileName) int GmshWriteFile(const std::string &fileName)
......
...@@ -26,8 +26,9 @@ int GmshGetOption(const std::string &category, const std::string &name, ...@@ -26,8 +26,9 @@ int GmshGetOption(const std::string &category, const std::string &name,
double &value, int index=0); double &value, int index=0);
int GmshGetOption(const std::string &category, const std::string &name, int GmshGetOption(const std::string &category, const std::string &name,
unsigned int &value, int index=0); unsigned int &value, int index=0);
int GmshMergeFile(const std::string &fileName);
int GmshOpenProject(const std::string &fileName); int GmshOpenProject(const std::string &fileName);
int GmshMergeFile(const std::string &fileName);
int GmshMergePostProcessingFile(const std::string &fileName);
int GmshWriteFile(const std::string &fileName); int GmshWriteFile(const std::string &fileName);
int GmshFinalize(); int GmshFinalize();
int GmshBatch(); int GmshBatch();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment