Changeset 15382


Ignore:
Timestamp:
07/01/13 17:55:16 (12 years ago)
Author:
Eric.Larour
Message:

CHG: adding sourcing of etc/environment.sh

File:
1 edited

Legend:

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

    r15381 r15382  
    5454                        fprintf(fid,'#!/bin/bash\n');
    5555                        if cluster.interactive
    56                                 fprintf(fid,'source %s%s',cluster.codepath,'/../etc/environment.sh');
     56                                fprintf(fid,'source %s%s\n',cluster.codepath,'/../etc/environment.sh');
    5757                                fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s ',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
    5858                        else
    59                                 fprintf(fid,'source %s%s',cluster.codepath,'/../etc/environment.sh');
     59                                fprintf(fid,'source %s%s\n',cluster.codepath,'/../etc/environment.sh');
    6060                                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);
    6161                        end
     
    8080                        issmstscpout(cluster.name,cluster.executionpath,cluster.login,{[dirname '.tar.gz']});
    8181
    82                         if ~cluster.interactive,
     82                        if cluster.interactive,
    8383                                disp('sending files to remote cluster. once done, please log into cluster and launch job');
    8484                                launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' dirname ' && mkdir ' dirname ...
Note: See TracChangeset for help on using the changeset viewer.