Changeset 26034 for issm/trunk-jpl/src/m
- Timestamp:
- 02/26/21 10:56:08 (4 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/generic.m
r25956 r26034 28 28 29 29 %Change the defaults if ispc 30 if ispc ,30 if ispc & ~ismingw, 31 31 cluster.codepath = [issmdir() '\bin']; 32 32 cluster.etcpath = [issmdir() '\etc']; … … 145 145 146 146 if cluster.np>1, 147 fprintf(fid,'"C:\\Program Files\\MPICH2\\bin\\mpiexec.exe" -n %i "%s/%s" %s ./ %s ',cluster.np,cluster.codepath,executable,solution,modelname); 147 % fprintf(fid,'"C:\\Program Files\\MPICH2\\bin\\mpiexec.exe" -n %i "%s/%s" %s ./ %s ',cluster.np,cluster.codepath,executable,solution,modelname); 148 fprintf(fid,'"C:\\PROGRA~1\\MICROS~1\\Bin\\mpiexec.exe" -n %i "%s/%s" %s ./ %s ',cluster.np,cluster.codepath,executable,solution,modelname); 148 149 else 149 150 fprintf(fid,'"%s/%s" %s ./ %s ',cluster.codepath,executable,solution,modelname); -
issm/trunk-jpl/src/m/classes/clusters/localpfe.m
r25956 r26034 27 27 function cluster=localpfe(varargin) % {{{ 28 28 29 %Change the defaults if ispc 30 if ispc ,29 %Change the defaults if ispc and not ismingw 30 if ispc & ~ismingw, 31 31 cluster.codepath = [issmdir() '\bin']; 32 32 cluster.etcpath = [issmdir() '\etc']; … … 106 106 executable='issm_slc.exe'; 107 107 108 if ispc (), error('BuildQueueScriptMultipleModels not support yet on windows machines');end;108 if ispc & ~ismingw, error('BuildQueueScriptMultipleModels not support yet on windows machines');end; 109 109 110 110 %write queuing script … … 170 170 171 171 %write queuing script 172 if ~ispc (),172 if ~ispc, 173 173 174 174 fid=fopen([modelname '.queue'],'w'); … … 214 214 %}}} 215 215 function UploadQueueJob(cluster,modelname,dirname,filelist)% {{{ 216 if ~ispc ,216 if ~ispc | ismingw, 217 217 218 218 %compress the files into one zip. … … 262 262 function Download(cluster,dirname,filelist)% {{{ 263 263 264 if ispc (),264 if ispc && ~ismingw, 265 265 %do nothing 266 266 return; -
issm/trunk-jpl/src/m/classes/clusters/pfe.m
r25956 r26034 216 216 executable='issm_slc.exe'; 217 217 218 if ispc (), error('BuildQueueScriptMultipleModels not support yet on windows machines');end;218 if ispc & ~ismingw, error('BuildQueueScriptMultipleModels not support yet on windows machines');end; 219 219 220 220 %write queuing script -
issm/trunk-jpl/src/m/dev/devpath.m
r25368 r26034 3 3 4 4 %Recover ISSM_DIR , or if on a Windows machine, ISSM_DIR_WIN 5 if ~ispc, 5 if ispc, 6 ISSM_DIR=getenv('ISSM_DIR_WIN'); 7 else 6 8 ISSM_DIR=getenv('ISSM_DIR'); 7 else8 ISSM_DIR=getenv('ISSM_DIR_WIN');9 9 end 10 10 11 if (isempty(ISSM_DIR)), 11 12 error('''ISSM_DIR'' environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!'); … … 18 19 %ISSM path 19 20 addpath([ISSM_DIR '/src/m/os/']); %load recursivepath 20 addpath([ISSM_DIR '/lib']); %load mex21 addpath([ISSM_DIR '/lib']); %load MEX files 21 22 addpath(recursivepath([ISSM_DIR '/src/m'])); 22 23 addpath(recursivepath([ISSM_DIR '/externalpackages/scotch'])); -
issm/trunk-jpl/src/m/os/issmscpin.m
r23054 r26034 18 18 %if hostname and host are the same, do a simple copy 19 19 if strcmpi(hostname,host), 20 21 for i=1:numel(packages), 20 for i=1:numel(packages), 22 21 success=copyfile([path '/' packages{i}]); %keep going, even if success=0 23 22 end 24 25 23 else 26 27 if ispc(), 24 if ispc & ~ismingw, 28 25 %use the putty project pscp.exe: it should be in the path. 29 26 -
issm/trunk-jpl/src/m/os/issmscpout.m
r15315 r26034 24 24 system(['rm -rf ' packages{i} ]); 25 25 if no_symlinks, 26 system(['cp 26 system(['cp ' here '/' packages{i} ' .']); 27 27 else 28 28 system(['ln -s ' here '/' packages{i} ' .']); … … 31 31 end 32 32 else 33 if ispc (),33 if ispc & ~ismingw, 34 34 %use the putty project pscp.exe: it should be in the path. 35 35 -
issm/trunk-jpl/src/m/os/issmssh.m
r13646 r26034 12 12 system(command); 13 13 else 14 if ispc (),14 if ispc & ~ismingw, 15 15 %use the putty project plink.exe: it should be in the path. 16 16 -
issm/trunk-jpl/src/m/os/oshostname.m
r22056 r26034 22 22 %Method 3, last chance 23 23 if isempty(hostname), 24 if ispc 24 if ispc % If OS is MinGW, $COMPUTERNAME and $HOSTNAME are identical 25 25 hostname = getenv('COMPUTERNAME'); 26 26 else -
issm/trunk-jpl/src/m/solve/loadresultsfromdisk.m
r25717 r26034 12 12 13 13 if ~md.qmu.isdakota, 14 15 14 %Check that file exists 16 15 if ~exist(filename,'file'),
Note:
See TracChangeset
for help on using the changeset viewer.