Changeset 1599


Ignore:
Timestamp:
08/06/09 08:11:17 (16 years ago)
Author:
Mathieu Morlighem
Message:

fixed nightly run parallel

Location:
issm/trunk/src/m/utils
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Nightly/testsgetpackage.m

    r1577 r1599  
    2424
    2525elseif strcmpi(string,'cielo_parallel'),
    26 
    27         %get hostname (and remove spaces with strtrim)
    28         [ret,name]=system('hostname');
    29         if ret,
    30                 if ispc
    31                         name=getenv('COMPUTERNAME');
    32                 else
    33                         name=getenv('HOSTNAME');
    34                 end
    35         end
    36         md.cluster=strtrim(lower(name));
    37 
    38         %assign package
    3926        package='cielo';
     27        md.cluster=oshostname;
    4028
    4129else
  • issm/trunk/src/m/utils/OS/scpin.m

    r1590 r1599  
    1010
    1111%first be sure packages are not in the current directory, this could conflict with pscp on windows.
     12%get initial warning mode
     13state=warning('query', 'all');
     14%remove warnings in case the files do not exist
     15warning off
    1216for i=1:numel(packages),
    1317        delete(packages{i});
    1418end
     19%back to initial warning state
     20warning(state);
    1521
    1622%if hostname and host are the same, do a simple copy
     
    1824
    1925    for i=1:numel(packages),
    20                 copyfile(packages{i});
     26                copyfile([path '/' packages{i}]);
    2127        end
    2228
Note: See TracChangeset for help on using the changeset viewer.