source: issm/oecreview/Archive/24684-25833/ISSM-25343-25344.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: 1.4 KB
  • ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py

     
    2525    '''
    2626
    2727    # Get Gmsh version
    28     subproc_args = "gmsh -info | command grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut -d '.' -f1"
     28    subproc_args = "gmsh -info 2>&1 | command grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut -d '.' -f1"
    2929    subproc = subprocess.Popen(subproc_args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    3030    outs, errs = subproc.communicate()
    3131    if errs != '':
  • ../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 | command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']);
     18        [s,r]=system(['gmsh -info 2>&1 | command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']);
    1919        if s~=0,
    2020                error(r);
    2121        end
Note: See TracBrowser for help on using the repository browser.