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

add tunnel connection to local:host

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@7305 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 2c327d1a
No related branches found
No related tags found
No related merge requests found
......@@ -256,9 +256,22 @@ if strcmp(mapping_for_d3d.method,'signal')
else
mapping_for_d3d.expression{1} = gdat_data.gdat_params.source;
end
gdat_data.gdat_params.source = mapping_for_d3d.expression{1};
[shoteff,stat] = mdsopen(['atlas.gat.com::' mapping_for_d3d.expression{1}],shot);
if shoteff~=shot
shoteff = [];
aa=mdscurrent;
if ~isempty(shot)
if isempty(aa) && mdsremotelist==0 && any(findstr('epfl',getenv('HOSTNAME')))
mdsconnect('localhost:5556');
aa=mdscurrent;
end
if strmatch('localhost',aa)
[shoteff,stat] = mdsopen(mapping_for_d3d.expression{1},shot);
else
[shoteff,stat] = mdsopen(['atlas.gat.com::' mapping_for_d3d.expression{1}],shot);
end
else
shot = mdsvalue('$shot');
end
if ~isempty(shoteff) && shoteff~=shot
disp('cannot open shot');
return
end
......
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