Skip to content

Commit 371538c

Browse files
committed
temporary fix for docs
wait for pull request to BEAST before code is removed
1 parent 886f3ca commit 371538c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/make.jl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,32 @@ import GraphColoring:
1414
conflicts,
1515
ConflictFunctor
1616

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+
1743
DocMeta.setdocmeta!(GraphColoring, :DocTestSetup, :(using GraphColoring); recursive=true)
1844

1945
makedocs(;

0 commit comments

Comments
 (0)