diff --git a/Project.toml b/Project.toml index f6cbd871d..df2de2798 100644 --- a/Project.toml +++ b/Project.toml @@ -7,7 +7,6 @@ version = "1.25.1" BandedMatrices = "aae01518-5342-5314-be14-df237901396f" Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" CommonSolve = "38540f10-b2f7-11e9-35d8-d573e4eb0ff2" -Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" DiffResults = "163ba53b-c6d8-5494-b064-1a9d43ac40c5" DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" ExtendableGrids = "cfc395e8-590f-11e8-1f13-43a2532b2fa8" @@ -33,7 +32,6 @@ Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" BandedMatrices = "0.17,1" Colors = "0.12" CommonSolve = "0.2" -Compat = "4.10" DiffResults = "1" DocStringExtensions = "0.8,0.9" ExtendableGrids = "1.9.2" diff --git a/src/VoronoiFVM.jl b/src/VoronoiFVM.jl index 083a3875c..7a761b4f7 100644 --- a/src/VoronoiFVM.jl +++ b/src/VoronoiFVM.jl @@ -54,8 +54,6 @@ using SparseDiffTools: SparseDiffTools, forwarddiff_color_jacobian!, using StaticArrays: StaticArrays, @MVector, @SArray, @SMatrix using Statistics: Statistics, mean using Symbolics: Symbolics -using Compat: @compat - """ @@ -66,11 +64,17 @@ Abstract type for geometry items (node,bnode,edge, bedge) abstract type AbstractGeometryItem{Tc <: Number, Tp <: Number, Ti <: Integer} end export AbstractGeometryItem +""" + $(TYPEDEF) + +Abstract type for stationary solution +""" abstract type AbstractSolutionArray{T,N} <: AbstractArray{T,N} end export AbstractSolutionArray include("vfvm_physics.jl") -@compat public Physics +# see https://discourse.julialang.org/t/is-compat-jl-worth-it-for-the-public-keyword/119041/34 +VERSION >= v"1.11.0-DEV.469" && eval(Meta.parse("public Physics")) include("vfvm_functions.jl") export fbernoulli @@ -123,8 +127,7 @@ export edgelength export viewK, viewL, data export hasoutflownode, isoutflownode, outflownode - -@compat public System, AbstractSystem, SystemState +VERSION >= v"1.11.0-DEV.469" && eval(Meta.parse("public System, AbstractSystem, SystemState")) # export to be deprecated export partitioning, Equationwise