Changeset 20544


Ignore:
Timestamp:
04/25/16 09:54:50 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: taking care of empty spaces in codepath

File:
1 edited

Legend:

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

    r20536 r20544  
    5151                function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota) % {{{
    5252
     53                        %Check that issm.exe exists in the right path
     54                        if ~exist([cluster.codepath '/issm.exe'],'file'),
     55                                error(['File ' cluster.codepath '/issm.exe does not exist']);
     56                        end
     57
     58                        %Now process codepath and replace empty spaces with \ to avoid errors in queuing script
     59                        codepath2=strrep(cluster.codepath,' ','\ ');
     60
    5361                        %write queuing script
    5462                        %what is the executable being called?
     
    6472                        fid=fopen([modelname '.queue'],'w');
    6573                        fprintf(fid,'#!%s\n',cluster.shell);
    66                         fprintf(fid,[cluster.codepath '/mpiexec -np %i %s/%s %s %s %s \n'],cluster.np,cluster.codepath,executable,EnumToString(solution),'./',modelname);
     74                        fprintf(fid,['%s/mpiexec -np %i %s/%s %s %s %s \n'],codepath2,cluster.np,codepath2,executable,EnumToString(solution),'./',modelname);
    6775                        fclose(fid);
    6876
Note: See TracChangeset for help on using the changeset viewer.