Changeset 2586


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)

Location:
issm/trunk/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/IoModel.h

    r2383 r2586  
    145145        double* optscal;
    146146        double  yts;
    147         int     waitonlock;
     147        double  waitonlock;
    148148
    149149        /*thermal parameters: */
  • issm/trunk/src/c/parallel/diagnostic.cpp

    r2492 r2586  
    3636       
    3737        ParameterInputs* inputs=NULL;
    38         int waitonlock=0;
    39         int numberofnodes;
     38        double waitonlock=0;
     39        int    numberofnodes;
    4040       
    4141        double* u_g_initial=NULL;
  • issm/trunk/src/c/parallel/prognostic.cpp

    r2492 r2586  
    2424        char* lockname=NULL;
    2525        int   numberofnodes;
    26         int  waitonlock=0;
     26        double waitonlock=0;
    2727
    2828        Model* model=NULL;
  • issm/trunk/src/c/parallel/steadystate.cpp

    r2492 r2586  
    3939       
    4040        ParameterInputs* inputs=NULL;
    41         int waitonlock=0;
     41        double          waitonlock=0;
    4242       
    4343        double* u_g_initial=NULL;
  • issm/trunk/src/c/parallel/thermal.cpp

    r2492 r2586  
    2626        int   qmu_analysis=0;
    2727        int   numberofnodes;
    28         int    waitonlock=0;
     28        double waitonlock=0;
    2929
    3030        /*Model: */
  • issm/trunk/src/c/parallel/transient.cpp

    r2492 r2586  
    2525        int   numberofnodes;
    2626        int   qmu_analysis=0;
    27         int waitonlock=0;
     27        double waitonlock=0;
    2828
    2929        /*Model: */
  • 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);
  • issm/trunk/src/m/classes/public/marshall.m

    r2547 r2586  
    134134WriteData(fid,md.viscosity_overshoot,'Scalar','viscosity_overshoot');
    135135WriteData(fid,md.stokesreconditioning,'Scalar','stokesreconditioning');
    136 WriteData(fid,md.waitonlock,'Integer','waitonlock');
     136WriteData(fid,md.waitonlock,'Scalar','waitonlock');
    137137
    138138%Thermal parameters
Note: See TracChangeset for help on using the changeset viewer.