From f553260fcc9419e9cc2387d30a265eaa3150fc60 Mon Sep 17 00:00:00 2001
From: Brian Groenke <brian.groenke@awi.de>
Date: Sun, 23 Jan 2022 16:49:36 +0100
Subject: [PATCH] Do not export boundary style types to avoid namespace
 conflicts

---
 src/CryoGrid.jl                                      | 2 --
 test/Physics/HeatConduction/heat_conduction_tests.jl | 6 +++---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/CryoGrid.jl b/src/CryoGrid.jl
index 62a31e60..09ec21ed 100755
--- a/src/CryoGrid.jl
+++ b/src/CryoGrid.jl
@@ -12,8 +12,6 @@ using Reexport
 # Common types and methods
 export Layer, SubSurface, Top, Bottom
 export Process, SubSurfaceProcess, BoundaryProcess, CoupledProcesses, Coupled
-export BoundaryStyle, Dirichlet, Neumann
-export Callback, CallbackStyle
 include("types.jl")
 export variables, initialcondition!, diagnosticstep!, prognosticstep!, interact!
 export boundaryflux, boundaryvalue, criterion, affect!, observe
diff --git a/test/Physics/HeatConduction/heat_conduction_tests.jl b/test/Physics/HeatConduction/heat_conduction_tests.jl
index 0f43bc3a..f697daa9 100644
--- a/test/Physics/HeatConduction/heat_conduction_tests.jl
+++ b/test/Physics/HeatConduction/heat_conduction_tests.jl
@@ -32,7 +32,7 @@ include("../../types.jl")
 		Δk = Δ(x)
 		sub = TestGroundLayer()
 		heat = Heat()
-		bc = ConstantBC(Dirichlet, 0.0u"°C")
+		bc = ConstantBC(CryoGrid.Dirichlet, 0.0u"°C")
 		@testset "top: +, bot: -" begin
 			T₀ = Vector(LinRange(-23,27,length(xc)))u"°C"
 			∂H = zeros(length(T₀))u"J/s/m^3"
@@ -62,7 +62,7 @@ include("../../types.jl")
 			@test ∂H[end] < 0.0u"J/s/m^3"
 		end
 		@testset "Neumann boundary" begin
-			bc = ConstantBC(Neumann, -1.0u"J/m^3")
+			bc = ConstantBC(CryoGrid.Neumann, -1.0u"J/m^3")
 			T₀ = Vector(LinRange(-23,27,length(xc)))u"°C"
 			∂H = zeros(length(T₀))u"J/s/m^3"
 			state = (T=T₀,k=k,dH=∂H,grids=(T=xc,k=x),t=0.0)
@@ -93,7 +93,7 @@ end
 	f_analytic(x,t) = exp(-t*4Ï€^2)*sin(2.0*Ï€*x)
 	sub = TestGroundLayer()
 	heat = Heat()
-	bc = ConstantBC(Dirichlet, 0.0u"°C")
+	bc = ConstantBC(CryoGrid.Dirichlet, 0.0u"°C")
 	function dTdt(T,p,t)
 		dT = similar(T)u"J/s/m^3"
 		dT .= zero(eltype(dT))
-- 
GitLab