[25834] | 1 | Index: ../trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth (revision 25094)
|
---|
| 4 | +++ ../trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth (revision 25095)
|
---|
| 5 | @@ -31,8 +31,7 @@
|
---|
| 6 | --with-hdf5-dir=${ISSM_DIR}/externalpackages/petsc/install \
|
---|
| 7 | --with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \
|
---|
| 8 | --with-triangle-dir=${ISSM_DIR}/externalpackages/triangle/install \
|
---|
| 9 | - --with-boost-dir=${ISSM_DIR}/externalpackages/boost/install \
|
---|
| 10 | - --with-gmsh-dir=${ISSM_DIR}/externalpackages/gmsh/install
|
---|
| 11 | + --with-boost-dir=${ISSM_DIR}/externalpackages/boost/install
|
---|
| 12 | '
|
---|
| 13 |
|
---|
| 14 | #-------------------#
|
---|
| 15 | Index: ../trunk-jpl/src/wrappers/IssmConfig/IssmConfig.cpp
|
---|
| 16 | ===================================================================
|
---|
| 17 | --- ../trunk-jpl/src/wrappers/IssmConfig/IssmConfig.cpp (revision 25094)
|
---|
| 18 | +++ ../trunk-jpl/src/wrappers/IssmConfig/IssmConfig.cpp (revision 25095)
|
---|
| 19 | @@ -106,13 +106,6 @@
|
---|
| 20 | _error_("_DAKOTA_VERSION_ not found in config.h");
|
---|
| 21 | #endif
|
---|
| 22 | }
|
---|
| 23 | - else if(strcmp(name,"_GMSH_VERSION_MAJOR_")==0){
|
---|
| 24 | - #ifdef _GMSH_VERSION_MAJOR_
|
---|
| 25 | - value = IssmDouble(_GMSH_VERSION_MAJOR_);
|
---|
| 26 | - #else
|
---|
| 27 | - _error_("_GMSH_VERSION_MAJOR_ not found in config.h");
|
---|
| 28 | - #endif
|
---|
| 29 | - }
|
---|
| 30 | else if(strcmp(name,"ISSM_PREFIX")==0){
|
---|
| 31 | isstring = true;
|
---|
| 32 | svalue =xNew<char>(strlen(ISSM_PREFIX)+1);
|
---|
| 33 | Index: ../trunk-jpl/jenkins/ross-debian_linux-solid_earth
|
---|
| 34 | ===================================================================
|
---|
| 35 | --- ../trunk-jpl/jenkins/ross-debian_linux-solid_earth (revision 25094)
|
---|
| 36 | +++ ../trunk-jpl/jenkins/ross-debian_linux-solid_earth (revision 25095)
|
---|
| 37 | @@ -22,8 +22,7 @@
|
---|
| 38 | --with-hdf5-dir=${ISSM_DIR}/externalpackages/petsc/install \
|
---|
| 39 | --with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \
|
---|
| 40 | --with-triangle-dir=${ISSM_DIR}/externalpackages/triangle/install \
|
---|
| 41 | - --with-boost-dir=${ISSM_DIR}/externalpackages/boost/install \
|
---|
| 42 | - --with-gmsh-dir=${ISSM_DIR}/externalpackages/gmsh/install \
|
---|
| 43 | + --with-boost-dir=${ISSM_DIR}/externalpackages/boost/install
|
---|
| 44 | '
|
---|
| 45 |
|
---|
| 46 | #-------------------#
|
---|
| 47 | Index: ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py
|
---|
| 48 | ===================================================================
|
---|
| 49 | --- ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py (revision 25094)
|
---|
| 50 | +++ ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py (revision 25095)
|
---|
| 51 | @@ -2,7 +2,6 @@
|
---|
| 52 |
|
---|
| 53 | import numpy as np
|
---|
| 54 |
|
---|
| 55 | -from IssmConfig import IssmConfig
|
---|
| 56 | from MatlabFuncs import *
|
---|
| 57 | from mesh3dsurface import *
|
---|
| 58 | from pairoptions import *
|
---|
| 59 | @@ -26,8 +25,12 @@
|
---|
| 60 | '''
|
---|
| 61 |
|
---|
| 62 | # Get Gmsh version
|
---|
| 63 | - gmshmajorversion = IssmConfig('_GMSH_VERSION_MAJOR_')[0] # Stored as IssmDouble, which gets instantiated as a tuple in Python
|
---|
| 64 | -
|
---|
| 65 | + args = "gmsh -info | grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut - d '.' -f1"
|
---|
| 66 | + proc = subprocess.Popen(args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
---|
| 67 | + outs, errs = proc.communicate()
|
---|
| 68 | + if errs != '':
|
---|
| 69 | + raise Exception("gmshplanet: call to gmsh failed: {}".format(errs))
|
---|
| 70 | + gmshmajorversion = outs
|
---|
| 71 | if gmshmajorversion not in [3, 4]:
|
---|
| 72 | raise RuntimeError('gmshplanet: Gmsh major version %s not supported!' % gmshmajorversion)
|
---|
| 73 |
|
---|
| 74 | Index: ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m
|
---|
| 75 | ===================================================================
|
---|
| 76 | --- ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m (revision 25094)
|
---|
| 77 | +++ ../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m (revision 25095)
|
---|
| 78 | @@ -15,8 +15,11 @@
|
---|
| 79 | % md.mesh=gmshplanet('radius',6000,'resolution',100);
|
---|
| 80 |
|
---|
| 81 | % Get Gmsh version
|
---|
| 82 | - gmshmajorversion = IssmConfig('_GMSH_VERSION_MAJOR_');
|
---|
| 83 | -
|
---|
| 84 | + [s,r]=system(['gmsh -info | grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut - d ''.'' -f1'])
|
---|
| 85 | + if s~=0,
|
---|
| 86 | + error(r);
|
---|
| 87 | + end
|
---|
| 88 | + gmshmajorversion=r
|
---|
| 89 | if ~ismember([3,4],gmshmajorversion),
|
---|
| 90 | error(['gmshplanet: Gmsh major version ' gmshmajorversion ' not supported!']);
|
---|
| 91 | end
|
---|