source:
issm/oecreview/Archive/24684-25833/ISSM-25121-25122.diff@
25834
Last change on this file since 25834 was 25834, checked in by , 4 years ago | |
---|---|
File size: 2.0 KB |
-
../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py
128 128 # "-format" option. 129 129 # 130 130 if options.exist('refine'): 131 subprocess.call('gmsh - v 0 -tol 1e-8 -2 -format msh2 sphere.geo -bgm sphere.pos', shell=True)131 subprocess.call('gmsh -tol 1e-8 -2 -format msh2 sphere.geo -bgm sphere.pos', shell=True) 132 132 else: 133 subprocess.call('gmsh - v 0 -tol 1e-8 -2 -format msh2 sphere.geo', shell=True)133 subprocess.call('gmsh -tol 1e-8 -2 -format msh2 sphere.geo', shell=True) 134 134 135 135 #import mesh: {{{ 136 136 fid = open('sphere.msh', 'r') -
../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 | grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']) 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); 21 21 end 22 gmshmajorversion=str2num(r) 22 gmshmajorversion=str2num(r); 23 23 if ~ismember([3,4],gmshmajorversion), 24 24 error(['gmshplanet: Gmsh major version ' gmshmajorversion ' not supported!']); 25 25 end … … 138 138 % "-format" option. 139 139 % 140 140 if exist(options,'refine'), 141 system([gmshpath ' - v 0 -tol 1e-8 -2 -format msh2 sphere.geo -bgm sphere.pos']);141 system([gmshpath ' -tol 1e-8 -2 -format msh2 sphere.geo -bgm sphere.pos']); 142 142 else 143 system([gmshpath ' - v 0 -tol 1e-8 -2 -format msh2 sphere.geo']);143 system([gmshpath ' -tol 1e-8 -2 -format msh2 sphere.geo']); 144 144 end 145 145 146 146 %import mesh: {{{
Note:
See TracBrowser
for help on using the repository browser.