From 293240470519966916a413e77f02a0c9c0603e26 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Sat, 7 Oct 2023 11:25:05 -0400 Subject: [PATCH] revert back to Julia compat 1.7, add Requires --- Project.toml | 2 +- ext/StartUpDGSummationByPartsOperatorsExt.jl | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Project.toml b/Project.toml index 4ef4b4e7..ab5a709f 100644 --- a/Project.toml +++ b/Project.toml @@ -46,4 +46,4 @@ StaticArrays = "1" SummationByPartsOperators = "0.5" Triangulate = "2" WriteVTK = "1" -julia = "1.9" +julia = "1.7" diff --git a/ext/StartUpDGSummationByPartsOperatorsExt.jl b/ext/StartUpDGSummationByPartsOperatorsExt.jl index 919e738d..6b583463 100644 --- a/ext/StartUpDGSummationByPartsOperatorsExt.jl +++ b/ext/StartUpDGSummationByPartsOperatorsExt.jl @@ -5,11 +5,18 @@ module StartUpDGSummationByPartsOperatorsExt using StartUpDG - using SummationByPartsOperators - using SummationByPartsOperators: AbstractDerivativeOperator, - AbstractNonperiodicDerivativeOperator, DerivativeOperator, - AbstractPeriodicDerivativeOperator, - PeriodicDerivativeOperator, grid + # Required for visualization code + if isdefined(Base, :get_extension) + using SummationByPartsOperators: SummationByPartsOperators, DerivativeOperator, grid, + AbstractDerivativeOperator, AbstractNonperiodicDerivativeOperator, + PeriodicDerivativeOperator, AbstractPeriodicDerivativeOperator + else + # Until Julia v1.9 is the minimum required version for Trixi.jl, we still support Requires.jl + using ..SummationByPartsOperators + using ..SummationByPartsOperators: AbstractDerivativeOperator, AbstractPeriodicDerivativeOperator, + AbstractNonperiodicDerivativeOperator, DerivativeOperator, + PeriodicDerivativeOperator, grid + end