Changeset 19617


Ignore:
Timestamp:
10/01/15 16:55:07 (10 years ago)
Author:
seroussi
Message:

working on interactive runs for mitgcm

File:
1 edited

Legend:

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

    r19558 r19617  
    131131                         fprintf(fid,'#PBS -e %s.errlog \n\n',[cluster.executionpath '/' dirname '/' modelname]);
    132132                         fprintf(fid,'. /usr/share/modules/init/bash\n\n');
    133                          for i=1:numel(cluster.modules),
    134                                  fprintf(fid,['module load ' cluster.modules{i} '\n']);
    135                          end
     133                         fprintf(fid,'module load comp-intel/2015.0.090\n');
     134                         fprintf(fid,'module load mpi-sgi/mpt.2.12r16\n');
    136135                         fprintf(fid,'export PATH="$PATH:."\n\n');
    137136                         fprintf(fid,'export MPI_GROUP_MAX=64\n\n');
     
    224223                         fprintf(fid,'#PBS -S /bin/bash\n');
    225224                         fprintf(fid,'#PBS -l select=1:ncpus=%i:model=%s\n',np,cluster.processor);
    226                          fprintf(fid,'#PBS -l walltime=%i\n',cluster.time); %walltime is in seconds.
     225                         fprintf(fid,'#PBS -l walltime=%i\n',cluster.time*60); %walltime is in seconds.
    227226                         fprintf(fid,'#PBS -q %s \n',cluster.queue);
    228227                         fprintf(fid,'#PBS -W group_list=%s\n',cluster.grouplist);
     
    245244                         fclose(fid);
    246245
     246                         %in interactive mode, create a run file, and errlog and outlog file
     247                         if cluster.interactive,
     248                                 fid=fopen([modelname '.run'],'w');
     249                                 fprintf(fid,['mpiexec -np %i ./mitgcmuv && touch ' modelname '.lock %s\n'],np);
     250                                 fclose(fid);
     251                                 fid=fopen([modelname '.errlog'],'w');
     252                                 fclose(fid);
     253                                 fid=fopen([modelname '.outlog'],'w');
     254                                 fclose(fid);
     255                         end
     256
    247257                 end %}}}
    248258                 function UploadQueueJob(cluster,modelname,dirname,filelist)% {{{
Note: See TracChangeset for help on using the changeset viewer.