Changeset 27886


Ignore:
Timestamp:
08/23/23 11:22:50 (19 months ago)
Author:
Cheng Gong
Message:

ADD:deleteckptdata option in md.cluster, to delete *.ckpt and *.rst after AD runs on discovery

File:
1 edited

Legend:

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

    r27710 r27886  
    1919                memory        = 2;  %in Gb
    2020                email         = 'END,FAIL';
    21 
     21                deleteckptdata= 0;
    2222        end
    2323        %}}}
     
    4242                        disp(sprintf('    memory: %i Gb',cluster.memory));
    4343                        disp(sprintf('    email: %s (notifications: BEGIN,END,FAIL)',cluster.email));
     44                        disp(sprintf('    deleteckptdata: %i',cluster.deleteckptdata));
    4445                        disp(sprintf('    codepath:      %s',cluster.codepath));
    4546                        disp(sprintf('    executionpath: %s',cluster.executionpath));
     
    117118                                fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
    118119                        end
     120
     121                        if (cluster.deleteckptdata)
     122                                fprintf(fid,'rm -rf *.rst *.ckpt\n');
     123                        end
    119124                        fclose(fid);
    120125
Note: See TracChangeset for help on using the changeset viewer.