source:
issm/oecreview/Archive/24684-25833/ISSM-25094-25095.diff@
27230
Last change on this file since 27230 was 25834, checked in by , 4 years ago | |
---|---|
File size: 3.9 KB |
-
../trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth
31 31 --with-hdf5-dir=${ISSM_DIR}/externalpackages/petsc/install \ 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 38 37 #-------------------# -
../trunk-jpl/src/wrappers/IssmConfig/IssmConfig.cpp
106 106 _error_("_DAKOTA_VERSION_ not found in config.h"); 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; 118 111 svalue =xNew<char>(strlen(ISSM_PREFIX)+1); -
../trunk-jpl/jenkins/ross-debian_linux-solid_earth
22 22 --with-hdf5-dir=${ISSM_DIR}/externalpackages/petsc/install \ 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 29 28 #-------------------# -
../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py
2 2 3 3 import numpy as np 4 4 5 from IssmConfig import IssmConfig6 5 from MatlabFuncs import * 7 6 from mesh3dsurface import * 8 7 from pairoptions import * … … 26 25 ''' 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) 33 36 -
../trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m
15 15 % md.mesh=gmshplanet('radius',6000,'resolution',100); 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!']); 22 25 end
Note:
See TracBrowser
for help on using the repository browser.