Skip to content

Commit

Permalink
Merge pull request #620 from CliMA/gb/fix_static
Browse files Browse the repository at this point in the history
Add missing @static
  • Loading branch information
juliasloan25 authored May 22, 2024
2 parents ab024d7 + 2e5c7d6 commit c542610
Show file tree
Hide file tree
Showing 36 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion experiments/integrated/fluxnet/run_fluxnet.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SciMLBase
import ClimaTimeSteppers as CTS
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore
import ClimaParams as CP
using Plots
Expand Down
2 changes: 1 addition & 1 deletion experiments/standalone/Biogeochemistry/experiment.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SciMLBase
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
import ClimaTimeSteppers as CTS
using ClimaCore
using ClimaLand
Expand Down
2 changes: 1 addition & 1 deletion experiments/standalone/Bucket/global_bucket_function.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import SciMLBase
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using CairoMakie
using Dates
using DelimitedFiles
Expand Down
2 changes: 1 addition & 1 deletion experiments/standalone/Bucket/global_bucket_staticmap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import SciMLBase
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using CairoMakie
using Dates
using DelimitedFiles
Expand Down
2 changes: 1 addition & 1 deletion experiments/standalone/Bucket/global_bucket_temporalmap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import SciMLBase
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using CairoMakie
using Dates
using DelimitedFiles
Expand Down
2 changes: 1 addition & 1 deletion experiments/standalone/Soil/evaporation.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Plots
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
import SciMLBase
import ClimaTimeSteppers as CTS
using Thermodynamics
Expand Down
2 changes: 1 addition & 1 deletion experiments/standalone/Soil/richards_comparison.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using Plots
using DelimitedFiles
using Statistics
Expand Down
2 changes: 1 addition & 1 deletion experiments/standalone/Soil/richards_runoff.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using CairoMakie
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using Statistics
using ArtifactWrappers
using Dates
Expand Down
2 changes: 1 addition & 1 deletion experiments/standalone/Soil/water_conservation.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ClimaCore
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
import SciMLBase
import ClimaTimeSteppers as CTS
using Plots
Expand Down
2 changes: 1 addition & 1 deletion test/integrated/lsms.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
import ClimaLand:
name,
prognostic_types,
Expand Down
2 changes: 1 addition & 1 deletion test/integrated/pond_soil_lsm.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore
using ClimaLand
using ClimaLand.Domains: HybridBox, Column, obtain_surface_domain
Expand Down
2 changes: 1 addition & 1 deletion test/integrated/soil_canopy_lsm.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore
using ClimaLand
using ClimaLand.Soil
Expand Down
2 changes: 1 addition & 1 deletion test/integrated/soil_energy_hydrology_biogeochemistry.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore
import ClimaParams
using ClimaLand
Expand Down
2 changes: 1 addition & 1 deletion test/shared_utilities/domains.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore
using Test
using ClimaLand
Expand Down
2 changes: 1 addition & 1 deletion test/shared_utilities/drivers.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore
using Test
using StaticArrays
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using LinearAlgebra
using ClimaCore
import ClimaParams as CP
Expand Down
2 changes: 1 addition & 1 deletion test/shared_utilities/utilities.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore: Spaces, Geometry, Fields
import ClimaComms
using ClimaLand
Expand Down
2 changes: 1 addition & 1 deletion test/shared_utilities/variable_types.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore
using Test
using StaticArrays
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Bucket/albedo_types.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends

using ClimaUtilities.TimeManager
using ClimaUtilities.DataHandling
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Bucket/snow_bucket_tests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends

using Statistics

Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Bucket/soil_bucket_tests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends

using Dates
using Statistics
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Snow/snow.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
import ClimaParams as CP
import ClimaUtilities.TimeVaryingInputs: TimeVaryingInput
using Thermodynamics
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using Dates
import ClimaParams as CP
using ClimaCore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
import ClimaParams as CP
using ClimaLand.Soil.Biogeochemistry

Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Soil/climate_drivers.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore
import ClimaParams as CP
using Thermodynamics
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Soil/runoff.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
import ClimaUtilities
import ClimaUtilities.TimeVaryingInputs: TimeVaryingInput
using ClimaLand
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Soil/soil_bc.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using Statistics
using ClimaCore
import ClimaParams
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Soil/soil_parameterizations.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
import ClimaParams as CP
using ClimaLand.Soil
import ClimaLand
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Soil/soil_test_3d.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using Statistics
using ClimaCore
import ClimaParams as CP
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Soil/soiltest.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using Statistics
using ClimaCore
import ClimaParams as CP
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/SurfaceWater/pond_test.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore

using ClimaLand
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Vegetation/canopy_model.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Test
import ClimaParams
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaCore
using Thermodynamics
using Dates
Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Vegetation/plant_hydraulics_test.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using Statistics
using NLsolve
using ClimaCore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
import ClimaParams as CP
using ClimaLand.Canopy

Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Vegetation/test_pfts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on percentage PFT cover works as expected.

using Test
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
import ClimaLand
using ClimaLand.Canopy

Expand Down
2 changes: 1 addition & 1 deletion test/standalone/Vegetation/test_two_stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Test
using ClimaLand
import ClimaComms
pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends
using ClimaLand.Canopy
using DelimitedFiles
using ArtifactWrappers
Expand Down

0 comments on commit c542610

Please sign in to comment.