File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,32 @@ import GraphColoring:
14
14
conflicts,
15
15
ConflictFunctor
16
16
17
+ # this will be moved to BEAST as soon as the pull request is ready
18
+ using BEAST
19
+ function GraphColoring. conflicts (
20
+ space:: BEAST.Space ;
21
+ addata= BEAST. assemblydata (space),
22
+ refspace= BEAST. refspace (space),
23
+ kwargs... ,
24
+ )
25
+ elements, ad, _ = addata
26
+
27
+ conflictindices = Vector{Int}[Int[] for _ in eachindex (elements)]
28
+
29
+ reference = BEAST. domain (BEAST. chart (geometry (space), first (geometry (space))))
30
+
31
+ for elementid in eachindex (elements)
32
+ for i in 1 : numfunctions (refspace, reference)
33
+ for (functionid, _) in ad[elementid, i]
34
+ push! (conflictindices[elementid], functionid)
35
+ end
36
+ end
37
+ end
38
+ return eachindex (elements),
39
+ GraphColoring. ConflictFunctor (conflictindices),
40
+ Base. OneTo (numfunctions (space))
41
+ end
42
+
17
43
DocMeta. setdocmeta! (GraphColoring, :DocTestSetup , :(using GraphColoring); recursive= true )
18
44
19
45
makedocs (;
You can’t perform that action at this time.
0 commit comments