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

add sendInfo, sendWarning, sendError

parent 8af49f30
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,9 @@ class client :
_GMSH_START = 1
_GMSH_STOP = 2
_GMSH_INFO = 10
_GMSH_WARNING = 11
_GMSH_ERROR = 12
_GMSH_PROGRESS = 13
_GMSH_MERGE_FILE = 20
_GMSH_PARSE_STRING = 21
_GMSH_PARAMETER = 23
......@@ -277,6 +280,24 @@ class client :
#self._send(self._GMSH_PARSE_STRING, 'Merge "' + filename + '";')
self._send(self._GMSH_MERGE_FILE,filename)
def sendInfo(self, msg) :
if not self.socket :
print msg
return
self._send(self._GMSH_INFO, msg)
def sendWarning(self, msg) :
if not self.socket :
print msg
return
self._send(self._GMSH_WARNING, msg)
def sendError(self, msg) :
if not self.socket :
print msg
return
self._send(self._GMSH_ERROR, msg)
def preProcess(self, filename) :
if not self.socket :
return
......
lc = 0.01;
lc = 0.02;
nn = 40; // mesh subdivisions per turn
DefineConstant
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment