File tree Expand file tree Collapse file tree 3 files changed +39
-23
lines changed Expand file tree Collapse file tree 3 files changed +39
-23
lines changed Original file line number Diff line number Diff line change @@ -259,14 +259,15 @@ steps:
259
259
command :
260
260
- " julia --color=yes --check-bounds=yes --project=.buildkite test/Spaces/unit_spaces.jl"
261
261
- " julia --color=yes --check-bounds=yes --project=.buildkite test/Spaces/opt_spaces.jl"
262
+ - " julia --color=yes --check-bounds=yes --project=.buildkite test/Spaces/unit_high_resolution_space.jl"
262
263
263
264
- label : " Unit: cuda spaces"
264
265
key : " gpu_cuda_spaces"
265
266
command :
266
267
- " julia --project=.buildkite -e 'using CUDA; CUDA.versioninfo()'"
267
268
- " srun julia --color=yes --check-bounds=yes --project=.buildkite test/Spaces/unit_spaces.jl"
268
269
- " srun julia --color=yes --check-bounds=yes --project=.buildkite test/Spaces/opt_spaces.jl"
269
- - " julia --color=yes --check-bounds=yes --project=.buildkite test/Spaces/high_resolution_space .jl"
270
+ - " julia --color=yes --check-bounds=yes --project=.buildkite test/Spaces/unit_high_resolution_space .jl"
270
271
env :
271
272
CLIMACOMMS_DEVICE : " CUDA"
272
273
agents :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #=
2
+ julia --project=.buildkite
3
+ using Revise; include("test/Spaces/unit_high_resolution_space.jl")
4
+ =#
5
+ using Test
6
+ import ClimaComms
7
+ ClimaComms. @import_required_backends
8
+ using ClimaCore. CommonSpaces
9
+ using ClimaCore: Spaces
10
+
11
+ # TODO : we should probably move these to datalayouts and just test high resolution kernels.
12
+ @testset " Construct high resolution space" begin
13
+ space = ExtrudedCubedSphereSpace (
14
+ Float32;
15
+ radius = 1.0 ,
16
+ h_elem = 105 ,
17
+ z_elem = 10 ,
18
+ z_min = 1.0 ,
19
+ z_max = 2.0 ,
20
+ n_quad_points = 4 ,
21
+ staggering = CellCenter (),
22
+ )
23
+ @test space isa Spaces. CenterExtrudedFiniteDifferenceSpace
24
+
25
+ space =
26
+ CubedSphereSpace (Float32; radius = 1.0 , n_quad_points = 4 , h_elem = 105 )
27
+ @test space isa Spaces. SpectralElementSpace2D
28
+
29
+ space = ColumnSpace (
30
+ Float32;
31
+ z_elem = 500 ,
32
+ z_min = 0 ,
33
+ z_max = 10 ,
34
+ staggering = CellCenter (),
35
+ )
36
+ @test space isa Spaces. FiniteDifferenceSpace
37
+ end
You can’t perform that action at this time.
0 commit comments