Ignore:
Timestamp:
10/21/15 16:42:47 (9 years ago)
Author:
schlegel
Message:

CHG: add function for np calculation

File:
1 edited

Legend:

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

    r19638 r19673  
    2121                 memory        = 2;
    2222         end
    23          properties (SetAccess=private)
    24                  np=20*8;
    25                  % }}}
    26          end
     23         %}}}
    2724         methods
    2825                 function cluster=greenplanet(varargin) % {{{
     
    5249                 end
    5350                 %}}}
     51                 function numprocs=np(cluster) % {{{
     52                         %compute number of processors
     53                         numprocs=cluster.numnodes*cluster.cpuspernode;
     54                 end
     55                 %}}}
    5456                 function md = checkconsistency(cluster,md,solution,analyses) % {{{
    5557
     
    7173                         if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end
    7274                         if(isgprof),    disp('gprof not supported by cluster, ignoring...'); end
    73 
    74                          %compute number of processors
    75                          cluster.np=cluster.numnodes*cluster.cpuspernode;
    7675
    7776                         %write queuing script
     
    101100                         if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end
    102101                         if(isgprof),    disp('gprof not supported by cluster, ignoring...'); end
    103 
    104                          %compute number of processors
    105                          cluster.np=cluster.numnodes*cluster.cpuspernode;
    106102
    107103                         %write queuing script
Note: See TracChangeset for help on using the changeset viewer.