Changeset 25098
- Timestamp:
- 06/22/20 11:25:37 (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
r25095 r25098 16 16 17 17 % Get Gmsh version 18 [s,r]=system(['gmsh -info | grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut - 18 [s,r]=system(['gmsh -info | 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
r25096 r25098 26 26 27 27 # Get Gmsh version 28 args = "gmsh -info | grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut - 28 args = "gmsh -info | grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut -d '.' -f1" 29 29 proc = subprocess.Popen(args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 30 30 outs, errs = proc.communicate()
Note:
See TracChangeset
for help on using the changeset viewer.