Changeset 26034 for issm/trunk-jpl/src/m


Ignore:
Timestamp:
02/26/21 10:56:08 (4 years ago)
Author:
jdquinn
Message:

CHG: Modifications to build system and additional configurations in support of Windows 10 MSYS2 MinGW build

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  
    2828
    2929                        %Change the defaults if ispc
    30                         if ispc,
     30                        if ispc & ~ismingw,
    3131                                cluster.codepath      = [issmdir() '\bin'];
    3232                                cluster.etcpath       = [issmdir() '\etc'];
     
    145145
    146146                                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);
    148149                                else
    149150                                        fprintf(fid,'"%s/%s" %s ./ %s ',cluster.codepath,executable,solution,modelname);
  • issm/trunk-jpl/src/m/classes/clusters/localpfe.m

    r25956 r26034  
    2727                function cluster=localpfe(varargin) % {{{
    2828
    29                         %Change the defaults if ispc
    30                         if ispc,
     29                        %Change the defaults if ispc and not ismingw
     30                        if ispc & ~ismingw,
    3131                                cluster.codepath      = [issmdir() '\bin'];
    3232                                cluster.etcpath       = [issmdir() '\etc'];
     
    106106                        executable='issm_slc.exe';
    107107
    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;
    109109                       
    110110                        %write queuing script
     
    170170
    171171                        %write queuing script
    172                         if ~ispc(),
     172                        if ~ispc,
    173173
    174174                                fid=fopen([modelname '.queue'],'w');
     
    214214                %}}}
    215215                function UploadQueueJob(cluster,modelname,dirname,filelist)% {{{
    216                         if ~ispc,
     216                        if ~ispc | ismingw,
    217217
    218218                                %compress the files into one zip.
     
    262262                function Download(cluster,dirname,filelist)% {{{
    263263
    264                         if ispc(),
     264                        if ispc && ~ismingw,
    265265                                %do nothing
    266266                                return;
  • issm/trunk-jpl/src/m/classes/clusters/pfe.m

    r25956 r26034  
    216216                        executable='issm_slc.exe';
    217217
    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;
    219219
    220220                        %write queuing script
  • issm/trunk-jpl/src/m/dev/devpath.m

    r25368 r26034  
    33
    44%Recover ISSM_DIR , or if on a Windows machine, ISSM_DIR_WIN
    5 if ~ispc,
     5if ispc,
     6        ISSM_DIR=getenv('ISSM_DIR_WIN');
     7else
    68        ISSM_DIR=getenv('ISSM_DIR');
    7 else
    8         ISSM_DIR=getenv('ISSM_DIR_WIN');
    99end
     10
    1011if (isempty(ISSM_DIR)),
    1112        error('''ISSM_DIR'' environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!');
     
    1819%ISSM path
    1920addpath([ISSM_DIR '/src/m/os/']); %load recursivepath
    20 addpath([ISSM_DIR '/lib']);       %load mex
     21addpath([ISSM_DIR '/lib']);       %load MEX files
    2122addpath(recursivepath([ISSM_DIR '/src/m']));
    2223addpath(recursivepath([ISSM_DIR '/externalpackages/scotch']));
  • issm/trunk-jpl/src/m/os/issmscpin.m

    r23054 r26034  
    1818%if hostname and host are the same, do a simple copy
    1919if strcmpi(hostname,host),
    20 
    21     for i=1:numel(packages),
     20        for i=1:numel(packages),
    2221                success=copyfile([path '/' packages{i}]); %keep going, even if success=0
    2322        end
    24 
    2523else
    26 
    27         if ispc(),
     24        if ispc & ~ismingw,
    2825                %use the putty project pscp.exe: it should be in the path.
    2926
  • issm/trunk-jpl/src/m/os/issmscpout.m

    r15315 r26034  
    2424                system(['rm -rf ' packages{i} ]);
    2525                if no_symlinks,
    26                         system(['cp  ' here '/' packages{i} ' .']);
     26                        system(['cp ' here '/' packages{i} ' .']);
    2727                else
    2828                        system(['ln -s ' here '/' packages{i} ' .']);
     
    3131        end
    3232else
    33         if ispc(),
     33        if ispc & ~ismingw,
    3434                %use the putty project pscp.exe: it should be in the path.
    3535
  • issm/trunk-jpl/src/m/os/issmssh.m

    r13646 r26034  
    1212        system(command);
    1313else
    14         if ispc(),
     14        if ispc & ~ismingw,
    1515                %use the putty project plink.exe: it should be in the path.
    1616
  • issm/trunk-jpl/src/m/os/oshostname.m

    r22056 r26034  
    2222%Method 3, last chance
    2323if isempty(hostname),
    24         if ispc
     24        if ispc % If OS is MinGW, $COMPUTERNAME and $HOSTNAME are identical
    2525                hostname = getenv('COMPUTERNAME');
    2626        else
  • issm/trunk-jpl/src/m/solve/loadresultsfromdisk.m

    r25717 r26034  
    1212
    1313if ~md.qmu.isdakota,
    14 
    1514        %Check that file exists
    1615        if ~exist(filename,'file'),
Note: See TracChangeset for help on using the changeset viewer.