Changeset 27922


Ignore:
Timestamp:
09/21/23 13:19:42 (18 months ago)
Author:
seroussi
Message:

CHG: adding .run file in localpfe for interactive

File:
1 edited

Legend:

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

    r27262 r27922  
    9292                        fclose(fid);
    9393
    94 
    95                         %in interactive mode, create a run file, and errlog and outlog file
    96                         if cluster.interactive,
     94                        %in interactive mode, create a run file, and errlog and outlog file
     95                        if cluster.interactive,
     96                                fid=fopen([modelname '.run'],'w');
     97                                if cluster.interactive==10,
     98                                                fprintf(fid,'module unload mpi-mvapich2/1.4.1/gcc\n');
     99                                                fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[pwd() '/run'],modelname);
     100                                else
     101                                        if ~isvalgrind,
     102                                                fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,cluster.executionpath,modelname);
     103                                                %fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.nprocs(),cluster.codepath,executable,solution,[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname);
     104                                        else
     105                                                fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname);
     106                                        end
     107                                end
     108                                if ~io_gather, %concatenate the output files:
     109                                        fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     110                                end
     111                                fclose(fid);
     112
    97113                                fid=fopen([modelname '.errlog'],'w'); fclose(fid);
    98114                                fid=fopen([modelname '.outlog'],'w'); fclose(fid);
     
    224240                                end
    225241                                if cluster.interactive,
    226                                         compressstring = [compressstring ' ' modelname '.errlog ' modelname '.outlog '];
     242                                        compressstring = [compressstring ' ' modelname '.run '  modelname '.errlog ' modelname '.outlog '];
    227243                                end
    228244                                system(compressstring);
Note: See TracChangeset for help on using the changeset viewer.