Changeset 21050


Ignore:
Timestamp:
08/02/16 17:22:43 (9 years ago)
Author:
agscott1
Message:

BUG: Fixed clusters for updated matlab and python code

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

Legend:

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

    r19638 r21050  
    128128                         fprintf(fid,'\n');
    129129                         fprintf(fid,'mpiexec %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog\n',...
    130                                  cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
     130                                 cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    131131                         %fprintf(fid,'echo $HOSTNAME >>%s.outlog',modelname);
    132132                         fclose(fid);
  • issm/trunk-jpl/src/m/classes/clusters/castor.m

    r19638 r21050  
    6565                         fprintf(fid,'cd $PBS_O_WORKDIR\n');
    6666                         fprintf(fid,'export OMP_NUM_THREADS=1\n');
    67                          fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     67                         fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    6868                         fclose(fid);
    6969
  • issm/trunk-jpl/src/m/classes/clusters/cloud.m

    r19638 r21050  
    5656                                fprintf(fid,'source %s%s\n',cluster.codepath,'/../etc/environment.sh');
    5757                                fprintf(fid,'cd %s\n',[cluster.executionpath '/' dirname]);
    58                                 fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s 2> %s.errlog > /dev/stdout | tee %s.outlog ',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
     58                                fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s 2> %s.errlog > /dev/stdout | tee %s.outlog ',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    5959                        else
    6060                                fprintf(fid,'source %s%s\n',cluster.codepath,'/../etc/environment.sh');
    6161                                fprintf(fid,'cd %s\n',[cluster.executionpath '/' dirname]);
    62                                 fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s 2> %s.errlog > /dev/stdout | tee %s.outlog ',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    63                                 %fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
     62                                fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s 2> %s.errlog > /dev/stdout | tee %s.outlog ',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    6463                        end
    6564                end
  • issm/trunk-jpl/src/m/classes/clusters/cosmos.m

    r19638 r21050  
    6565                         fprintf(fid,'ulimit -s unlimited\n');
    6666                         fprintf(fid,'ulimit -c 0\n');
    67                          fprintf(fid,'/opt/mpich/gm/intel10.1/bin/mpiexec -np %i %s/issm.exe %s %s %s',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     67                         fprintf(fid,'/opt/mpich/gm/intel10.1/bin/mpiexec -np %i %s/issm.exe %s %s %s',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    6868                         fclose(fid);
    6969
  • issm/trunk-jpl/src/m/classes/clusters/cyclone.py

    r20784 r21050  
    11import subprocess
    22from fielddisplay import fielddisplay
    3 from EnumToString import EnumToString
    43from pairoptions import pairoptions
    54from issmssh import issmssh
     
    8988                rundir=self.executionpath+'/'+dirname
    9089                runfile=self.executionpath+'/'+dirname+'/'+modelname
    91                 fid.write('mpiexec -np %i %s/%s %s %s %s >%s.outlog 2>%s.errlog\n' % (self.np,self.codepath,executable,str(EnumToString(solution)[0]),rundir,modelname,runfile,runfile))
     90                fid.write('mpiexec -np %i %s/%s %s %s %s >%s.outlog 2>%s.errlog\n' % (self.np,self.codepath,executable,str(solution),rundir,modelname,runfile,runfile))
    9291                fid.close()
    9392
  • issm/trunk-jpl/src/m/classes/clusters/discover.m

    r20323 r21050  
    129129                         fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    130130
    131                          fprintf(fid,'mpirun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     131                         fprintf(fid,'mpirun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    132132                         if ~io_gather, %concatenate the output files:
    133133                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     
    139139                                 fid=fopen([modelname '.run'],'w');
    140140                                 if ~isvalgrind,
    141                                          fprintf(fid,'mpirun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     141                                         fprintf(fid,'mpirun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    142142                                 else
    143                                          fprintf(fid,'mpirun -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     143                                         fprintf(fid,'mpirun -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    144144                                 end
    145145                                 if ~io_gather, %concatenate the output files:
  • issm/trunk-jpl/src/m/classes/clusters/gemini.m

    r19638 r21050  
    6666                         fprintf(fid,'cd $PBS_O_WORKDIR\n');
    6767                         fprintf(fid,'export OMP_NUM_THREADS=1\n');
    68                          fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     68                         fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    6969                         fclose(fid);
    7070
  • issm/trunk-jpl/src/m/classes/clusters/generic.m

    r20571 r21050  
    9191                                        if cluster.interactive
    9292                                                if IssmConfig('_HAVE_MPI_'),
    93                                                         fprintf(fid,'mpiexec -np %i %s/%s %s %s %s \n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     93                                                        fprintf(fid,'mpiexec -np %i %s/%s %s %s %s \n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    9494                                                else
    95                                                         fprintf(fid,'%s/%s %s %s %s ',cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     95                                                        fprintf(fid,'%s/%s %s %s %s ',cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    9696                                                end
    9797                                        else
    9898                                                if IssmConfig('_HAVE_MPI_'),
    99                                                         fprintf(fid,'mpiexec -np %i %s/%s %s %s %s 2> %s.errlog >%s.outlog &',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
     99                                                        fprintf(fid,'mpiexec -np %i %s/%s %s %s %s 2> %s.errlog >%s.outlog &',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    100100                                                else
    101                                                         fprintf(fid,'%s/%s %s %s %s 2> %s.errlog >%s.outlog &',cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
     101                                                        fprintf(fid,'%s/%s %s %s %s 2> %s.errlog >%s.outlog &',cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    102102                                                end
    103103                                        end
     
    110110                                                if IssmConfig('_HAVE_MPI_'),
    111111                                                        fprintf(fid,'mpiexec -np %i %s --leak-check=full --error-limit=no --dsymutil=yes --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',...
    112                                                         cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname], modelname,modelname,modelname);
     112                                                        cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,solution,[cluster.executionpath '/' dirname], modelname,modelname,modelname);
    113113                                                else
    114114                                                        fprintf(fid,'%s --leak-check=full --dsymutil=yes --error-limit=no --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',...
    115                                                         cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname], modelname,modelname,modelname);
     115                                                        cluster.valgrind,cluster.valgrindsup,cluster.codepath,solution,[cluster.executionpath '/' dirname], modelname,modelname,modelname);
    116116                                                end
    117117                                        else
    118118                                                if IssmConfig('_HAVE_MPI_'),
    119119                                                        fprintf(fid,'mpiexec -np %i %s --leak-check=full --error-limit=no --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',...
    120                                                         cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
     120                                                        cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    121121                                                else
    122122                                                        fprintf(fid,'%s --leak-check=full --error-limit=no --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',...
    123                                                         cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
     123                                                        cluster.valgrind,cluster.valgrindsup,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    124124                                                end
    125125                                        end
     
    141141
    142142                                if cluster.np>1,
    143                                         fprintf(fid,'"C:\\Program Files\\MPICH2\\bin\\mpiexec.exe" -n %i "%s/issm.exe" %s ./ %s ',cluster.np,cluster.codepath,EnumToString(solution),modelname);
    144                                 else
    145                                         fprintf(fid,'"%s/issm.exe" %s ./ %s ',cluster.codepath,EnumToString(solution),modelname);
     143                                        fprintf(fid,'"C:\\Program Files\\MPICH2\\bin\\mpiexec.exe" -n %i "%s/issm.exe" %s ./ %s ',cluster.np,cluster.codepath,solution,modelname);
     144                                else
     145                                        fprintf(fid,'"%s/issm.exe" %s ./ %s ',cluster.codepath,solution,modelname);
    146146                                end
    147147                                fclose(fid);
     
    177177                       
    178178                        %solution name:
    179                         mpistring=[mpistring sprintf('%s ',EnumToString(solution))];
     179                        mpistring=[mpistring sprintf('%s ',solution)];
    180180
    181181                        %execution directory and model name:
     
    237237                                fprintf(fid,'@echo off\n');
    238238                                if cluster.interactive
    239                                         fprintf(fid,'"%s/issm.exe" %s "%s" %s ',cluster.codepath,EnumToString(solution),[cluster.executionpath '/' modelname],modelname);
     239                                        fprintf(fid,'"%s/issm.exe" %s "%s" %s ',cluster.codepath,solution,[cluster.executionpath '/' modelname],modelname);
    240240                                else
    241241                                        fprintf(fid,'"%s/issm.exe" %s "%s" %s 2> %s.errlog >%s.outlog',...
    242                                                 cluster.codepath,EnumToString(solution),[cluster.executionpath '/' modelname],modelname,modelname,modelname);
     242                                                cluster.codepath,solution,[cluster.executionpath '/' modelname],modelname,modelname,modelname);
    243243                                end
    244244                                fclose(fid);
  • issm/trunk-jpl/src/m/classes/clusters/generic.py

    r20572 r21050  
    44import subprocess
    55from IssmConfig import IssmConfig
    6 from EnumToString import EnumToString
    76from issmdir import issmdir
    87from pairoptions import pairoptions
     
    8685                                if self.interactive:
    8786                                        if IssmConfig('_HAVE_MPI_')[0]:
    88                                                 fid.write('mpiexec -np %i %s/%s %s %s/%s %s ' % (self.np,self.codepath,executable,EnumToString(solution)[0],self.executionpath,dirname,modelname))
     87                                                fid.write('mpiexec -np %i %s/%s %s %s/%s %s ' % (self.np,self.codepath,executable,solution,self.executionpath,dirname,modelname))
    8988                                        else:
    90                                                 fid.write('%s/%s %s %s/%s %s ' % (self.codepath,executable,EnumToString(solution)[0],self.executionpath,dirname,modelname))
     89                                                fid.write('%s/%s %s %s/%s %s ' % (self.codepath,executable,solution,self.executionpath,dirname,modelname))
    9190                                else:
    9291                                        if IssmConfig('_HAVE_MPI_')[0]:
    93                                                 fid.write('mpiexec -np %i %s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % (self.np,self.codepath,executable,EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname))
     92                                                fid.write('mpiexec -np %i %s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % (self.np,self.codepath,executable,solution,self.executionpath,dirname,modelname,modelname,modelname))
    9493                                        else:
    95                                                 fid.write('%s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % (self.codepath,executable,EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname))
     94                                                fid.write('%s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % (self.codepath,executable,solution,self.executionpath,dirname,modelname,modelname,modelname))
    9695                        elif isgprof:
    9796                                fid.write('\n gprof %s/%s gmon.out > %s.performance' % (self.codepath,executable,modelname))
     
    101100                                if IssmConfig('_HAVE_MPI_')[0]:
    102101                                        fid.write('mpiexec -np %i %s --leak-check=full --suppressions=%s %s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % \
    103                                                         (self.np,self.valgrind,self.valgrindsup,self.codepath,executable,EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname))
     102                                                        (self.np,self.valgrind,self.valgrindsup,self.codepath,executable,solution,self.executionpath,dirname,modelname,modelname,modelname))
    104103                                else:   
    105104                                        fid.write('%s --leak-check=full --suppressions=%s %s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % \
    106                                                         (self.valgrind,self.valgrindsup,self.codepath,executable,EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname))
     105                                                        (self.valgrind,self.valgrindsup,self.codepath,executable,solution,self.executionpath,dirname,modelname,modelname,modelname))
    107106
    108107                        if not io_gather:    #concatenate the output files:
     
    115114                        fid.write('@echo off\n')
    116115                        if self.interactive:
    117                                 fid.write('"%s/%s" %s "%s/%s" %s ' % (self.codepath,executable,EnumToString(solution)[0],self.executionpath,dirname,modelname))
     116                                fid.write('"%s/%s" %s "%s/%s" %s ' % (self.codepath,executable,solution,self.executionpath,dirname,modelname))
    118117                        else:
    119118                                fid.write('"%s/%s" %s "%s/%s" %s 2> %s.errlog >%s.outlog' % \
    120                                         (self.codepath,executable,EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname))
     119                                        (self.codepath,executable,solution,self.executionpath,dirname,modelname,modelname,modelname))
    121120                        fid.close()
    122121
     
    156155                        fid.write('@echo off\n')
    157156                        if self.interactive:
    158                                 fid.write('"%s/issm.exe" %s "%s/%s" %s ' % (self.codepath,EnumToString(solution)[0],self.executionpath,modelname,modelname))
     157                                fid.write('"%s/issm.exe" %s "%s/%s" %s ' % (self.codepath,solution,self.executionpath,modelname,modelname))
    159158                        else:
    160159                                fid.write('"%s/issm.exe" %s "%s/%s" %s 2> %s.errlog >%s.outlog' % \
    161                                         (self.codepath,EnumToString(solution)[0],self.executionpath,modelname,modelname,modelname,modelname))
     160                                        (self.codepath,solution,self.executionpath,modelname,modelname,modelname,modelname))
    162161                        fid.close()
    163162
  • issm/trunk-jpl/src/m/classes/clusters/generic_static.m

    r20544 r21050  
    7272                        fid=fopen([modelname '.queue'],'w');
    7373                        fprintf(fid,'#!%s\n',cluster.shell);
    74                         fprintf(fid,['%s/mpiexec -np %i %s/%s %s %s %s \n'],codepath2,cluster.np,codepath2,executable,EnumToString(solution),'./',modelname);
     74                        fprintf(fid,['%s/mpiexec -np %i %s/%s %s %s %s \n'],codepath2,cluster.np,codepath2,executable,solution,'./',modelname);
    7575                        fclose(fid);
    7676
  • issm/trunk-jpl/src/m/classes/clusters/greenplanet.m

    r20630 r21050  
    112112                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
    113113                         fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    114                          fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     114                         fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    115115                         if ~io_gather, %concatenate the output files:
    116116                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     
    121121                         if cluster.interactive,
    122122                                 fid=fopen([modelname '.run'],'w');
    123                                  fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     123                                 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    124124                                 if ~io_gather, %concatenate the output files:
    125125                                         fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
  • issm/trunk-jpl/src/m/classes/clusters/hexagon.py

    r20784 r21050  
    11import subprocess
    22from fielddisplay import fielddisplay
    3 from EnumToString import EnumToString
    43from pairoptions import pairoptions
    54from issmssh import issmssh
     
    112111                fid.write('module load gsl\n')
    113112                fid.write('cd %s/%s/\n\n' % (self.executionpath,dirname))
    114                 fid.write('aprun -B %s/%s %s %s/%s %s\n' % (self.codepath,executable,str(EnumToString(solution)[0]),self.executionpath,dirname,modelname))
     113                fid.write('aprun -B %s/%s %s %s/%s %s\n' % (self.codepath,executable,str(solution),self.executionpath,dirname,modelname))
    115114                fid.close()
    116115
  • issm/trunk-jpl/src/m/classes/clusters/hpc.m

    r19673 r21050  
    108108                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
    109109                         fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    110                          fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     110                         fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    111111                         if ~io_gather, %concatenate the output files:
    112112                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     
    117117                         if cluster.interactive,
    118118                                 fid=fopen([modelname '.run'],'w');
    119                                  fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     119                                 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    120120                                 if ~io_gather, %concatenate the output files:
    121121                                         fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
  • issm/trunk-jpl/src/m/classes/clusters/lonestar.m

    r20531 r21050  
    137137                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
    138138                         fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    139                          fprintf(fid,'ibrun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     139                         fprintf(fid,'ibrun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    140140                         if ~io_gather, %concatenate the output files:
    141141                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     
    151151                         if cluster.interactive,
    152152                                 fid=fopen([modelname '.run'],'w');
    153                                  fprintf(fid,'ibrun -np %i %s/%s %s %s %s\n',cluster.np,executable,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     153                                 fprintf(fid,'ibrun -np %i %s/%s %s %s %s\n',cluster.np,executable,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    154154                                 if ~io_gather, %concatenate the output files:
    155155                                         fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
  • issm/trunk-jpl/src/m/classes/clusters/pfe.m

    r20857 r21050  
    168168                         fprintf(fid,'cd %s/%s/\n\n',cluster.executionpath,dirname);
    169169                         if ~isvalgrind,
    170                                  fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
    171                          else
    172                                  fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     170                                 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
     171                         else
     172                                 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    173173                         end
    174174                         if ~io_gather, %concatenate the output files:
     
    182182                                 if cluster.interactive==10,
    183183                                                 fprintf(fid,'module unload mpi-mvapich2/1.4.1/gcc\n');
    184                                                  fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[pwd() '/run'],modelname);
     184                                                 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[pwd() '/run'],modelname);
    185185                                 else
    186186                                         if ~isvalgrind,
    187                                                  fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname);
     187                                                 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname);
    188188                                         else
    189                                                  fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname);
     189                                                 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname);
    190190                                         end
    191191                                 end
     
    238238
    239239                         %solution name:
    240                          mpistring=[mpistring sprintf('%s ',EnumToString(solution))];
     240                         mpistring=[mpistring sprintf('%s ',solution)];
    241241
    242242                         %execution directory and model name:
     
    265265
    266266                                 %solution name:
    267                                  mpistring=[mpistring sprintf('%s ',EnumToString(solution))];
     267                                 mpistring=[mpistring sprintf('%s ',solution)];
    268268
    269269                                 %execution directory and model name:
  • issm/trunk-jpl/src/m/classes/clusters/pfe.py

    r20120 r21050  
    44import subprocess
    55from fielddisplay import fielddisplay
    6 from EnumToString import EnumToString
    76from pairoptions import pairoptions
    87from issmssh import issmssh
     
    162161                fid.write('source $ISSM_DIR/etc/environment.sh\n')
    163162                fid.write('cd %s/%s/\n\n' % (self.executionpath,dirname))
    164                 fid.write('mpiexec -np %i %s/%s %s %s/%s %s\n' % (self.nprocs(),self.codepath,executable,str(EnumToString(solution)[0]),self.executionpath,dirname,modelname))
     163                fid.write('mpiexec -np %i %s/%s %s %s/%s %s\n' % (self.nprocs(),self.codepath,executable,str(solution),self.executionpath,dirname,modelname))
    165164               
    166165                fid.close()
  • issm/trunk-jpl/src/m/classes/clusters/pollux.m

    r19638 r21050  
    6565                         fprintf(fid,'cd $PBS_O_WORKDIR\n');
    6666                         fprintf(fid,'export OMP_NUM_THREADS=1\n');
    67                          fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     67                         fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    6868                         fclose(fid);
    6969
  • issm/trunk-jpl/src/m/classes/clusters/raijin.m

    r20686 r21050  
    8585                             fprintf(fid,'module load %s\n', cluster.modules{i});
    8686                         end
    87                          fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     87                         fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    8888                         if ~io_gather, %concatenate the output files:
    8989                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
  • issm/trunk-jpl/src/m/classes/clusters/vilje.m

    r20784 r21050  
    129129                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
    130130                         fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    131        fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     131       fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    132132
    133133                         if ~io_gather, %concatenate the output files:
     
    139139                         if cluster.interactive,
    140140                                 fid=fopen([modelname '.run'],'w');
    141                                  fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     141                                 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    142142                                 if ~io_gather, %concatenate the output files:
    143143                                         fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
  • issm/trunk-jpl/src/m/classes/clusters/vilje.py

    r20784 r21050  
    11import subprocess
    22from fielddisplay import fielddisplay
    3 from EnumToString import EnumToString
    43from pairoptions import pairoptions
    54from issmssh import issmssh
     
    110109                fid.write('source $ISSM_DIR/etc/environment.sh\n')
    111110                fid.write('cd %s/%s/\n\n' % (self.executionpath,dirname))
    112                 fid.write('mpiexec -np %i %s/%s %s %s/%s %s\n' % (self.np,self.codepath,executable,str(EnumToString(solution)[0]),self.executionpath,dirname,modelname))
     111                fid.write('mpiexec -np %i %s/%s %s %s/%s %s\n' % (self.np,self.codepath,executable,str(solution),self.executionpath,dirname,modelname))
    113112                fid.close()
    114113
Note: See TracChangeset for help on using the changeset viewer.