Changeset 27589
- Timestamp:
- 02/17/23 13:41:46 (2 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-matlab.sh
r27502 r27589 30 30 LIBGFORTRAN="/usr/lib/x86_64-linux-gnu/libgfortran.so.5.0.0" # Important that this is the library itself 31 31 LIBGFORTRAN_DIST="${ISSM_DIR}/lib/libgfortran.so.5" # Important the file name matches the SONAME entry in the binaries and other shared libraries which link to it 32 MATLAB_NROPTIONS="'benchmark','all','exclude',[125,126, 234,235,418,420,435,444,445,701,702,703,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1201,1202,1203,1204,1205,1206,1207,1208,1301,1302,1303,1304,1401,1402,1601,1602,2002,2003,2004,2006,2007,2008,2010,2011,2021,2051,2052,2053,2084,2085,2090,2101,2424,2425,3001:3200,3201,3202,3300,3480,3481,4001,4002,4003]" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded32 MATLAB_NROPTIONS="'benchmark','all','exclude',[125,126,129,234,235,418,420,435,444,445,701,702,703,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1201,1202,1203,1204,1205,1206,1207,1208,1301,1302,1303,1304,1401,1402,1601,1602,2002,2003,2004,2006,2007,2008,2010,2011,2021,2051,2052,2053,2084,2085,2090,2101,2424,2425,3001:3200,3201,3202,3300,3480,3481,4001,4002,4003]" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded 33 33 MATLAB_PATH="/usr/local/MATLAB/R2019b" 34 34 -
issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-python-3.sh
r27502 r27589 30 30 LIBGFORTRAN="/usr/lib/x86_64-linux-gnu/libgfortran.so.5.0.0" # Important that this is the library itself 31 31 LIBGFORTRAN_DIST="${ISSM_DIR}/lib/libgfortran.so.5" # Important the file name matches the SONAME entry in the binaries and other shared libraries which link to it 32 PYTHON_NROPTIONS="--benchmark all --exclude 125 126 234 235 418 420 435 444 445 701 702 703 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1201 1202 1203 1204 1205 1206 1207 1208 1301 1302 1303 1304 1401 1402 1601 1602 2002 2003 2004 2005 2006 2007 2008 2010 2011 2021 2051 2052 2053 2084 2085 2090 2101 2424 2425 3001:3200 3201 3202 3300 3480 3481 4001 4002 4003" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded32 PYTHON_NROPTIONS="--benchmark all --exclude 125 126 129 234 235 418 420 435 444 445 701 702 703 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1201 1202 1203 1204 1205 1206 1207 1208 1301 1302 1303 1304 1401 1402 1601 1602 2002 2003 2004 2005 2006 2007 2008 2010 2011 2021 2051 2052 2053 2084 2085 2090 2101 2424 2425 3001:3200 3201 3202 3300 3480 3481 4001 4002 4003" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded 33 33 34 34 ## Environment -
issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-matlab.sh
r27580 r27589 40 40 ## Constants 41 41 # 42 MATLAB_NROPTIONS="'benchmark','all','exclude',[125,126, 234,235,418,420,435,444,445,701,702,703,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1201,1202,1203,1204,1205,1206,1207,1208,1301,1302,1303,1304,1401,1402,1601,1602,2002,2003,2004,2006,2007,2008,2010,2011,2021,2051,2052,2053,2084,2085,2090,2101,2424,2425,3001:3200,3201,3202,3300,3480,3481,4001,4002,4003]" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded42 MATLAB_NROPTIONS="'benchmark','all','exclude',[125,126,129,234,235,418,420,435,444,445,701,702,703,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1201,1202,1203,1204,1205,1206,1207,1208,1301,1302,1303,1304,1401,1402,1601,1602,2002,2003,2004,2006,2007,2008,2010,2011,2021,2051,2052,2053,2084,2085,2090,2101,2424,2425,3001:3200,3201,3202,3300,3480,3481,4001,4002,4003]" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded 43 43 MATLAB_PATH="/Applications/MATLAB_R2022b.app" 44 44 … … 113 113 if [ -f ${ISSM_DIR}/externalpackages/gmt/install/bin/gmt-config ]; then 114 114 cp ${ISSM_DIR}/externalpackages/gmt/install/bin/gmt . 115 cp ${ISSM_DIR}/externalpackages/gmt/install/bin/gmtselect .116 115 else 117 116 echo "GMT not found" -
issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-python-3.sh
r27580 r27589 39 39 ## Constants 40 40 # 41 PYTHON_NROPTIONS="--benchmark all --exclude 125 126 234 235 418 420 435 444 445 701 702 703 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1201 1202 1203 1204 1205 1206 1207 1208 1301 1302 1303 1304 1401 1402 1601 1602 2002 2003 2004 2005 2006 2007 2008 2010 2011 2021 2051 2052 2053 2084 2085 2090 2101 2424 2425 3001:3200 3201 3202 3300 3480 3481 4001 4002 4003" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded41 PYTHON_NROPTIONS="--benchmark all --exclude 125 126 129 234 235 418 420 435 444 445 701 702 703 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1201 1202 1203 1204 1205 1206 1207 1208 1301 1302 1303 1304 1401 1402 1601 1602 2002 2003 2004 2005 2006 2007 2008 2010 2011 2021 2051 2052 2053 2084 2085 2090 2101 2424 2425 3001:3200 3201 3202 3300 3480 3481 4001 4002 4003" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded 42 42 43 43 ## Environment … … 105 105 if [ -f ${ISSM_DIR}/externalpackages/gmt/install/bin/gmt-config ]; then 106 106 cp ${ISSM_DIR}/externalpackages/gmt/install/bin/gmt . 107 cp ${ISSM_DIR}/externalpackages/gmt/install/bin/gmtselect .108 107 else 109 108 echo "GMT not found" -
issm/trunk-jpl/packagers/mac/test-issm-mac-binaries-matlab.sh
r27569 r27589 10 10 ## Constants 11 11 # 12 INSTALL_DIR= .13 MATLAB_NROPTIONS="'benchmark','all','exclude',[125,126, 234,235,418,420,435,444,445,701,702,703,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1201,1202,1203,1204,1205,1206,1207,1208,1301,1302,1303,1304,1401,1402,1601,1602,2002,2003,2004,2006,2007,2008,2010,2011,2021,2051,2052,2053,2084,2085,2090,2101,2424,2425,3001:3200,3201,3202,3300,3480,3481,4001,4002,4003]" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded12 INSTALL_DIR=${PWD} 13 MATLAB_NROPTIONS="'benchmark','all','exclude',[125,126,129,234,235,418,420,435,444,445,701,702,703,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1201,1202,1203,1204,1205,1206,1207,1208,1301,1302,1303,1304,1401,1402,1601,1602,2002,2003,2004,2006,2007,2008,2010,2011,2021,2051,2052,2053,2084,2085,2090,2101,2424,2425,3001:3200,3201,3202,3300,3480,3481,4001,4002,4003]" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded 14 14 MATLAB_PATH="/Applications/MATLAB_R2022b.app" 15 15 PKG="ISSM-macOS-MATLAB" -
issm/trunk-jpl/packagers/mac/test-issm-mac-binaries-python-3.sh
r27502 r27589 10 10 ## Constants 11 11 # 12 INSTALL_DIR= .12 INSTALL_DIR=${PWD} 13 13 PKG="ISSM-macOS-Python-3" 14 PYTHON_NROPTIONS="--benchmark all --exclude 125 126 234 235 418 420 435 444 445 701 702 703 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1201 1202 1203 1204 1205 1206 1207 1208 1301 1302 1303 1304 1401 1402 1601 1602 2002 2003 2004 2005 2006 2007 2008 2010 2011 2021 2051 2052 2053 2084 2085 2090 2101 2424 2425 3001:3200 3201 3202 3300 3480 3481 4001 4002 4003" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded14 PYTHON_NROPTIONS="--benchmark all --exclude 125 126 129 234 235 418 420 435 444 445 701 702 703 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1201 1202 1203 1204 1205 1206 1207 1208 1301 1302 1303 1304 1401 1402 1601 1602 2002 2003 2004 2005 2006 2007 2008 2010 2011 2021 2051 2052 2053 2084 2085 2090 2101 2424 2425 3001:3200 3201 3202 3300 3480 3481 4001 4002 4003" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded 15 15 16 16 COMPRESSED_PKG="${PKG}.zip" -
issm/trunk-jpl/src/m/coordsystems/gmtmask.m
r27369 r27589 5 5 % mask.ocean = gmtmask(md.mesh.lat,md.mesh.long); 6 6 % 7 % TODO: Standardize discovery of GMT bin path and whether or not we have GMT 8 % modules (i.e. `gmt select`) between this file, gmtmask.py, and 9 % gmtmaskparallel.m 7 10 8 11 %are we doing a recursive call? … … 31 34 %First, write our lat,long file for gmt: 32 35 nv=length(lat); 33 filename_all = ['all_vertices-' num2str(feature('GetPid')) '.txt']; 34 filename_oce = ['oce_vertices-' num2str(feature('GetPid')) '.txt']; 36 filename_suffix=[num2str(feature('GetPid')) '.txt']; 37 filename_all=['all_vertices-' filename_suffix]; 38 filename_oce=['oce_vertices-' filename_suffix]; 35 39 dlmwrite(filename_all,[long lat (1:nv)'],'delimiter','\t','precision',10); 36 40 37 41 %figure out which vertices are on the ocean, which one on the continent: 38 [status,result] = system(['gmt select ./' filename_all ' -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./' filename_oce]); 42 gmt_select_options='-h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s'; 43 [status,result]=system(['gmt select ./' filename_all ' ' gmt_select_options ' > ./' filename_oce]); 39 44 if status~=0, 40 error(result); 45 [status,result] = system(['gmtselect ./' filename_all ' ' gmt_select_options ' > ./' filename_oce]); 46 if status~=0, 47 error(result); 48 end 41 49 end 42 50 -
issm/trunk-jpl/src/m/coordsystems/gmtmask.py
r27453 r27589 10 10 11 11 def gmtmask(lat, long, *args): 12 """ GMTMASK- figure out which lat, long points are on the ocean12 """gmtmask - figure out which lat, long points are on the ocean 13 13 14 14 Usage: … … 44 44 45 45 # Figure out which vertices are on the ocean, which one on the continent: 46 subprocess.call('gmt select ./all_vertices.txt -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./oce_vertices.txt', shell=True) 46 gmt_select_options = '-h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s' 47 subproc_cmd = 'gmt select ./all_vertices.txt ' + gmt_select_options + ' > ./oce_vertices.txt' 48 subproc = subprocess.Popen(subproc_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) 49 outs, errs = subproc.communicate() 50 if errs != '': 51 subproc_cmd = 'gmtselect ./all_vertices.txt ' + gmt_select_options + ' > ./oce_vertices.txt' 52 subproc = subprocess.Popen(subproc_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) 53 outs, errs = subproc.communicate() 54 if errs != '': 55 raise RuntimeError('gmtmask: calls to both gmt and gmtselect failed: {}'.format(errs)) 47 56 48 57 # Read the con_vertices.txt file and flag our mesh vertices on the continent -
issm/trunk-jpl/src/m/coordsystems/gmtmaskparallel.m
r27201 r27589 27 27 28 28 %Find path to gmt, list all possible known paths to gmt (you may need to add yours to the list) 29 paths = {[issmdir() '/bin/gmt'],[issmdir() '/externalpackages/gmt/install/bin/gmt'],'/Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt'};30 gmtpath = '';31 32 if exist(i{1},'file'),33 gmtpath = i{1};29 paths = {[issmdir() '/bin'],[issmdir() '/externalpackages/gmt/install/bin'],'/Applications/GMT-5.4.3.app/Contents/Resources/bin'}; 30 gmt_path = ''; 31 for i=paths 32 if exist([i{1} '/gmt'],'file'), 33 gmt_path = i{1}; 34 34 break; 35 36 37 if isempty(gmtpath),35 end 36 end 37 if isempty(gmt_path), 38 38 error('gmt not found, make sure it is properly installed, or add its path to this file (line 26)'); 39 end 39 end 40 41 %Figure out if we have gmtselect executable 42 if exist([gmt_path '/gmtselect'],'file'), 43 gmt_exec=[gmt_path '/gmtselect']; 44 else, 45 gmt_exec=[gmt_path '/gmtselect']; 46 end 40 47 41 48 %Build xjobs script: 42 49 fid=fopen('xjobs.script','w'); 43 50 for i=1:length(nnv)-1, 44 fprintf(fid,'%s gmt select ./all_vertices%i.txt -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./oce_vertices%i.txt\n',gmtpath,i,i);51 fprintf(fid,'%s ./all_vertices%i.txt -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./oce_vertices%i.txt\n',gmt_exec,i,i); 45 52 end 46 53 fclose(fid); … … 62 69 mask=zeros(nv,1); 63 70 mask(flags)=1; 64 71 65 72 system('rm -rf ./all_vertices*.txt ./oce_vertices*.txt vertices.txt ./gmt.history ./xjobs.script');
Note:
See TracChangeset
for help on using the changeset viewer.