source: issm/oecreview/Archive/24684-25833/ISSM-25121-25122.diff@ 27230

Last change on this file since 27230 was 25834, checked in by Mathieu Morlighem, 4 years ago

CHG: added 24684-25833

File size: 2.0 KB
  • ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py

     
    128128    #       "-format" option.
    129129    #
    130130    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)
    132132    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)
    134134
    135135    #import mesh:  {{{
    136136    fid = open('sphere.msh', 'r')
  • ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m

     
    1515%      md.mesh=gmshplanet('radius',6000,'resolution',100);
    1616
    1717        % 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']);
    1919        if s~=0,
    2020                error(r);
    2121        end
    22         gmshmajorversion=str2num(r)
     22        gmshmajorversion=str2num(r);
    2323        if ~ismember([3,4],gmshmajorversion),
    2424                error(['gmshplanet: Gmsh major version ' gmshmajorversion ' not supported!']);
    2525        end
     
    138138        %               "-format" option.
    139139        %
    140140        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']);
    142142        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']);
    144144        end
    145145
    146146        %import mesh:  {{{
Note: See TracBrowser for help on using the repository browser.