source: issm/oecreview/Archive/24684-25833/ISSM-25094-25095.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: 3.9 KB
  • ../trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth

     
    3131        --with-hdf5-dir=${ISSM_DIR}/externalpackages/petsc/install \
    3232        --with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \
    3333        --with-triangle-dir=${ISSM_DIR}/externalpackages/triangle/install \
    34         --with-boost-dir=${ISSM_DIR}/externalpackages/boost/install \
    35         --with-gmsh-dir=${ISSM_DIR}/externalpackages/gmsh/install
     34        --with-boost-dir=${ISSM_DIR}/externalpackages/boost/install
    3635'
    3736
    3837#-------------------#
  • ../trunk-jpl/src/wrappers/IssmConfig/IssmConfig.cpp

     
    106106                _error_("_DAKOTA_VERSION_ not found in config.h");
    107107                #endif
    108108        }
    109         else if(strcmp(name,"_GMSH_VERSION_MAJOR_")==0){
    110                 #ifdef _GMSH_VERSION_MAJOR_
    111                 value = IssmDouble(_GMSH_VERSION_MAJOR_);
    112                 #else
    113                 _error_("_GMSH_VERSION_MAJOR_ not found in config.h");
    114                 #endif
    115         }
    116109        else if(strcmp(name,"ISSM_PREFIX")==0){
    117110                isstring = true;
    118111                svalue =xNew<char>(strlen(ISSM_PREFIX)+1);
  • ../trunk-jpl/jenkins/ross-debian_linux-solid_earth

     
    2222        --with-hdf5-dir=${ISSM_DIR}/externalpackages/petsc/install \
    2323        --with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \
    2424        --with-triangle-dir=${ISSM_DIR}/externalpackages/triangle/install \
    25         --with-boost-dir=${ISSM_DIR}/externalpackages/boost/install \
    26         --with-gmsh-dir=${ISSM_DIR}/externalpackages/gmsh/install \
     25        --with-boost-dir=${ISSM_DIR}/externalpackages/boost/install
    2726'
    2827
    2928#-------------------#
  • ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py

     
    22
    33import numpy as np
    44
    5 from IssmConfig import IssmConfig
    65from MatlabFuncs import *
    76from mesh3dsurface import *
    87from pairoptions import *
     
    2625    '''
    2726
    2827    # Get Gmsh version
    29     gmshmajorversion = IssmConfig('_GMSH_VERSION_MAJOR_')[0] # Stored as IssmDouble, which gets instantiated as a tuple in Python
    30 
     28    args = "gmsh -info | grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut - d '.' -f1"
     29    proc = subprocess.Popen(args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     30    outs, errs = proc.communicate()
     31    if errs != '':
     32        raise Exception("gmshplanet: call to gmsh failed: {}".format(errs))
     33    gmshmajorversion = outs
    3134    if gmshmajorversion not in [3, 4]:
    3235        raise RuntimeError('gmshplanet: Gmsh major version %s not supported!' % gmshmajorversion)
    3336
  • ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m

     
    1515%      md.mesh=gmshplanet('radius',6000,'resolution',100);
    1616
    1717        % Get Gmsh version
    18         gmshmajorversion = IssmConfig('_GMSH_VERSION_MAJOR_');
    19 
     18        [s,r]=system(['gmsh -info | grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut - d ''.'' -f1'])
     19        if s~=0,
     20                error(r);
     21        end
     22        gmshmajorversion=r
    2023        if ~ismember([3,4],gmshmajorversion),
    2124                error(['gmshplanet: Gmsh major version ' gmshmajorversion ' not supported!']);
    2225        end
Note: See TracBrowser for help on using the repository browser.