[25834] | 1 | Index: ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py (revision 25121)
|
---|
| 4 | +++ ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py (revision 25122)
|
---|
| 5 | @@ -128,9 +128,9 @@
|
---|
| 6 | # "-format" option.
|
---|
| 7 | #
|
---|
| 8 | if options.exist('refine'):
|
---|
| 9 | - subprocess.call('gmsh -v 0 -tol 1e-8 -2 -format msh2 sphere.geo -bgm sphere.pos', shell=True)
|
---|
| 10 | + subprocess.call('gmsh -tol 1e-8 -2 -format msh2 sphere.geo -bgm sphere.pos', shell=True)
|
---|
| 11 | else:
|
---|
| 12 | - subprocess.call('gmsh -v 0 -tol 1e-8 -2 -format msh2 sphere.geo', shell=True)
|
---|
| 13 | + subprocess.call('gmsh -tol 1e-8 -2 -format msh2 sphere.geo', shell=True)
|
---|
| 14 |
|
---|
| 15 | #import mesh: {{{
|
---|
| 16 | fid = open('sphere.msh', 'r')
|
---|
| 17 | Index: ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m
|
---|
| 18 | ===================================================================
|
---|
| 19 | --- ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m (revision 25121)
|
---|
| 20 | +++ ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m (revision 25122)
|
---|
| 21 | @@ -15,11 +15,11 @@
|
---|
| 22 | % md.mesh=gmshplanet('radius',6000,'resolution',100);
|
---|
| 23 |
|
---|
| 24 | % Get Gmsh version
|
---|
| 25 | - [s,r]=system(['gmsh -info | grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1'])
|
---|
| 26 | + [s,r]=system(['gmsh -info | grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']);
|
---|
| 27 | if s~=0,
|
---|
| 28 | error(r);
|
---|
| 29 | end
|
---|
| 30 | - gmshmajorversion=str2num(r)
|
---|
| 31 | + gmshmajorversion=str2num(r);
|
---|
| 32 | if ~ismember([3,4],gmshmajorversion),
|
---|
| 33 | error(['gmshplanet: Gmsh major version ' gmshmajorversion ' not supported!']);
|
---|
| 34 | end
|
---|
| 35 | @@ -138,9 +138,9 @@
|
---|
| 36 | % "-format" option.
|
---|
| 37 | %
|
---|
| 38 | if exist(options,'refine'),
|
---|
| 39 | - system([gmshpath ' -v 0 -tol 1e-8 -2 -format msh2 sphere.geo -bgm sphere.pos']);
|
---|
| 40 | + system([gmshpath ' -tol 1e-8 -2 -format msh2 sphere.geo -bgm sphere.pos']);
|
---|
| 41 | else
|
---|
| 42 | - system([gmshpath ' -v 0 -tol 1e-8 -2 -format msh2 sphere.geo']);
|
---|
| 43 | + system([gmshpath ' -tol 1e-8 -2 -format msh2 sphere.geo']);
|
---|
| 44 | end
|
---|
| 45 |
|
---|
| 46 | %import mesh: {{{
|
---|