Skip to content

Commit

Permalink
fix documenter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Feb 8, 2024
1 parent bcbca71 commit a010a7b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
8 changes: 3 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import Pkg
Pkg.add("Documenter")
import Pkg; Pkg.add("Documenter")
using Documenter
using CellListMap
DocMeta.setdocmeta!(CellListMap, :DocTestSetup, :(using CellListMap); recursive=true)
push!(LOAD_PATH,"../src/")
import CellListMap
#DocMeta.setdocmeta!(CellListMap, :DocTestSetup, :(using CellListMap); recursive=true)
makedocs(
modules=[CellListMap],
sitename="CellListMap.jl",
Expand Down
8 changes: 4 additions & 4 deletions src/PeriodicSystems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ julia> sys = PeriodicSystem(
parallel = false, # use true for parallelization
)
PeriodicSystem1{output} of dimension 3, composed of:
Box{OrthorhombicCell, 3}
Box{CellListMap.OrthorhombicCell, 3}
unit cell matrix = [ 21.0 0.0 0.0; 0.0 21.0 0.0; 0.0 0.0 21.0 ]
cutoff = 8.0
number of computing cells on each dimension = [5, 5, 5]
computing cell sizes = [10.5, 10.5, 10.5] (lcell: 1)
Total number of cells = 125
CellList{3, Float64}
CellListMap.CellList{3, Float64}
100 real particles.
8 cells with real particles.
800 particles in computing box, including images.
Expand All @@ -108,7 +108,7 @@ PeriodicSystem1{output} of dimension 3, composed of:
Type of output variable (output): Float64
julia> map_pairwise!((x,y,i,j,d2,output) -> output += d2, sys)
43774.54367599999
43774.54367600002
```
## Two sets of particles
Expand All @@ -130,7 +130,7 @@ julia> sys = PeriodicSystem(
parallel = false, # use true for parallelization
)
PeriodicSystem2{output} of dimension 3, composed of:
Box{OrthorhombicCell, 3}
Box{CellListMap.OrthorhombicCell, 3}
unit cell matrix = [ 21.0 0.0 0.0; 0.0 21.0 0.0; 0.0 0.0 21.0 ]
cutoff = 8.0
number of computing cells on each dimension = [5, 5, 5]
Expand Down
8 changes: 4 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ using TestItemRunner: @run_package_tests, @testitem
Aqua.test_all(CellListMap)
end

#@testitem "Doctests" begin
# using Documenter: doctest
# doctest(CellListMap)
#end
@testitem "Doctests" begin
using Documenter: doctest
doctest(CellListMap)
end

@testitem "disjoint sets" begin

Expand Down

0 comments on commit a010a7b

Please sign in to comment.