Changeset 25095
- Timestamp:
- 06/22/20 10:37:43 (5 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth
r24948 r25095 32 32 --with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \ 33 33 --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 36 35 ' 37 36 -
issm/trunk-jpl/jenkins/ross-debian_linux-solid_earth
r25034 r25095 23 23 --with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \ 24 24 --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 27 26 ' 28 27 -
issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m
r24945 r25095 16 16 17 17 % 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 20 23 if ~ismember([3,4],gmshmajorversion), 21 24 error(['gmshplanet: Gmsh major version ' gmshmajorversion ' not supported!']); -
issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py
r25065 r25095 3 3 import numpy as np 4 4 5 from IssmConfig import IssmConfig6 5 from MatlabFuncs import * 7 6 from mesh3dsurface import * … … 27 26 28 27 # 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 31 34 if gmshmajorversion not in [3, 4]: 32 35 raise RuntimeError('gmshplanet: Gmsh major version %s not supported!' % gmshmajorversion) -
issm/trunk-jpl/src/wrappers/IssmConfig/IssmConfig.cpp
r24942 r25095 107 107 #endif 108 108 } 109 else if(strcmp(name,"_GMSH_VERSION_MAJOR_")==0){110 #ifdef _GMSH_VERSION_MAJOR_111 value = IssmDouble(_GMSH_VERSION_MAJOR_);112 #else113 _error_("_GMSH_VERSION_MAJOR_ not found in config.h");114 #endif115 }116 109 else if(strcmp(name,"ISSM_PREFIX")==0){ 117 110 isstring = true;
Note:
See TracChangeset
for help on using the changeset viewer.