-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathimport_concoredocker.m
More file actions
45 lines (39 loc) · 1.04 KB
/
import_concoredocker.m
File metadata and controls
45 lines (39 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
function import_concore
global concore;
% Docker/Linux environment — no Windows batch file generation
iportfile = fopen('concore.iport');
if iportfile ~= -1
try
concore.iports = fscanf(iportfile,'%c');
catch exc
concore.iports = '';
end
fclose(iportfile);
else
concore.iports = '';
end
oportfile = fopen('concore.oport');
if oportfile ~= -1
try
concore.oports = fscanf(oportfile,'%c');
catch exc
concore.oports = '';
end
fclose(oportfile);
else
concore.oports = '';
end
concore.s = '';
concore.olds = '';
concore.delay = 1;
concore.retrycount = 0;
if exist('/in1','dir')==7 % 5/20/21 work for docker or local
concore.inpath = '/in';
concore.outpath = '/out';
else
concore.inpath = 'in';
concore.outpath = 'out';
end
concore.simtime = 0;
concore_default_maxtime(100);
end