Skip to content

Commit

Permalink
address suggestions pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aelligp committed Oct 18, 2024
1 parent 43ad526 commit 6d679e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Permeability/Permeability.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using Parameters, Unitful, LaTeXStrings, MuladdMacro
using ..Units
using ..PhaseDiagrams
using GeoParams: AbstractMaterialParam, AbstractMaterialParamsStruct, @extractors, add_extractor_functions
using GeoParams: fastpow, pow_check, @pow
using GeoParams: fastpow, pow_check, @pow, @fastpow
import ..Units: isdimensional
using ..MaterialParameters: No_MaterialParam, MaterialParamsInfo
import Base.show, GeoParams.param_info
Expand Down Expand Up @@ -133,7 +133,7 @@ function (s::PowerLawPermeability{_T})(; ϕ=1e-2, kwargs...) where {_T}
@unpack_val c, k0, n = s
end

return @pow c * k0 * ϕ^n
return @fastpow c * k0 * ϕ^n
end

@inline (s::PowerLawPermeability)(args) = s(; args...)
Expand Down
5 changes: 0 additions & 5 deletions test/test_Permeability.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ using Test, GeoParams, StaticArrays, LaTeXStrings

@testset "Permeability.jl" begin

# Set alias for permeability function
if !isdefined(Main, :GeoParamsAliases)
eval(:(@use GeoParamsAliases permeability = k))
end

# Make sure that structs are isbits
x = ConstantPermeability()
@test isbits(x)
Expand Down

0 comments on commit 6d679e2

Please sign in to comment.