From 6d679e20cef9950d17796cd87a56bfb98840e72a Mon Sep 17 00:00:00 2001 From: Pascal Aellig Date: Fri, 18 Oct 2024 16:20:49 +0200 Subject: [PATCH] address suggestions pt 2 --- src/Permeability/Permeability.jl | 4 ++-- test/test_Permeability.jl | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Permeability/Permeability.jl b/src/Permeability/Permeability.jl index ef746746..53c45db2 100644 --- a/src/Permeability/Permeability.jl +++ b/src/Permeability/Permeability.jl @@ -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 @@ -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...) diff --git a/test/test_Permeability.jl b/test/test_Permeability.jl index ca27c20a..068eb75a 100644 --- a/test/test_Permeability.jl +++ b/test/test_Permeability.jl @@ -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)