Changeset 27975


Ignore:
Timestamp:
10/27/23 20:40:19 (17 months ago)
Author:
jdquinn
Message:

BUG: Correcting building of queue script

File:
1 edited

Legend:

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

    r27949 r27975  
    8888                                fid=fopen([modelname '.queue'],'w');
    8989                                fprintf(fid,'#!%s\n',cluster.shell);
    90                                 if cluster.interactive
    91                                         if IssmConfig('_HAVE_MPI_'),
    92                                                 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    93                                         else
    94                                                 fprintf(fid,'%s/%s %s %s %s',cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    95                                         end
    96                                 else
    97                                         if IssmConfig('_HAVE_MPI_'),
    98                                                 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s 2> %s.errlog > %s.outlog &',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    99                                         else
    100                                                 fprintf(fid,'%s/%s %s %s %s 2> %s.errlog > %s.outlog &',cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    101                                         end
    102                                 end
     90                                fprintf(fid,['%s/mpiexec -np %i %s/%s %s %s %s \n'],codepath,cluster.np,codepath,executable,solution,'./',modelname);
    10391                                fclose(fid);
    10492                        else % Windows
     
    114102                        end
    115103
    116                         %in interactive mode, create a run file, and errlog and outlog file
    117                         if cluster.interactive,
    118                                 fid=fopen([modelname '.errlog'],'w');
    119                                 fclose(fid);
    120                                 fid=fopen([modelname '.outlog'],'w');
    121                                 fclose(fid);
    122                         end
     104                        %Create an errlog and outlog file
     105                        fid=fopen([modelname '.errlog'],'w');
     106                        fclose(fid);
     107                        fid=fopen([modelname '.outlog'],'w');
     108                        fclose(fid);
    123109                end
    124110                %}}}
Note: See TracChangeset for help on using the changeset viewer.