Changeset 19673


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

CHG: add function for np calculation

Location:
issm/trunk-jpl/src/m/classes/clusters
Files:
5 edited

Legend:

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

    r19638 r19673  
    2424                 hyperthreading=0;
    2525         end
    26          properties (SetAccess=private)
    27                  np=20*8;
    28                  % }}}
    29          end
     26         %}}}
    3027         methods
    3128                 function cluster=discover(varargin) % {{{
     
    5653                 end
    5754                 %}}}
     55                 function numprocs=np(cluster) % {{{
     56                         %compute number of processors
     57                         numprocs=cluster.numnodes*cluster.cpuspernode;
     58                 end
     59                 %}}}
    5860                 function md = checkconsistency(cluster,md,solution,analyses) % {{{
    5961
     
    8789
    8890                         if(isgprof),    disp('gprof not supported by cluster, ignoring...'); end
    89 
    90                          %compute number of processors
    91                          cluster.np=cluster.numnodes*cluster.cpuspernode;
    9291
    9392                         %write queuing script
  • 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
  • issm/trunk-jpl/src/m/classes/clusters/hpc.m

    r19638 r19673  
    1919                 interactive=0;
    2020         end
    21          properties (SetAccess=private)
    22                  np=20*8;
    23                  % }}}
    24          end
     21         %}}}
    2522         methods
    2623                 function cluster=hpc(varargin) % {{{
     
    4845                 end
    4946                 %}}}
     47                 function numprocs=np(cluster) % {{{
     48                         %compute number of processors
     49                         numprocs=cluster.numnodes*cluster.cpuspernode;
     50                 end
     51                 %}}}
    5052                 function md = checkconsistency(cluster,md,solution,analyses) % {{{
    5153
     
    6769                         if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end
    6870                         if(isgprof),    disp('gprof not supported by cluster, ignoring...'); end
    69 
    70                          %compute number of processors
    71                          cluster.np=cluster.numnodes*cluster.cpuspernode;
    7271
    7372                         %write queuing script
     
    9594                         if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end
    9695                         if(isgprof),    disp('gprof not supported by cluster, ignoring...'); end
    97 
    98                          %compute number of processors
    99                          cluster.np=cluster.numnodes*cluster.cpuspernode;
    10096
    10197                         %write queuing script
  • issm/trunk-jpl/src/m/classes/clusters/lonestar.m

    r19670 r19673  
    2121                 time          = 24*60*60;
    2222         end
     23         %}}}
    2324         methods
    2425                 function cluster=lonestar(varargin) % {{{
  • issm/trunk-jpl/src/m/classes/clusters/pfe.m

    r19670 r19673  
    2626                 hyperthreading = 0;
    2727         end
     28         %}}}
    2829         methods
    2930                 function cluster=pfe(varargin) % {{{
Note: See TracChangeset for help on using the changeset viewer.