Changeset 15381


Ignore:
Timestamp:
07/01/13 17:52:43 (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

    r15380 r15381  
    5454                        fprintf(fid,'#!/bin/bash\n');
    5555                        if cluster.interactive
    56                                 fprintf(fid,'source ' cluster.codepath '../etc/environment.sh');
     56                                fprintf(fid,'source %s%s',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 ' cluster.codepath '../etc/environment.sh');
     59                                fprintf(fid,'source %s%s',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
Note: See TracChangeset for help on using the changeset viewer.