Changeset 22641


Ignore:
Timestamp:
03/28/18 02:20:45 (7 years ago)
Author:
nsa12
Message:

CHG: adapted for migration to CSD3 Mar 18

File:
1 edited

Legend:

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

    r21576 r22641  
    5858                 function md = checkconsistency(cluster,md,solution,analyses) % {{{
    5959
    60                          available_queues={'ARNOLD-SL3'};
     60                         available_queues={'ARNOLD-SL3-CPU'}; % Updated for csd3 NSA 28/3/18
    6161                         queue_requirements_time=[Inf Inf];
    6262                         queue_requirements_np=[80 80];
     
    7777
    7878                         %write queuing script
     79             disp(modelname)
    7980                         fid=fopen([modelname '.queue'],'w');
    8081                         fprintf(fid,'#!/bin/bash\n');
     
    8485                         fprintf(fid,'#SBATCH --mail-type=ALL\n');
    8586                         fprintf(fid,'#SBATCH -N %i -n %i\n',cluster.numnodes,cluster.cpuspernode);
    86                          fprintf(fid,'#SBATCH --time=%i\n',cluster.time*60); %walltime is in seconds.
     87                         fprintf(fid,'#SBATCH --time=%i\n',cluster.time*60) %walltime is in seconds.
    8788                         fprintf(fid,'#SBATCH --mem-per-cpu=%igb\n',cluster.memory);
    8889                         fprintf(fid,'#SBATCH -o %s.outlog \n',modelname);
     
    130131
    131132                         disp('launching solution sequence on remote cluster');
     133             %
     134             % qsub replaced by sbatch for csd3 system NSA 28/3/18
    132135                         if ~isempty(restart)
    133136                                 launchcommand=['cd ' cluster.executionpath ' && cd ' dirname ' && hostname && qsub ' modelname '.queue '];
    134137                         else
    135138                                 launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' dirname ' && mkdir ' dirname ...
    136                                          ' && cd ' dirname ' && mv ../' dirname '.tar.gz ./ && tar -zxf ' dirname '.tar.gz  && hostname && qsub ' modelname '.queue '];
     139                                         ' && cd ' dirname ' && mv ../' dirname '.tar.gz ./ && tar -zxf ' dirname '.tar.gz  && hostname && sbatch ' modelname '.queue '];
    137140                         end
    138141                         issmssh(cluster.name,cluster.login,cluster.port,launchcommand);
Note: See TracChangeset for help on using the changeset viewer.