Skip to content

Commit 47c4007

Browse files
committed
Remove @muladd and dependency
1 parent bcbf8c9 commit 47c4007

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TrixiParticles"
22
uuid = "66699cd8-9c01-4e9d-a059-b96c86d16b3a"
3-
authors = ["erik.faulhaber <44124897+efaulhaber@users.noreply.github.com>"]
43
version = "0.4.5-dev"
4+
authors = ["erik.faulhaber <44124897+efaulhaber@users.noreply.github.com>"]
55

66
[deps]
77
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
@@ -18,7 +18,6 @@ GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
1818
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
1919
KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
2020
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
21-
MuladdMacro = "46d2c3a1-f734-5fdb-9937-b9b9aeba4221"
2221
PointNeighbors = "1c4d5385-0a27-49de-8e2c-43b175c8985c"
2322
Polyester = "f517fe37-dbe3-4b94-8317-1923a5111588"
2423
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
@@ -54,7 +53,6 @@ ForwardDiff = "1"
5453
GPUArraysCore = "0.2"
5554
JSON = "1"
5655
KernelAbstractions = "0.9"
57-
MuladdMacro = "0.2"
5856
OrdinaryDiffEq = "6.91"
5957
OrdinaryDiffEqCore = "2, 3"
6058
PointNeighbors = "0.6.5"

src/TrixiParticles.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ using GPUArraysCore: AbstractGPUArray
1717
using JSON: JSON
1818
using KernelAbstractions: KernelAbstractions, @kernel, @index
1919
using LinearAlgebra: norm, normalize, cross, dot, I, tr, inv, pinv, det
20-
using MuladdMacro: @muladd
2120
using Polyester: Polyester, @batch
2221
using Printf: @printf, @sprintf
2322
using ReadVTK: ReadVTK

src/general/smoothing_kernels.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ struct SchoenbergCubicSplineKernel{NDIMS} <: AbstractSmoothingKernel{NDIMS} end
194194
h_inv = 1 / h
195195
q = r * h_inv
196196

197-
# We do not use `+=` or `-=` since these are not recognized by MuladdMacro.jl.
198-
result = 1 * (2 - q)^3 / 4
199-
@muladd result = result - (q < 1) * (1 - q)^3
197+
result = 1 * (2 - q)^3 / 4 - (q < 1) * (1 - q)^3
200198

201199
return normalization_factor(kernel, h_inv) * result
202200
end

0 commit comments

Comments
 (0)