Changeset 7984


Ignore:
Timestamp:
04/19/11 15:03:12 (14 years ago)
Author:
Mathieu Morlighem
Message:

Added interactive runs for larsen and astrid

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

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/clusters/astrid.m

    r7631 r7984  
    1313                 np=15;
    1414                 port=0;
     15                 interactive=1;
    1516                 codepath=[issmtier() '/bin'];
    1617                 executionpath=[issmdir() '/execution'];
     
    7677                         fprintf(fid,'#!/bin/sh\n');
    7778                         if mem_debug==0,
    78                                  fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog ',cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
     79                                 if cluster.interactive
     80                                         fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock ',...
     81                                                 cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname);
     82                                 else
     83                                         fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog ',...
     84                                                 cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
     85                                 end
    7986                         else
    8087                                 %fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --gen-suppressions=all --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog ',cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
    81                                  fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog ',cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup, cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
     88                                 fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog ',...
     89                                         cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup, cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
    8290                         end
    8391
     
    9199                         end
    92100
    93                          %close file
    94                          fclose(fid);
     101                         %in interactive mode, create a run file, and errlog and outlog file
     102                         if cluster.interactive,
     103                                 fid=fopen([modelname '.errlog'],'w'); fclose(fid);
     104                                 fid=fopen([modelname '.outlog'],'w'); fclose(fid);
     105                         end
    95106
    96107                 end
     
    108119                                if md.qmu_analysis,
    109120                                        compressstring=[compressstring md.name '.qmu.in'];
     121                                end
     122                                if cluster.interactive,
     123                                        compressstring=[compressstring ' ' md.name '.errlog ' md.name '.outlog '];
    110124                                end
    111125                                system(compressstring);
  • issm/trunk/src/m/classes/clusters/larsen.m

    r7631 r7984  
    1313                 np=7;
    1414                 port=0;
     15                 interactive=1;
    1516                 codepath=[issmtier() '/bin'];
    1617                 executionpath=[issmdir() '/execution'];
     
    7071                         fprintf(fid,'#!/bin/sh\n');
    7172                         if mem_debug==0,
    72                                  fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
     73                                 if cluster.interactive
     74                                         fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock',...
     75                                                 cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,);
     76                                 else
     77                                         fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',...
     78                                                 cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
     79                                 end
    7380                         else
    7481                                 %fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --gen-suppressions=all --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
    75                                  fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup, cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
     82                                 fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',...
     83                                         cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup, cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
    7684                         end
    7785
     
    7987                                 fprintf(fid,'\n gprof %s/issm.exe gmon.out > %s.performance',cluster.codepath,modelname);
    8088                         end
    81 
    82                          %close file
    8389                         fclose(fid);
    8490
     91                         %in interactive mode, create a run file, and errlog and outlog file
     92                         if cluster.interactive,
     93                                 fid=fopen([modelname '.errlog'],'w'); fclose(fid);
     94                                 fid=fopen([modelname '.outlog'],'w'); fclose(fid);
     95                         end
    8596                 end
    8697                 %}}}
     
    97108                                if md.qmu_analysis,
    98109                                        compressstring=[compressstring md.name '.qmu.in'];
     110                                end
     111                                if cluster.interactive,
     112                                        compressstring=[compressstring ' ' md.name '.errlog ' md.name '.outlog '];
    99113                                end
    100114                                system(compressstring);
  • issm/trunk/src/m/model/waitonlock.m

    r6378 r7984  
    3131else
    3232
     33        if ismember('interactive',properties(md.cluster)) & md.cluster.interactive
     34                %We are in interactive mode, no need to check for job completion
     35                flag=1;
     36                return;
     37        end
    3338        %initialize time and file presence test flag
    3439        time=0; ispresent=0;
Note: See TracChangeset for help on using the changeset viewer.