Mercurial > repos > public > sbplib_julia
changeset 1729:3c788144be42
Merge rename_module
author | Vidar Stiernström <vidar.stiernstrom@gmail.com> |
---|---|
date | Sun, 08 Sep 2024 17:11:56 -0700 |
parents | 8317252e4535 (current diff) 04bc1c403b2c (diff) |
children | f215ac2a5c66 |
files | |
diffstat | 59 files changed, 348 insertions(+), 359 deletions(-) [+] |
line wrap: on
line diff
--- a/Project.toml Thu Sep 05 23:16:39 2024 +0200 +++ b/Project.toml Sun Sep 08 17:11:56 2024 -0700 @@ -1,6 +1,6 @@ -name = "Sbplib" +name = "Diffinitive" uuid = "5a373a26-915f-4769-bcab-bf03835de17b" -authors = ["Jonatan Werpers <jonatan@werpers.com>", "Vidar Stiernström <vidar.stiernstrom@it.uu.se>, and contributors"] +authors = ["Jonatan Werpers <jonatan@werpers.com>", "Vidar Stiernström <vidar.stiernstrom@gmail.com>, and contributors"] version = "0.1.1" [deps] @@ -15,9 +15,9 @@ Tokens = "040c2ec2-8d69-4aca-bf03-7d3a7092f2f6" [extensions] -SbplibMakieExt = "Makie" -SbplibSparseArrayKitExt = ["SparseArrayKit", "Tokens"] -SbplibSparseArraysExt = ["SparseArrays", "Tokens"] +DiffinitiveMakieExt = "Makie" +DiffinitiveSparseArrayKitExt = ["SparseArrayKit", "Tokens"] +DiffinitiveSparseArraysExt = ["SparseArrays", "Tokens"] [compat] julia = "1.5"
--- a/README.md Thu Sep 05 23:16:39 2024 +0200 +++ b/README.md Sun Sep 08 17:11:56 2024 -0700 @@ -1,10 +1,10 @@ -# Sbplib +# Diffinitive ## Running tests To run all tests simply run ``` (@v1.5) pkg> activate . -(Sbplib) pkg> test +(Diffinitive) pkg> test ``` If you want to run tests from a specific file in `test/`, you can do @@ -59,8 +59,8 @@ ```julia using PkgBenchmark -import Sbplib -r = benchmarkpkg(Sbplib) +import Diffinitive +r = benchmarkpkg(Diffinitive) export_markdown(stdout, r) ```
--- a/benchmark/Manifest.toml Thu Sep 05 23:16:39 2024 +0200 +++ b/benchmark/Manifest.toml Sun Sep 08 17:11:56 2024 -0700 @@ -2,7 +2,7 @@ julia_version = "1.10.5" manifest_format = "2.0" -project_hash = "25bba7b4a00465d5a2b00b589eb10e3301c31f2a" +project_hash = "ecfc3e12aca5be17a874aba6134ff821abf61540" [[deps.AbstractTrees]] git-tree-sha1 = "2d9c9a55f9c93e8887ad391fbae72f8ef55e1177" @@ -99,6 +99,23 @@ deps = ["Printf"] uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" +[[deps.Diffinitive]] +deps = ["StaticArrays", "TOML", "TiledIteration"] +path = ".." +uuid = "5a373a26-915f-4769-bcab-bf03835de17b" +version = "0.1.1" + + [deps.Diffinitive.extensions] + DiffinitiveMakieExt = "Makie" + DiffinitiveSparseArrayKitExt = ["SparseArrayKit", "Tokens"] + DiffinitiveSparseArraysExt = ["SparseArrays", "Tokens"] + + [deps.Diffinitive.weakdeps] + Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a" + SparseArrayKit = "a9a3c162-d163-4c15-8926-b8794fbefed2" + SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" + Tokens = "040c2ec2-8d69-4aca-bf03-7d3a7092f2f6" + [[deps.Downloads]] deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"] uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6" @@ -273,18 +290,6 @@ uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce" version = "0.7.0" -[[deps.Sbplib]] -deps = ["StaticArrays", "TOML", "TiledIteration"] -path = ".." -uuid = "5a373a26-915f-4769-bcab-bf03835de17b" -version = "0.1.1" - - [deps.Sbplib.extensions] - SbplibMakieExt = "Makie" - - [deps.Sbplib.weakdeps] - Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a" - [[deps.Serialization]] uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
--- a/benchmark/Project.toml Thu Sep 05 23:16:39 2024 +0200 +++ b/benchmark/Project.toml Sun Sep 08 17:11:56 2024 -0700 @@ -1,5 +1,5 @@ [deps] BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" +Diffinitive = "5a373a26-915f-4769-bcab-bf03835de17b" Mustache = "ffc61752-8dc7-55ee-8c37-f3e9cdd09e70" -PkgBenchmark = "32113eaa-f34f-5b0d-bd6c-c81e245fc73d" -Sbplib = "5a373a26-915f-4769-bcab-bf03835de17b" +PkgBenchmark = "32113eaa-f34f-5b0d-bd6c-c81e245fc73d" \ No newline at end of file
--- a/benchmark/benchmark_laplace.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/benchmark/benchmark_laplace.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,7 +1,7 @@ -using Sbplib -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.RegionIndices +using Diffinitive +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.RegionIndices using BenchmarkTools # TODO: Move the below benchmarks into the benchmark suite
--- a/benchmark/benchmark_utils.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/benchmark/benchmark_utils.jl Sun Sep 08 17:11:56 2024 -0700 @@ -3,11 +3,11 @@ import Mustache import Dates -import Sbplib +import Diffinitive -const sbplib_root = splitpath(pathof(Sbplib))[1:end-2] |> joinpath -const results_dir = mkpath(joinpath(sbplib_root, "benchmark/results")) -const template_path = joinpath(sbplib_root, "benchmark/result.tmpl") +const diffinitive_root = splitpath(pathof(Diffinitive))[1:end-2] |> joinpath +const results_dir = mkpath(joinpath(diffinitive_root, "benchmark/results")) +const template_path = joinpath(diffinitive_root, "benchmark/result.tmpl") """ mainmain(;rev=nothing, target=nothing, baseline=nothing , kwargs...) @@ -49,7 +49,7 @@ `PkgBenchmark.BenchmarkResult` """ function run_benchmark(;kwargs...) - r = PkgBenchmark.benchmarkpkg(Sbplib; kwargs...) + r = PkgBenchmark.benchmarkpkg(Diffinitive; kwargs...) rev = hg_rev() # Should be changed to hg_id() when the html can handle it. @@ -158,17 +158,17 @@ function hg_id() - cmd = Cmd(`hg id`, dir=sbplib_root) + cmd = Cmd(`hg id`, dir=diffinitive_root) return readchomp(addenv(cmd, "HGPLAIN"=>"")) end function hg_rev() - cmd = Cmd(`hg id -i`, dir=sbplib_root) + cmd = Cmd(`hg id -i`, dir=diffinitive_root) return readchomp(addenv(cmd, "HGPLAIN"=>"")) end function hg_update(rev) - cmd = Cmd(`hg update --check -r $rev`, dir=sbplib_root) + cmd = Cmd(`hg update --check -r $rev`, dir=diffinitive_root) run(addenv(cmd, "HGPLAIN"=>"")) return nothing @@ -182,9 +182,9 @@ """ function hg_commit(msg; secret=false) if secret - cmd = Cmd(`hg commit --verbose --secret --message $msg`, dir=sbplib_root) + cmd = Cmd(`hg commit --verbose --secret --message $msg`, dir=diffinitive_root) else - cmd = Cmd(`hg commit --verbose --message $msg`, dir=sbplib_root) + cmd = Cmd(`hg commit --verbose --message $msg`, dir=diffinitive_root) end out = readchomp(addenv(cmd, "HGPLAIN"=>"")) @@ -200,9 +200,9 @@ """ function hg_strip(rev; keep=false) if keep - cmd = Cmd(`hg --config extensions.strip= strip --keep -r $rev`, dir=sbplib_root) + cmd = Cmd(`hg --config extensions.strip= strip --keep -r $rev`, dir=diffinitive_root) else - cmd = Cmd(`hg --config extensions.strip= strip -r $rev`, dir=sbplib_root) + cmd = Cmd(`hg --config extensions.strip= strip -r $rev`, dir=diffinitive_root) end run(addenv(cmd, "HGPLAIN"=>"")) @@ -216,7 +216,7 @@ Return true if the repositopry has uncommited changes. """ function hg_is_dirty() - cmd = Cmd(`hg identify --id`, dir=sbplib_root) + cmd = Cmd(`hg identify --id`, dir=diffinitive_root) out = readchomp(addenv(cmd, "HGPLAIN"=>"")) return endswith(out, "+")
--- a/benchmark/benchmarks.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/benchmark/benchmarks.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,9 +1,9 @@ using BenchmarkTools -using Sbplib -using Sbplib.Grids -using Sbplib.SbpOperators -using Sbplib.LazyTensors +using Diffinitive +using Diffinitive.Grids +using Diffinitive.SbpOperators +using Diffinitive.LazyTensors using LinearAlgebra
--- a/docs/Manifest.toml Thu Sep 05 23:16:39 2024 +0200 +++ b/docs/Manifest.toml Sun Sep 08 17:11:56 2024 -0700 @@ -2,7 +2,7 @@ julia_version = "1.10.5" manifest_format = "2.0" -project_hash = "4f0756199bb5f6739a5f4697152617efc4e0705c" +project_hash = "c04450bb5c379e77d137cc05c4c0ab58eb1bfae9" [[deps.ANSIColoredPrinters]] git-tree-sha1 = "574baf8110975760d391c710b6341da1afa48d8c" @@ -94,6 +94,23 @@ deps = ["Printf"] uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" +[[deps.Diffinitive]] +deps = ["StaticArrays", "TOML", "TiledIteration"] +path = ".." +uuid = "5a373a26-915f-4769-bcab-bf03835de17b" +version = "0.1.1" + + [deps.Diffinitive.extensions] + DiffinitiveMakieExt = "Makie" + DiffinitiveSparseArrayKitExt = ["SparseArrayKit", "Tokens"] + DiffinitiveSparseArraysExt = ["SparseArrays", "Tokens"] + + [deps.Diffinitive.weakdeps] + Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a" + SparseArrayKit = "a9a3c162-d163-4c15-8926-b8794fbefed2" + SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" + Tokens = "040c2ec2-8d69-4aca-bf03-7d3a7092f2f6" + [[deps.DocStringExtensions]] deps = ["LibGit2"] git-tree-sha1 = "2fb1e02f2b635d0845df5d7c167fec4dd739b00d" @@ -306,18 +323,6 @@ uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce" version = "0.7.0" -[[deps.Sbplib]] -deps = ["StaticArrays", "TOML", "TiledIteration"] -path = ".." -uuid = "5a373a26-915f-4769-bcab-bf03835de17b" -version = "0.1.1" - - [deps.Sbplib.extensions] - SbplibMakieExt = "Makie" - - [deps.Sbplib.weakdeps] - Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a" - [[deps.Serialization]] uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
--- a/docs/Project.toml Thu Sep 05 23:16:39 2024 +0200 +++ b/docs/Project.toml Sun Sep 08 17:11:56 2024 -0700 @@ -1,3 +1,3 @@ [deps] +Diffinitive = "5a373a26-915f-4769-bcab-bf03835de17b" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" -Sbplib = "5a373a26-915f-4769-bcab-bf03835de17b"
--- a/docs/make.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/docs/make.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,14 +1,14 @@ using Documenter -using Sbplib +using Diffinitive -using Sbplib.DiffOps -using Sbplib.Grids -using Sbplib.LazyTensors -using Sbplib.RegionIndices -using Sbplib.SbpOperators -using Sbplib.StaticDicts +using Diffinitive.DiffOps +using Diffinitive.Grids +using Diffinitive.LazyTensors +using Diffinitive.RegionIndices +using Diffinitive.SbpOperators +using Diffinitive.StaticDicts -sitename = "Sbplib.jl" +sitename = "Diffinitive.jl" remotes = nothing edit_link = nothing
--- a/docs/src/index.md Thu Sep 05 23:16:39 2024 +0200 +++ b/docs/src/index.md Sun Sep 08 17:11:56 2024 -0700 @@ -1,4 +1,4 @@ -# Sbplib.jl +# Diffinitive.jl ```@contents Depth = 1
--- a/docs/src/operator_file_format.md Thu Sep 05 23:16:39 2024 +0200 +++ b/docs/src/operator_file_format.md Sun Sep 08 17:11:56 2024 -0700 @@ -1,6 +1,6 @@ # Operator file format -The intention is that Sbplib.jl should be a general and extensible framework +The intention is that Diffinitive.jl should be a general and extensible framework for working with finite difference methods. It therefore includes a set of tools for storing and sharing operator definitions as well as a set of widely used operators.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ext/DiffinitiveMakieExt.jl Sun Sep 08 17:11:56 2024 -0700 @@ -0,0 +1,88 @@ +module DiffinitiveMakieExt + +using Diffinitive.Grids +using Makie +using StaticArrays + + +function verticies_and_faces_and_values(g::Grid{<:Any,2}, gf::AbstractArray{<:Any, 2}) + ps = map(Tuple, g)[:] + values = gf[:] + faces = Vector{NTuple{3,Int}}() + + n,m = size(g) + Li = LinearIndices((1:n, 1:m)) + for i ∈ 1:n-1, j = 1:m-1 + + # Add point in the middle of the patch to preserve symmetries + push!(ps, Tuple((g[i,j] + g[i+1,j] + g[i+1,j+1] + g[i,j+1])/4)) + push!(values, (gf[i,j] + gf[i+1,j] + gf[i+1,j+1] + gf[i,j+1])/4) + + push!(faces, (Li[i,j], Li[i+1,j], length(ps))) + push!(faces, (Li[i+1,j], Li[i+1,j+1], length(ps))) + push!(faces, (Li[i+1,j+1], Li[i,j+1], length(ps))) + push!(faces, (Li[i,j+1], Li[i,j], length(ps))) + end + + verticies = permutedims(reinterpret(reshape,eltype(eltype(ps)), ps)) + faces = permutedims(reinterpret(reshape,Int, faces)) + + return verticies, faces, values +end + + +## Grids + +Makie.convert_arguments(::Type{<:Scatter}, g::Grid) = (reshape(map(Point,g),:),) # (map(Point,collect(g)[:]),) +function Makie.convert_arguments(::Type{<:Lines}, g::Grid{<:Any,2}) + M = collect(g) + + function cat_with_NaN(a,b) + vcat(a,[@SVector[NaN,NaN]],b) + end + + xlines = reduce(cat_with_NaN, eachrow(M)) + ylines = reduce(cat_with_NaN, eachcol(M)) + + return (cat_with_NaN(xlines,ylines),) +end + +Makie.plot!(plot::Plot(Grid{<:Any,2})) = lines!(plot, plot.attributes, plot[1]) + + +## Grid functions + +### 1D +function Makie.convert_arguments(::Type{<:Lines}, g::Grid{<:Any,1}, gf::AbstractArray{<:Any, 1}) + (collect(g), gf) +end + +function Makie.convert_arguments(::Type{<:Scatter}, g::Grid{<:Any,1}, gf::AbstractArray{<:Any, 1}) + (collect(g), gf) +end + +Makie.plot!(plot::Plot(Grid{<:Any,1}, AbstractArray{<:Any,1})) = lines!(plot, plot.attributes, plot[1], plot[2]) + +### 2D +function Makie.convert_arguments(::Type{<:Surface}, g::Grid{<:Any,2}, gf::AbstractArray{<:Any, 2}) + (getindex.(g,1), getindex.(g,2), gf) +end + +function Makie.plot!(plot::Plot(Grid{<:Any,2},AbstractArray{<:Any, 2})) + r = @lift verticies_and_faces_and_values($(plot[1]), $(plot[2])) + v,f,c = (@lift $r[1]), (@lift $r[2]), (@lift $r[3]) + mesh!(plot, plot.attributes, v, f; + color=c, + shading = NoShading, + ) +end +# TBD: Can we define `mesh` instead of the above function and then forward plot! to that? + +function Makie.convert_arguments(::Type{<:Scatter}, g::Grid{<:Any,2}, gf::AbstractArray{<:Any, 2}) + ps = map(g,gf) do (x,y), z + @SVector[x,y,z] + end + (reshape(ps,:),) +end + +end
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ext/DiffinitiveSparseArrayKitExt.jl Sun Sep 08 17:11:56 2024 -0700 @@ -0,0 +1,22 @@ +module DiffinitiveSparseArrayKitExt + +using Diffinitive +using Diffinitive.LazyTensors + +using SparseArrayKit +using Tokens + +""" + SparseArray(t::LazyTensor) + +The sparse tensor representation of `t` with range dimensions to the left and +domain dimensions to the right. If `L` is a `LazyTensor` with range and +domain dimension 2 and `v` a 2-tensor, then `A = SparseArray(t)` is +constructed so that `∑ₖ∑ₗA[i,j,k,l]*v[k,l] == L*v`. +""" +function SparseArrayKit.SparseArray(t::LazyTensor) + v = ArrayToken(:v, domain_size(t)...) + return Tokens._to_tensor(t*v, range_size(t), domain_size(t)) +end + +end
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ext/DiffinitiveSparseArraysExt.jl Sun Sep 08 17:11:56 2024 -0700 @@ -0,0 +1,25 @@ +module DiffinitiveSparseArraysExt + +using Diffinitive +using Diffinitive.LazyTensors + +using SparseArrays +using Tokens + +""" + sparse(t::LazyTensor) + +The sparse matrix representation of `t`. + +If `L` is a `LazyTensor` and `v` a tensor, then `A = sparse(L)` is constructed +so that `A*reshape(v,:) == reshape(L*v,:)`. +""" +function SparseArrays.sparse(t::LazyTensor) + v = ArrayToken(:v, prod(domain_size(t))) + + v̄ = reshape(v,domain_size(t)...) + tv = reshape(t*v̄, :) + return Tokens._to_matrix(tv, prod(range_size(t)), prod(domain_size(t))) +end + +end
--- a/ext/SbplibMakieExt.jl Thu Sep 05 23:16:39 2024 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +0,0 @@ -module SbplibMakieExt - -using Sbplib.Grids -using Makie -using StaticArrays - - -function verticies_and_faces_and_values(g::Grid{<:Any,2}, gf::AbstractArray{<:Any, 2}) - ps = map(Tuple, g)[:] - values = gf[:] - faces = Vector{NTuple{3,Int}}() - - n,m = size(g) - Li = LinearIndices((1:n, 1:m)) - for i ∈ 1:n-1, j = 1:m-1 - - # Add point in the middle of the patch to preserve symmetries - push!(ps, Tuple((g[i,j] + g[i+1,j] + g[i+1,j+1] + g[i,j+1])/4)) - push!(values, (gf[i,j] + gf[i+1,j] + gf[i+1,j+1] + gf[i,j+1])/4) - - push!(faces, (Li[i,j], Li[i+1,j], length(ps))) - push!(faces, (Li[i+1,j], Li[i+1,j+1], length(ps))) - push!(faces, (Li[i+1,j+1], Li[i,j+1], length(ps))) - push!(faces, (Li[i,j+1], Li[i,j], length(ps))) - end - - verticies = permutedims(reinterpret(reshape,eltype(eltype(ps)), ps)) - faces = permutedims(reinterpret(reshape,Int, faces)) - - return verticies, faces, values -end - - -## Grids - -Makie.convert_arguments(::Type{<:Scatter}, g::Grid) = (reshape(map(Point,g),:),) # (map(Point,collect(g)[:]),) -function Makie.convert_arguments(::Type{<:Lines}, g::Grid{<:Any,2}) - M = collect(g) - - function cat_with_NaN(a,b) - vcat(a,[@SVector[NaN,NaN]],b) - end - - xlines = reduce(cat_with_NaN, eachrow(M)) - ylines = reduce(cat_with_NaN, eachcol(M)) - - return (cat_with_NaN(xlines,ylines),) -end - -Makie.plot!(plot::Plot(Grid{<:Any,2})) = lines!(plot, plot.attributes, plot[1]) - - -## Grid functions - -### 1D -function Makie.convert_arguments(::Type{<:Lines}, g::Grid{<:Any,1}, gf::AbstractArray{<:Any, 1}) - (collect(g), gf) -end - -function Makie.convert_arguments(::Type{<:Scatter}, g::Grid{<:Any,1}, gf::AbstractArray{<:Any, 1}) - (collect(g), gf) -end - -Makie.plot!(plot::Plot(Grid{<:Any,1}, AbstractArray{<:Any,1})) = lines!(plot, plot.attributes, plot[1], plot[2]) - -### 2D -function Makie.convert_arguments(::Type{<:Surface}, g::Grid{<:Any,2}, gf::AbstractArray{<:Any, 2}) - (getindex.(g,1), getindex.(g,2), gf) -end - -function Makie.plot!(plot::Plot(Grid{<:Any,2},AbstractArray{<:Any, 2})) - r = @lift verticies_and_faces_and_values($(plot[1]), $(plot[2])) - v,f,c = (@lift $r[1]), (@lift $r[2]), (@lift $r[3]) - mesh!(plot, plot.attributes, v, f; - color=c, - shading = NoShading, - ) -end -# TBD: Can we define `mesh` instead of the above function and then forward plot! to that? - -function Makie.convert_arguments(::Type{<:Scatter}, g::Grid{<:Any,2}, gf::AbstractArray{<:Any, 2}) - ps = map(g,gf) do (x,y), z - @SVector[x,y,z] - end - (reshape(ps,:),) -end - -end
--- a/ext/SbplibSparseArrayKitExt.jl Thu Sep 05 23:16:39 2024 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -module SbplibSparseArrayKitExt - -using Sbplib -using Sbplib.LazyTensors - -using SparseArrayKit -using Tokens - -""" - SparseArray(t::LazyTensor) - -The sparse tensor representation of `t` with range dimensions to the left and -domain dimensions to the right. If `L` is a `LazyTensor` with range and -domain dimension 2 and `v` a 2-tensor, then `A = SparseArray(t)` is -constructed so that `∑ₖ∑ₗA[i,j,k,l]*v[k,l] == L*v`. -""" -function SparseArrayKit.SparseArray(t::LazyTensor) - v = ArrayToken(:v, domain_size(t)...) - return Tokens._to_tensor(t*v, range_size(t), domain_size(t)) -end - -end
--- a/ext/SbplibSparseArraysExt.jl Thu Sep 05 23:16:39 2024 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -module SbplibSparseArraysExt - -using Sbplib -using Sbplib.LazyTensors - -using SparseArrays -using Tokens - -""" - sparse(t::LazyTensor) - -The sparse matrix representation of `t`. - -If `L` is a `LazyTensor` and `v` a tensor, then `A = sparse(L)` is constructed -so that `A*reshape(v,:) == reshape(L*v,:)`. -""" -function SparseArrays.sparse(t::LazyTensor) - v = ArrayToken(:v, prod(domain_size(t))) - - v̄ = reshape(v,domain_size(t)...) - tv = reshape(t*v̄, :) - return Tokens._to_matrix(tv, prod(range_size(t)), prod(domain_size(t))) -end - -end
--- a/sbp.jl Thu Sep 05 23:16:39 2024 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -module sbp - -using Sbplib.Grids -using Sbplib.RegionIndices -using Sbplib.SbpOperators -using Sbplib.DiffOps - -include("TimeStepper.jl") -end # module
--- a/sbpPlot.jl Thu Sep 05 23:16:39 2024 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -include("sbp.jl") -using Makie -import .sbp.Grid -function plotgridfunction(grid::sbp.Grid.EquidistantGrid, gridfunction::AbstractArray) - if sbp.Grid.dimension(grid) == 1 - plot(sbp.Grid.pointsalongdim(grid,1), gridfunction) - elseif sbp.Grid.dimension(grid) == 2 - scene = surface(sbp.Grid.pointsalongdim(grid,1),sbp.Grid.pointsalongdim(grid,2), gridfunction) - else - error(string("Plot not implemented for dimension ", string(dimension(grid)))) - end -end
--- a/src/DiffOps/DiffOps.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/src/DiffOps/DiffOps.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,9 +1,9 @@ module DiffOps -using Sbplib.RegionIndices -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.LazyTensors +using Diffinitive.RegionIndices +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors """ DiffOp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/Diffinitive.jl Sun Sep 08 17:11:56 2024 -0700 @@ -0,0 +1,16 @@ +module Diffinitive + +include("StaticDicts/StaticDicts.jl") +include("RegionIndices/RegionIndices.jl") +include("LazyTensors/LazyTensors.jl") +include("Grids/Grids.jl") +include("SbpOperators/SbpOperators.jl") +include("DiffOps/DiffOps.jl") + +export RegionIndices +export LazyTensors +export Grids +export SbpOperators +export DiffOps + +end
--- a/src/Grids/Grids.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/src/Grids/Grids.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,6 +1,6 @@ module Grids -using Sbplib.LazyTensors +using Diffinitive.LazyTensors using StaticArrays # Grid
--- a/src/Grids/tensor_grid.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/src/Grids/tensor_grid.jl Sun Sep 08 17:11:56 2024 -0700 @@ -117,7 +117,7 @@ end """ - grid_and_local_dim_index(nds, d) + grid_and_local_dim_index(nds, d) Given a tuple of number of dimensions `nds`, and a global dimension index `d`, calculate which grid index, and local dimension, `d` corresponds to.
--- a/src/SbpOperators/SbpOperators.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/src/SbpOperators/SbpOperators.jl Sun Sep 08 17:11:56 2024 -0700 @@ -40,9 +40,9 @@ export sat_tensors # Using -using Sbplib.RegionIndices -using Sbplib.LazyTensors -using Sbplib.Grids +using Diffinitive.RegionIndices +using Diffinitive.LazyTensors +using Diffinitive.Grids # Includes include("stencil.jl")
--- a/src/Sbplib.jl Thu Sep 05 23:16:39 2024 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -module Sbplib - -include("StaticDicts/StaticDicts.jl") -include("RegionIndices/RegionIndices.jl") -include("LazyTensors/LazyTensors.jl") -include("Grids/Grids.jl") -include("SbpOperators/SbpOperators.jl") -include("DiffOps/DiffOps.jl") - -export RegionIndices -export LazyTensors -export Grids -export SbpOperators -export DiffOps - -end
--- a/test/DiffOps/DiffOps_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/DiffOps/DiffOps_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,9 +1,9 @@ using Test -using Sbplib.DiffOps -using Sbplib.Grids -using Sbplib.SbpOperators -using Sbplib.RegionIndices -using Sbplib.LazyTensors +using Diffinitive.DiffOps +using Diffinitive.Grids +using Diffinitive.SbpOperators +using Diffinitive.RegionIndices +using Diffinitive.LazyTensors # # @testset "BoundaryValue" begin
--- a/test/Grids/equidistant_grid_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/Grids/equidistant_grid_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,6 +1,6 @@ -using Sbplib.Grids +using Diffinitive.Grids using Test -using Sbplib.LazyTensors +using Diffinitive.LazyTensors @testset "EquidistantGrid" begin
--- a/test/Grids/grid_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/Grids/grid_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,6 +1,6 @@ using Test -using Sbplib.Grids -using Sbplib.LazyTensors +using Diffinitive.Grids +using Diffinitive.LazyTensors using StaticArrays @testset "Grid" begin
--- a/test/Grids/tensor_grid_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/Grids/tensor_grid_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,5 +1,5 @@ using Test -using Sbplib.Grids +using Diffinitive.Grids using StaticArrays @testset "TensorGrid" begin
--- a/test/Grids/zero_dim_grid_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/Grids/zero_dim_grid_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,5 +1,5 @@ using Test -using Sbplib.Grids +using Diffinitive.Grids using StaticArrays @testset "ZeroDimGrid" begin
--- a/test/LazyTensors/lazy_array_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/LazyTensors/lazy_array_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,6 +1,6 @@ using Test -using Sbplib.LazyTensors -using Sbplib.RegionIndices +using Diffinitive.LazyTensors +using Diffinitive.RegionIndices @testset "LazyArray" begin
--- a/test/LazyTensors/lazy_tensor_operations_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/LazyTensors/lazy_tensor_operations_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,6 +1,6 @@ using Test -using Sbplib.LazyTensors -using Sbplib.RegionIndices +using Diffinitive.LazyTensors +using Diffinitive.RegionIndices using Tullio
--- a/test/LazyTensors/lazy_tensor_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/LazyTensors/lazy_tensor_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,5 +1,5 @@ using Test -using Sbplib.LazyTensors +using Diffinitive.LazyTensors @testset "Generic Mapping methods" begin struct DummyMapping{T,R,D} <: LazyTensor{T,R,D} end
--- a/test/LazyTensors/tensor_types_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/LazyTensors/tensor_types_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,5 +1,5 @@ using Test -using Sbplib.LazyTensors +using Diffinitive.LazyTensors using BenchmarkTools @testset "IdentityTensor" begin
--- a/test/LazyTensors/tuple_manipulation_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/LazyTensors/tuple_manipulation_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,5 +1,5 @@ using Test -using Sbplib.LazyTensors +using Diffinitive.LazyTensors @testset "split_index" begin @test LazyTensors.split_index(2,1,2,2, 1,2,3,4,5,6) == ((1,2,:,5,6),(3,4))
--- a/test/Manifest.toml Thu Sep 05 23:16:39 2024 +0200 +++ b/test/Manifest.toml Sun Sep 08 17:11:56 2024 -0700 @@ -319,7 +319,7 @@ [[deps.Tokens]] deps = ["SparseArrayKit", "SparseArrays"] -git-tree-sha1 = "719b0bdaa0d28fea79796f586b67e576d9ca0c26" +git-tree-sha1 = "c4f40125383ce3bfcfcd49a1b206080b7afd9a34" uuid = "040c2ec2-8d69-4aca-bf03-7d3a7092f2f6" version = "0.1.1"
--- a/test/RegionIndices/RegionIndices_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/RegionIndices/RegionIndices_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,3 +1,3 @@ -using Sbplib.RegionIndices +using Diffinitive.RegionIndices using Test
--- a/test/SbpOperators/boundary_conditions/boundary_condition_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/boundary_conditions/boundary_condition_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,8 +1,8 @@ using Test -using Sbplib.Grids -using Sbplib.RegionIndices -using Sbplib.SbpOperators +using Diffinitive.Grids +using Diffinitive.RegionIndices +using Diffinitive.SbpOperators @testset "BoundaryCondition" begin grid_1d = equidistant_grid(0.0, 1.0, 11)
--- a/test/SbpOperators/boundary_conditions/sat_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/boundary_conditions/sat_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,8 +1,8 @@ using Test -using Sbplib.Grids -using Sbplib.LazyTensors -using Sbplib.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors +using Diffinitive.SbpOperators stencil_set = read_stencil_set(sbp_operators_path()*"standard_diagonal.toml"; order = 4)
--- a/test/SbpOperators/boundaryops/boundary_operator_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/boundaryops/boundary_operator_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,11 +1,11 @@ using Test -using Sbplib.LazyTensors -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.RegionIndices -import Sbplib.SbpOperators.Stencil -import Sbplib.SbpOperators.BoundaryOperator +using Diffinitive.LazyTensors +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.RegionIndices +import Diffinitive.SbpOperators.Stencil +import Diffinitive.SbpOperators.BoundaryOperator @testset "BoundaryOperator" begin
--- a/test/SbpOperators/boundaryops/boundary_restriction_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/boundaryops/boundary_restriction_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,10 +1,10 @@ using Test -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.LazyTensors -using Sbplib.RegionIndices -using Sbplib.SbpOperators: BoundaryOperator, Stencil +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors +using Diffinitive.RegionIndices +using Diffinitive.SbpOperators: BoundaryOperator, Stencil @testset "boundary_restriction" begin stencil_set = read_stencil_set(sbp_operators_path()*"standard_diagonal.toml"; order = 4)
--- a/test/SbpOperators/boundaryops/normal_derivative_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/boundaryops/normal_derivative_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,10 +1,10 @@ using Test -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.LazyTensors -using Sbplib.RegionIndices -import Sbplib.SbpOperators.BoundaryOperator +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors +using Diffinitive.RegionIndices +import Diffinitive.SbpOperators.BoundaryOperator @testset "normal_derivative" begin g_1D = equidistant_grid(0.0, 1.0, 11)
--- a/test/SbpOperators/stencil_set_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/stencil_set_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,10 +1,10 @@ using Test using TOML -using Sbplib.SbpOperators +using Diffinitive.SbpOperators -import Sbplib.SbpOperators.Stencil -import Sbplib.SbpOperators.NestedStencil +import Diffinitive.SbpOperators.Stencil +import Diffinitive.SbpOperators.NestedStencil @testset "readoperator" begin toml_str = """
--- a/test/SbpOperators/stencil_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/stencil_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,10 +1,10 @@ using Test -using Sbplib.SbpOperators +using Diffinitive.SbpOperators using StaticArrays -import Sbplib.SbpOperators.Stencil -import Sbplib.SbpOperators.NestedStencil -import Sbplib.SbpOperators.scale -import Sbplib.SbpOperators: apply_stencil, apply_stencil_backwards +import Diffinitive.SbpOperators.Stencil +import Diffinitive.SbpOperators.NestedStencil +import Diffinitive.SbpOperators.scale +import Diffinitive.SbpOperators: apply_stencil, apply_stencil_backwards @testset "Stencil" begin s = Stencil(-2:2, (1.,2.,2.,3.,4.))
--- a/test/SbpOperators/volumeops/constant_interior_scaling_operator_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/volumeops/constant_interior_scaling_operator_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,9 +1,9 @@ using Test -using Sbplib.LazyTensors -using Sbplib.SbpOperators -import Sbplib.SbpOperators: ConstantInteriorScalingOperator -using Sbplib.Grids +using Diffinitive.LazyTensors +using Diffinitive.SbpOperators +import Diffinitive.SbpOperators: ConstantInteriorScalingOperator +using Diffinitive.Grids @testset "ConstantInteriorScalingOperator" begin @test ConstantInteriorScalingOperator(1, (2,3), 10) isa ConstantInteriorScalingOperator{Int,2}
--- a/test/SbpOperators/volumeops/derivatives/dissipation_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/volumeops/derivatives/dissipation_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,17 +1,17 @@ using Test -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.LazyTensors +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors -using Sbplib.SbpOperators: Stencil +using Diffinitive.SbpOperators: Stencil -using Sbplib.SbpOperators: dissipation_interior_weights -using Sbplib.SbpOperators: dissipation_interior_stencil, dissipation_transpose_interior_stencil -using Sbplib.SbpOperators: midpoint, midpoint_transpose -using Sbplib.SbpOperators: dissipation_lower_closure_size, dissipation_upper_closure_size -using Sbplib.SbpOperators: dissipation_lower_closure_stencils,dissipation_upper_closure_stencils -using Sbplib.SbpOperators: dissipation_transpose_lower_closure_stencils, dissipation_transpose_upper_closure_stencils +using Diffinitive.SbpOperators: dissipation_interior_weights +using Diffinitive.SbpOperators: dissipation_interior_stencil, dissipation_transpose_interior_stencil +using Diffinitive.SbpOperators: midpoint, midpoint_transpose +using Diffinitive.SbpOperators: dissipation_lower_closure_size, dissipation_upper_closure_size +using Diffinitive.SbpOperators: dissipation_lower_closure_stencils,dissipation_upper_closure_stencils +using Diffinitive.SbpOperators: dissipation_transpose_lower_closure_stencils, dissipation_transpose_upper_closure_stencils @testset "undivided_skewed04" begin
--- a/test/SbpOperators/volumeops/derivatives/first_derivative_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/volumeops/derivatives/first_derivative_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,11 +1,11 @@ using Test -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.LazyTensors +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors -using Sbplib.SbpOperators: closure_size, Stencil, VolumeOperator +using Diffinitive.SbpOperators: closure_size, Stencil, VolumeOperator @testset "first_derivative" begin @testset "Constructors" begin
--- a/test/SbpOperators/volumeops/derivatives/second_derivative_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/volumeops/derivatives/second_derivative_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,10 +1,10 @@ using Test -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.LazyTensors +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors -import Sbplib.SbpOperators.VolumeOperator +import Diffinitive.SbpOperators.VolumeOperator # TODO: Refactor these test to look more like the tests in first_derivative_test.jl.
--- a/test/SbpOperators/volumeops/derivatives/second_derivative_variable_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/volumeops/derivatives/second_derivative_variable_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,10 +1,10 @@ using Test -using Sbplib.Grids -using Sbplib.LazyTensors -using Sbplib.SbpOperators -using Sbplib.RegionIndices -using Sbplib.SbpOperators: NestedStencil, CenteredNestedStencil, SecondDerivativeVariable +using Diffinitive.Grids +using Diffinitive.LazyTensors +using Diffinitive.SbpOperators +using Diffinitive.RegionIndices +using Diffinitive.SbpOperators: NestedStencil, CenteredNestedStencil, SecondDerivativeVariable using LinearAlgebra
--- a/test/SbpOperators/volumeops/inner_products/inner_product_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/volumeops/inner_products/inner_product_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,10 +1,10 @@ using Test -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.LazyTensors +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors -import Sbplib.SbpOperators.ConstantInteriorScalingOperator +import Diffinitive.SbpOperators.ConstantInteriorScalingOperator @testset "Diagonal-stencil inner_product" begin Lx = π/2.
--- a/test/SbpOperators/volumeops/inner_products/inverse_inner_product_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/volumeops/inner_products/inverse_inner_product_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,10 +1,10 @@ using Test -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.LazyTensors +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors -import Sbplib.SbpOperators.ConstantInteriorScalingOperator +import Diffinitive.SbpOperators.ConstantInteriorScalingOperator @testset "Diagonal-stencil inverse_inner_product" begin Lx = π/2.
--- a/test/SbpOperators/volumeops/laplace/laplace_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/volumeops/laplace/laplace_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,8 +1,8 @@ using Test -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.LazyTensors +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors @testset "Laplace" begin # Default stencils (4th order)
--- a/test/SbpOperators/volumeops/stencil_operator_distinct_closures_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/volumeops/stencil_operator_distinct_closures_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,11 +1,11 @@ using Test -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.LazyTensors +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.LazyTensors -import Sbplib.SbpOperators.Stencil -import Sbplib.SbpOperators.StencilOperatorDistinctClosures +import Diffinitive.SbpOperators.Stencil +import Diffinitive.SbpOperators.StencilOperatorDistinctClosures @testset "StencilOperatorDistinctClosures" begin g = equidistant_grid(0., 1., 11)
--- a/test/SbpOperators/volumeops/volume_operator_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/SbpOperators/volumeops/volume_operator_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,14 +1,14 @@ using Test -using Sbplib.SbpOperators -using Sbplib.Grids -using Sbplib.RegionIndices -using Sbplib.LazyTensors +using Diffinitive.SbpOperators +using Diffinitive.Grids +using Diffinitive.RegionIndices +using Diffinitive.LazyTensors -import Sbplib.SbpOperators.Stencil -import Sbplib.SbpOperators.VolumeOperator -import Sbplib.SbpOperators.odd -import Sbplib.SbpOperators.even +import Diffinitive.SbpOperators.Stencil +import Diffinitive.SbpOperators.VolumeOperator +import Diffinitive.SbpOperators.odd +import Diffinitive.SbpOperators.even @testset "VolumeOperator" begin
--- a/test/StaticDicts/StaticDicts_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/StaticDicts/StaticDicts_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,5 +1,5 @@ using Test -using Sbplib.StaticDicts +using Diffinitive.StaticDicts @testset "StaticDicts" begin
--- a/test/ext/sparse_array_kit_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/ext/sparse_array_kit_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,8 +1,8 @@ using Test -using Sbplib -using Sbplib.Grids -using Sbplib.SbpOperators +using Diffinitive +using Diffinitive.Grids +using Diffinitive.SbpOperators using SparseArrayKit using Tokens
--- a/test/ext/sparse_arrays_test.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/ext/sparse_arrays_test.jl Sun Sep 08 17:11:56 2024 -0700 @@ -1,8 +1,8 @@ using Test -using Sbplib -using Sbplib.Grids -using Sbplib.SbpOperators +using Diffinitive +using Diffinitive.Grids +using Diffinitive.SbpOperators using SparseArrays using Tokens
--- a/test/runtests.jl Thu Sep 05 23:16:39 2024 +0200 +++ b/test/runtests.jl Sun Sep 08 17:11:56 2024 -0700 @@ -45,7 +45,7 @@ end end -testsetname = isempty(ARGS) ? "Sbplib.jl" : "["*join(ARGS, ", ")*"]" +testsetname = isempty(ARGS) ? "Diffinitive.jl" : "["*join(ARGS, ", ")*"]" @testset "$testsetname" begin run_testfiles(ARGS)