Changeset 21291


Ignore:
Timestamp:
10/19/16 13:03:16 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed camhpc

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

Legend:

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

    r21290 r21291  
    1414                 cpuspernode   = 8;
    1515                 port          = 8000;
    16                  queue         = 'arnold';
     16                 project       = '';
     17                 partition     = '';
    1718                 codepath      = '';
    1819                 executionpath = '';
     
    4142                         disp(sprintf('    cpuspernode: %i',cluster.cpuspernode));
    4243                         disp(sprintf('    np: %i',cluster.cpuspernode*cluster.numnodes));
    43                          disp(sprintf('    queue: %s',cluster.queue));
     44                         disp(sprintf('    project: %s',cluster.project));
     45                         disp(sprintf('    partition: %s',cluster.partition));
    4446                         disp(sprintf('    codepath: %s',cluster.codepath));
    4547                         disp(sprintf('    executionpath: %s',cluster.executionpath));
     
    5658                 function md = checkconsistency(cluster,md,solution,analyses) % {{{
    5759
    58                          available_queues={'c6145','default'};
     60                         available_queues={'ARNOLD-SL3'};
    5961                         queue_requirements_time=[Inf Inf];
    6062                         queue_requirements_np=[80 80];
    6163
    62                          QueueRequirements(available_queues,queue_requirements_time,queue_requirements_np,cluster.queue,cluster.np,1)
     64                         QueueRequirements(available_queues,queue_requirements_time,queue_requirements_np,cluster.project,cluster.np,1)
    6365
    6466                         %Miscelaneous
     
    7880                         fprintf(fid,'#!/bin/bash\n');
    7981                         fprintf(fid,'#SBATCH --job-name=%s\n',modelname);
    80                          fprintf(fid,'#SBATCH -p %s \n',cluster.queue);
     82                         fprintf(fid,'#SBATCH -p %s \n',cluster.partition);
     83                         fprintf(fid,'#SBATCH -A %s \n',cluster.project);
    8184                         fprintf(fid,'#SBATCH -N %i -n %i\n',cluster.numnodes,cluster.cpuspernode);
    8285                         fprintf(fid,'#SBATCH --time=%i\n',cluster.time*60); %walltime is in seconds.
     
    8790                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
    8891                         fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    89                          fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
     92                         fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    9093                         if ~io_gather, %concatenate the output files:
    9194                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     
    9699                         if cluster.interactive,
    97100                                 fid=fopen([modelname '.run'],'w');
    98                                  fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
     101                                 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    99102                                 if ~io_gather, %concatenate the output files:
    100103                                         fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
  • TabularUnified issm/trunk-jpl/src/m/classes/organizer.m

    r20923 r21291  
    109109
    110110                        %figure out if the data is there, otherwise, we have to use the default path supplied by user.
    111                         if exist(path,'file') | exist([path '.mat'],'file'),
     111                        if exist(path,'file'),
     112                                path=path;
     113                        elseif exist([path '.mat'],'file'),
     114                                path=[path '.mat'];
     115                        else
     116                                error(['Could not find ' path ]);
     117                        end
     118                        if exist(path,'file')
    112119                                evalin('caller',['load -mat ' path]);
    113120                                return;
Note: See TracChangeset for help on using the changeset viewer.