Changeset 27560
- Timestamp:
- 02/08/23 12:09:29 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m
r27200 r27560 36 36 37 37 % Get Gmsh version 38 [s,r]=system(['gmsh -info 2>&1| command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']);39 if s~=0 ,40 error( r);38 [s,r]=system(['gmsh -info | command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']); 39 if s~=0 || contains(r, 'dyld'), 40 error(['gmshplanet: ' r]); 41 41 elseif isempty(r), 42 42 % If this function is called from one of our distributable packages, we … … 44 44 [filepath,name,ext]=fileparts(which('gmsh.')); 45 45 setenv('PATH',[filepath ':' getenv('PATH')]); 46 [s,r]=system(['gmsh -info 2>&1| command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']);47 if s~=0 ,48 error( r);46 [s,r]=system(['gmsh -info | command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']); 47 if s~=0 || contains(r, 'dyld'), 48 error(['gmshplanet: ' r]); 49 49 elseif isempty(r), 50 50 error('gmshplanet: Gmsh executable not found!');
Note:
See TracChangeset
for help on using the changeset viewer.