source:
issm/oecreview/Archive/24684-25833/ISSM-25343-25344.diff@
25834
Last change on this file since 25834 was 25834, checked in by , 4 years ago | |
---|---|
File size: 1.4 KB |
-
../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py
25 25 ''' 26 26 27 27 # Get Gmsh version 28 subproc_args = "gmsh -info | command grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut -d '.' -f1"28 subproc_args = "gmsh -info 2>&1 | command grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut -d '.' -f1" 29 29 subproc = subprocess.Popen(subproc_args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 30 30 outs, errs = subproc.communicate() 31 31 if errs != '': -
../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m
15 15 % md.mesh=gmshplanet('radius',6000,'resolution',100); 16 16 17 17 % Get Gmsh version 18 [s,r]=system(['gmsh -info | command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']);18 [s,r]=system(['gmsh -info 2>&1 | command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']); 19 19 if s~=0, 20 20 error(r); 21 21 end
Note:
See TracBrowser
for help on using the repository browser.