Debian Codegraph @

packages/seacas/applications/aprepro/exodus-test.apr

raw
1 {exodus_meta("exodus.g")}
2
3 Title = {ex_title}
4 Dimension = {ex_dimension}
5 Node Count = {ex_node_count}
6 Element Count = {ex_element_count}
7
8 {ifdef(ex_block_count)}
9 Element Block Info:
10 Count = {ex_block_count}
11 Names = {ex_block_names}
12 Topology = {ex_block_topology}
13 Ids = {print_array(transpose(ex_block_ids))}
14 {print_array(ex_block_info)}
15 {endif}
16
17 {ifdef(ex_nodeset_count)}
18 Nodeset Info:
19 Count = {ex_nodeset_count}
20 Names = {ex_nodeset_names}
21 Ids = {print_array(transpose(ex_nodeset_ids))}
22 {print_array(ex_nodeset_info)}
23 {endif}
24
25 {ifdef(ex_sideset_count)}
26 Sideset Info:
27 Count = {ex_sideset_count}
28 Names = {ex_sideset_names}
29 Ids = {print_array(transpose(ex_sideset_ids))}
30 {print_array(ex_sideset_info)}
31 {endif}
32
33 {ifdef(ex_timestep_count)}
34 Timestep Info:
35 Count = {ex_timestep_count}
36 Times = {print_array(transpose(ex_timestep_times))}
37 {endif}
38
39 NOTE: Array index are 0-based by default; get_word is 1-based...
40 {loop(ex_block_count)}
41 Element block {ex_block_ids[_i]} named '{get_word(++_i,ex_block_names,",")}' has topology '{get_word(_i,ex_block_topology,",")}'
42 {endloop}
43
44 {info1 = exodus_info("exodus.g", "start extract", "end extract")}
45 {rescan(info1)}
46
47 {info2 = exodus_info("exodus.g", "PRE: ")}
48 {rescan(info2)}
49
50 {_i=0}
51 {loop(ex_block_count)}
52 {_name = get_word(++_i,ex_block_names,",")}
53 {_indx = find_word(_name, ex_block_names, ",")}
54 {if(_indx != _i)}
55 ERROR found in get_word() find_word() symmetry -- {_i} {_indx} {_name}
56 {endif}
57 {endloop}
58
59 Check for name not in list:
60 {indx = find_word("Greg", ex_block_names, ",")}
61 {if (indx != 0)}
62 ERROR: Incorrect return from find_word() function
63 {endif}