Skip to content
Snippets Groups Projects
Commit 1a4dccad authored by Olivier Sauter's avatar Olivier Sauter
Browse files

take env hostname to have rzg and check better default machine

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@6702 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 860143c5
No related branches found
No related tags found
No related merge requests found
...@@ -82,8 +82,7 @@ default_machine = 'tcv'; ...@@ -82,8 +82,7 @@ default_machine = 'tcv';
if ~isempty(fusion_machine_defaultname) if ~isempty(fusion_machine_defaultname)
default_machine = lower(fusion_machine_defaultname); default_machine = lower(fusion_machine_defaultname);
else else
[s,hostname]=unix('hostname -a'); hostname=getenv('HOSTNAME');
if s || isempty(hostname), hostname=getenv('HOSTNAME');end
if ~isempty(regexpi(hostname,'epfl')) if ~isempty(regexpi(hostname,'epfl'))
default_machine = 'tcv'; default_machine = 'tcv';
elseif ~isempty(regexpi(hostname,'rzg.mpg')) elseif ~isempty(regexpi(hostname,'rzg.mpg'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment