Ignore:
Timestamp:
11/02/09 13:51:49 (15 years ago)
Author:
Mathieu Morlighem
Message:

Now waitonlock is a double (not an integer)
Cosmos queueing script is also in BASH (easier to launch: no bug)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/BuildQueueingScriptcosmos.m

    r2581 r2586  
    5454
    5555
    56 fprintf(fid,'#!/bin/csh\n');
     56fprintf(fid,'#!/bin/bash\n');
    5757fprintf(fid,'#PBS -l select=%i:ncpus=1\n',md.np);
    5858fprintf(fid,'#PBS -l walltime=%i\n',md.time*60); %walltime is in seconds.
     
    6363fprintf(fid,'#PBS -e %s.errlog \n',md.name);
    6464
    65 fprintf(fid,'setenv PBS_O_WORKDIR %s\n',executionpath);
     65fprintf(fid,'export PBS_O_WORKDIR=%s\n',executionpath);
    6666fprintf(fid,'cd $PBS_O_WORKDIR\n');
    67 fprintf(fid,'setenv OMP_NUM_THREADS 1\n');
    68 fprintf(fid,'limit stacksize unlimited\n');
    69 fprintf(fid,'limit coredumpsize 0\n');
     67fprintf(fid,'export OMP_NUM_THREADS=1\n');
     68fprintf(fid,'ulimit -s unlimited\n');
     69fprintf(fid,'ulimit -c 0\n');
    7070fprintf(fid,'/opt/mpich/gm/intel10.1/bin/mpirun -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock',md.np,codepath,AnalysisTypeFromEnum(md.analysis_type),executionpath,md.name,md.name,md.name);
    7171fclose(fid);
Note: See TracChangeset for help on using the changeset viewer.