Skip to content

Commit

Permalink
generic tensor product map now uses generic matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanmontoya committed Sep 16, 2023
1 parent 66b8438 commit 1e33916
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 378 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StableSpectralElements"
uuid = "fb992021-99c7-4c2d-a14b-5e48ac4045b2"
authors = ["Tristan Montoya <[email protected]>"]
version = "0.2.5"
version = "0.2.6"

[deps]
Arpack = "7d9fca2a-8960-54d3-9f78-7d1dccf2cb97"
Expand Down Expand Up @@ -69,4 +69,4 @@ TetGen = "1"
TimerOutputs = "0.5"
Triangulate = "2"
WriteVTK = "1"
julia = "1.8"
julia = "1.8"
13 changes: 7 additions & 6 deletions src/MatrixFreeOperators/MatrixFreeOperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ module MatrixFreeOperators
struct GenericMatrixAlgorithm <: AbstractOperatorAlgorithm end
struct GenericTensorProductAlgorithm <: AbstractOperatorAlgorithm end

export TensorProductMap2D, TensorProductMap3D
include("tensor_product_2d.jl")
include("tensor_product_3d.jl")

export WarpedTensorProductMap2D, WarpedTensorProductMap3D
include("warped_product_2d.jl")
include("warped_product_3d.jl")
Expand Down Expand Up @@ -64,9 +60,14 @@ module MatrixFreeOperators
alg::GenericTensorProductAlgorithm) = vcat(
[make_operator(block, alg) for block in map.maps]...)
make_operator(map::LinearMaps.KroneckerMap{Float64, <:NTuple{2,LinearMap}},
::GenericTensorProductAlgorithm) = TensorProductMap2D(map.maps...)
::GenericTensorProductAlgorithm) =
make_operator(map.maps[1], GenericMatrixAlgorithm())
make_operator(map.maps[2], GenericMatrixAlgorithm())
make_operator(map::LinearMaps.KroneckerMap{Float64, <:NTuple{3,LinearMap}},
::GenericTensorProductAlgorithm) = TensorProductMap3D(map.maps...)
::GenericTensorProductAlgorithm) =
make_operator(map.maps[1], GenericMatrixAlgorithm())
make_operator(map.maps[2], GenericMatrixAlgorithm())
make_operator(map.maps[3], GenericMatrixAlgorithm())

# count adds, muls, and muladds
function count_ops(map::LinearMap)
Expand Down
132 changes: 0 additions & 132 deletions src/MatrixFreeOperators/tensor_product_2d.jl

This file was deleted.

Loading

2 comments on commit 1e33916

@tristanmontoya
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/91549

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.6 -m "<description of version>" 1e3391659ea447a15679182ec7b8d53dcf758b87
git push origin v0.2.6

Please sign in to comment.