-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettingChecker
53 lines (36 loc) · 1.06 KB
/
SettingChecker
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
46
47
48
49
50
51
52
53
file_path = bui_fluidx3d['sna_definespath']
# Read the lines from the file
with open(file_path, 'r') as file:
lines = file.readlines()
if lines[4].startswith('//'):
bui_fluidx3d['sna_d2q9'] = False
else:
bui_fluidx3d['sna_d2q9'] = True
if lines[5].startswith('//'):
bui_fluidx3d['sna_d3q15'] = False
else:
bui_fluidx3d['sna_d3q15'] = True
if lines[6].startswith('//'):
bui_fluidx3d['sna_d3q19'] = False
else:
bui_fluidx3d['sna_d3q19'] = True
if lines[7].startswith('//'):
bui_fluidx3d['sna_d3q27'] = False
else:
bui_fluidx3d['sna_d3q27'] = True
if lines[9].startswith('//'):
bui_fluidx3d['sna_srt'] = False
else:
bui_fluidx3d['sna_srt'] = True
if lines[10].startswith('//'):
bui_fluidx3d['sna_trt'] = False
else:
bui_fluidx3d['sna_trt'] = True
if lines[12].startswith('//'):
bui_fluidx3d['sna_fp16s'] = False
else:
bui_fluidx3d['sna_fp16s'] = True
if lines[13].startswith('//'):
bui_fluidx3d['sna_fp16c'] = False
else:
bui_fluidx3d['sna_fp16c'] = True