Changeset 25344
- Timestamp:
- 08/04/20 14:50:34 (5 years ago)
- Location:
- issm/trunk-jpl/src/m/mesh/planet/gmsh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m
r25189 r25344 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); -
issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py
r25189 r25344 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()
Note:
See TracChangeset
for help on using the changeset viewer.