VERB_code_2.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
setup.m
1
%% setup the verb code
for
different figures
2
3
FIGURE =
'1'
; %
'1'
,
'2Mixed'
,
'2NonMixed'
4
RUN =
true
;
5
PLOT =
true
;
6
VERBcodePath =
'../Execute/'
;
7
8
USEMIX =
true
; % optional
9
10
switch
(FIGURE)
11
case
'1'
12
OutputFolder = [VERBcodePath 'Output_' FIGURE '/'];
13
copyfile([VERBcodePath
'Parameters_'
FIGURE
'.ini'
],[VERBcodePath
'Parameters.ini'
]);
14
if
(~exist(OutputFolder,
'file'
))
15
mkdir(OutputFolder)
16
end
17
18
if(RUN)
19
% this file may be obtained by any run of the VERB code with
parameters
of
20
% the grid
21
cd(VERBcodePath)
22
system('VERB_code_2.0');
23
cd('../Setup/');
24
end
25
case {
'2'
,
'3'
}
26
if
((USEMIX && (~RUN)) || RUN )
27
OutputFolder = [VERBcodePath 'Output_' FIGURE 'Mixed/'];
28
copyfile([VERBcodePath
'Parameters_'
FIGURE
'Mixed.ini'
],[VERBcodePath
'Parameters.ini'
]);
29
if
(~exist(OutputFolder,
'file'
))
30
mkdir(OutputFolder)
31
end
32
33
if(RUN)
34
% this file may be obtained by any run of the VERB code with
parameters
of
35
% the grid
36
cd(VERBcodePath)
37
system('VERB_code_2.03.000.exe');
38
cd('../Setup/');
39
end
40
end
41
42
if((~USEMIX && ~RUN) || RUN)
43
OutputFolder = [VERBcodePath 'Output_' FIGURE 'NonMixed/'];
44
copyfile([VERBcodePath 'Parameters_' FIGURE 'NonMixed.ini'],[VERBcodePath 'Parameters.ini']);
45
if(~exist(OutputFolder,'file'))
46
mkdir(OutputFolder)
47
end
48
49
if(RUN)
50
% this file may be obtained by any run of the VERB code with
parameters
of
51
% the grid
52
cd(VERBcodePath)
53
system('VERB_code_2.0');
54
cd('../Setup/');
55
end
56
end
57
58
end
59
60
if(PLOT)
61
cd('../Plot/')
62
run('Plot.m');
63
cd('../Setup/')
64
end
parameters
Parameters_structure parameters
Parameters structure, with all parameters from the parameters.ini file. The default parameters define...
Definition:
Main.cpp:185
EPSS
VERB
verb-2-0
verb2-examples
2D WithWithoutMixedTerms (2010)
Setup
setup.m
Generated by
1.8.10