Changeset 18711


Ignore:
Timestamp:
10/30/14 10:08:23 (10 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added valgrind

File:
1 edited

Legend:

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

    r18577 r18711  
    137137                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
    138138                         fprintf(fid,'cd %s/%s/\n\n',cluster.executionpath,dirname);
    139                          fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     139                         if ~isvalgrind,
     140                                 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     141                         else
     142                                 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     143                         end
    140144                         if ~io_gather, %concatenate the output files:
    141145                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
Note: See TracChangeset for help on using the changeset viewer.