Changeset 20301


Ignore:
Timestamp:
03/08/16 23:06:04 (9 years ago)
Author:
bdef
Message:

NEW: Adding vilje (UiB) cluster for python

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

Legend:

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

    r19962 r20301  
    1111                 name          = 'vilje'
    1212                 login         = '';
    13                 accountname    ='';
     13                accountname    ='';
    1414                 numnodes      = 20;
    1515                 cpuspernode   = 8;
     
    4141                         disp(sprintf('    name: %s',cluster.name));
    4242                         disp(sprintf('    login: %s',cluster.login));
    43                         disp(sprintf('    accountname: %s',cluster.accountname));
     43                        disp(sprintf('    accountname: %s',cluster.accountname));
    4444                         disp(sprintf('    port: %i',cluster.port));
    4545                         disp(sprintf('    numnodes: %i',cluster.numnodes));
     
    6464                         %Miscelaneous
    6565                         if isempty(cluster.login), md = checkmessage(md,'login empty'); end
    66                         if isempty(cluster.accountname), md = checkmessage(md,'accountname empty'); end
     66                        if isempty(cluster.accountname), md = checkmessage(md,'accountname empty'); end
    6767                         if isempty(cluster.codepath), md = checkmessage(md,'codepath empty'); end
    6868                         if isempty(cluster.executionpath), md = checkmessage(md,'executionpath empty'); end
     
    8282                         fprintf(fid,'#PBS -S /bin/bash\n');
    8383                         fprintf(fid,'#PBS -N %s\n',modelname);
    84                         fprintf(fid,'#PBS -l select=%i:ncpus=%i:model=%s\n',cluster.numnodes,cluster.cpuspernode,cluster.processor);
    85                          fprintf(fid,'#PBS -l walltime=%i\n',cluster.time*60); %walltime is in seconds.
    86                         fprintf(fid,'#PBS -A %s\n',cluster.accountname);
     84                        fprintf(fid,'#PBS -l select=%i:ncpus=%i:model=%s\n',cluster.numnodes,cluster.cpuspernode,cluster.processor);
     85                         fprintf(fid,'#PBS -l walltime=%i\n',cluster.time*60);  %walltime is hh:mm:ss
     86                        fprintf(fid,'#PBS -A %s\n',cluster.accountname);
    8787                         fprintf(fid,'#PBS -q %s \n',cluster.queue);
    8888                         fprintf(fid,'#PBS -l mem=%igb\n',cluster.memory);
    89 %                        fprintf(fid,'#PBS -M mmorligh@uci.edu\n');
    9089                         fprintf(fid,'#PBS -o %s.outlog \n',modelname);
    9190                         fprintf(fid,'#PBS -e %s.errlog \n\n',modelname);
     
    113112                         fprintf(fid,'#PBS -N %s\n',modelname);
    114113                         fprintf(fid,'#PBS -q %s \n',cluster.queue);
    115                         fprintf(fid,'#PBS -l select=%i:ncpus=%i:model=%s\n',cluster.numnodes,cluster.cpuspernode,cluster.processor);
     114                        fprintf(fid,'#PBS -l select=%i:ncpus=%i:model=%s\n',cluster.numnodes,cluster.cpuspernode,cluster.processor);
    116115                         fprintf(fid,'#PBS -l walltime=%i\n',cluster.time*60); %walltime is in seconds.
    117                         fprintf(fid,'#PBS -A %s\n',cluster.accountname);
     116                        fprintf(fid,'#PBS -A %s\n',cluster.accountname);
    118117                         fprintf(fid,'#PBS -l mem=%igb\n',cluster.memory);
    119118%                        fprintf(fid,'#PBS -M mmorligh@uci.edu\n');
Note: See TracChangeset for help on using the changeset viewer.