Changeset 23618


Ignore:
Timestamp:
01/09/19 11:37:51 (6 years ago)
Author:
schlegel
Message:

CHG: add dakota and ocean exec options

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

Legend:

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

    r23615 r23618  
    4141                 end
    4242                 %}}}
     43                 function numprocs=np(cluster) % {{{
     44                         %compute number of processors
     45                         numprocs=cluster.numnodes*cluster.cpuspernode;
     46                 end
     47                 %}}}
    4348                 function md = checkconsistency(cluster,md,solution,analyses) % {{{
    4449
     
    5459                         if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end
    5560                         if(isgprof),    disp('gprof not supported by cluster, ignoring...'); end
     61                         executable='issm.exe';
     62                         if isdakota,
     63                                 version=IssmConfig('_DAKOTA_VERSION_'); version=str2num(version(1:3));
     64                                 if (version>=6),
     65                                         executable='issm_dakota.exe';
     66                                 end
     67                         end
     68                         if isoceancoupling,
     69                                 executable='issm_ocean.exe';
     70                         end
    5671
    5772                         %write queuing script
     
    7489                         fprintf(fid,'export PBS_O_WORKDIR=%s\n',[cluster.executionpath '/' dirname]);
    7590                         fprintf(fid,'cd $PBS_O_WORKDIR\n');
    76                          fprintf(fid,'mpirun -n %i %s/issm.exe %s %s %s',cluster.numnodes*cluster.cpuspernode,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
     91                         fprintf(fid,'mpirun -n %i %s/%s %s %s %s',cluster.np(),cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    7792                         fclose(fid);
    7893
  • issm/trunk-jpl/src/m/classes/clusters/localaurora.m

    r23617 r23618  
    4141                 end
    4242                 %}}}
     43                 function numprocs=np(cluster) % {{{
     44                         %compute number of processors
     45                         numprocs=cluster.numnodes*cluster.cpuspernode;
     46                 end
     47                 %}}}
    4348                 function md = checkconsistency(cluster,md,solution,analyses) % {{{
    4449
     
    5459                         if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end
    5560                         if(isgprof),    disp('gprof not supported by cluster, ignoring...'); end
     61                         executable='issm.exe';
     62                         if isdakota,
     63                                 version=IssmConfig('_DAKOTA_VERSION_'); version=str2num(version(1:3));
     64                                 if (version>=6),
     65                                         executable='issm_dakota.exe';
     66                                 end
     67                         end
     68                         if isoceancoupling,
     69                                 executable='issm_ocean.exe';
     70                         end
    5671
    5772                         %write queuing script
     
    7489                         fprintf(fid,'export PBS_O_WORKDIR=%s\n',[cluster.executionpath '/' dirname]);
    7590                         fprintf(fid,'cd $PBS_O_WORKDIR\n');
    76                          fprintf(fid,'mpirun -n %i %s/issm.exe %s %s %s',cluster.numnodes*cluster.cpuspernode,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
     91                         fprintf(fid,'mpirun -n %i %s/%s %s %s %s',cluster.np(),cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    7792                         fclose(fid);
    7893
Note: See TracChangeset for help on using the changeset viewer.