Changeset 15121


Ignore:
Timestamp:
05/26/13 23:23:24 (12 years ago)
Author:
Eric.Larour
Message:

CHG: update generic class to handle runs in parallel on windows platforms.
Also updated oshostname, which on windows dependended on the presence of sed, which
is not guaranteed.
Update solve.m list of files needed for the windows runs.

Location:
issm/trunk-jpl/src/m
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/generic.m

    r15093 r15121  
    114114                                fid=fopen([modelname '.bat'],'w');
    115115                                fprintf(fid,'@echo off\n');
    116                                 if cluster.interactive
     116
     117                                if cluster.np>1,
     118                                        fprintf(fid,'"C:\\Program Files\\MPICH2\\bin\\mpiexec.exe" -n %i "%s/issm.exe" %s ./ %s ',cluster.np,cluster.codepath,EnumToString(solution),modelname);
     119                                else
    117120                                        fprintf(fid,'"%s/issm.exe" %s ./ %s ',cluster.codepath,EnumToString(solution),modelname);
    118                                 else
    119                                         fprintf(fid,'"%s/issm.exe" %s ./ %s 2> %s.errlog >%s.outlog',...
    120                                                 cluster.codepath,EnumToString(solution),modelname,modelname,modelname);
    121121                                end
    122122                                fclose(fid);
  • issm/trunk-jpl/src/m/os/oshostname.m

    r13732 r15121  
    77
    88if ispc(),
    9         [status,hostname]=system('hostname | sed ''s/-//g''');
     9        [status,hostname]=system('hostname');
    1010        if status,
    1111                error('oshostname error message: could not run hostname command on windows os');
  • issm/trunk-jpl/src/m/solve/solve.m

    r14871 r15121  
    8282%Launch job
    8383modelname = md.miscellaneous.name;
    84 filelist  = {[modelname '.bin '] [modelname '.toolkits '] [modelname '.queue ']};
     84filelist  = {[modelname '.bin '] [modelname '.toolkits ']};
     85if ispc,
     86        filelist{end+1}=[modelname '.bat '];
     87else
     88        filelist{end+1}=[modelname '.queue '];
     89end
     90
    8591if md.qmu.isdakota,
    8692        filelist{end+1} = [modelname '.qmu.in'];
Note: See TracChangeset for help on using the changeset viewer.