Changeset 19649


Ignore:
Timestamp:
10/19/15 12:49:54 (9 years ago)
Author:
Eric.Larour
Message:

CHG: allow generic cluter to run dakota in parallel for versions >= 6

File:
1 edited

Legend:

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

    r19640 r19649  
    9393
    9494                        %write queuing script
     95                        %what is the executable being called?
     96                        executable='issm.exe';
     97                        version=IssmConfig('_DAKOTA_VERSION_'); version=str2num(version(1:3));
     98                        if isdakota & (version>=6),
     99                                executable='issm_dakota.exe';
     100                        end
     101
    95102                        if ~ispc(),
    96103
     
    100107                                        if cluster.interactive
    101108                                                if IssmConfig('_HAVE_MPI_'),
    102                                                         fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s \n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
    103                                                 else
    104                                                         fprintf(fid,'%s/issm.exe %s %s %s ',cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     109                                                        fprintf(fid,'mpiexec -np %i %s/%s %s %s %s \n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     110                                                else
     111                                                        fprintf(fid,'%s/%s %s %s %s ',cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
    105112                                                end
    106113                                        else
    107114                                                if IssmConfig('_HAVE_MPI_'),
    108                                                         fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    109                                                 else
    110                                                         fprintf(fid,'%s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
     115                                                        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);
     116                                                else
     117                                                        fprintf(fid,'%s/%s %s %s %s 2> %s.errlog >%s.outlog ',cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    111118                                                end
    112119                                        end
Note: See TracChangeset for help on using the changeset viewer.