From aaf33eb4f7edae6a5f1a3c98fcba88732a88fb24 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 13 Sep 2009 21:06:36 +0000 Subject: [PATCH] GmshWriteFile --- Common/Gmsh.cpp | 6 ++++++ Common/Gmsh.h | 1 + 2 files changed, 7 insertions(+) diff --git a/Common/Gmsh.cpp b/Common/Gmsh.cpp index f9fa8c7831..36e1680bf8 100644 --- a/Common/Gmsh.cpp +++ b/Common/Gmsh.cpp @@ -104,6 +104,12 @@ int GmshMergeFile(std::string fileName) return MergeFile(fileName, true); } +int GmshWriteFile(std::string fileName) +{ + CreateOutputFile(fileName, FORMAT_AUTO); + return 1; +} + int GmshFinalize() { return 1; diff --git a/Common/Gmsh.h b/Common/Gmsh.h index 8230d1a6ee..cb71d5da65 100644 --- a/Common/Gmsh.h +++ b/Common/Gmsh.h @@ -21,6 +21,7 @@ int GmshGetOption(std::string category, std::string name, std::string &value, in int GmshGetOption(std::string category, std::string name, double &value, int index=0); int GmshGetOption(std::string category, std::string name, unsigned int &value, int index=0); int GmshMergeFile(std::string fileName); +int GmshWriteFile(std::string fileName); int GmshFinalize(); int GmshBatch(); -- GitLab