Skip to content

Commit 982d61f

Browse files
Merge #1260
1260: Fix names and method call in TestUtilities r=charleskawczynski a=charleskawczynski This PR fixes some method calls, which are currently commented out, however, we plan to uncomment them in #1251. Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
2 parents 0aa5444 + 6e3fc26 commit 982d61f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClimaCore"
22
uuid = "d414da3d-4745-48bb-8d80-42e94e092884"
33
authors = ["CliMA Contributors <clima-software@caltech.edu>"]
4-
version = "0.10.34"
4+
version = "0.10.35"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

test/Spaces/extruded_cuda.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ end
3535
FT = Float64
3636
CUDA.allowscalar(true)
3737
# TODO: add support and test for all spaces
38-
cpuspace = TU.ExtrudedCenterFiniteDifferenceSpace(FT; context = cpu_context)
39-
gpuspace = TU.ExtrudedCenterFiniteDifferenceSpace(FT; context = gpu_context)
38+
cpuspace = TU.CenterExtrudedFiniteDifferenceSpace(FT; context = cpu_context)
39+
gpuspace = TU.CenterExtrudedFiniteDifferenceSpace(FT; context = gpu_context)
4040

4141
# Test that all geometries match with CPU version:
4242
@test compare(cpuspace, gpuspace, :center_local_geometry)

test/TestUtilities/TestUtilities.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function SphereSpectralElementSpace(
102102
return Spaces.SpectralElementSpace2D(topology, quad)
103103
end
104104

105-
function ExtrudedCenterFiniteDifferenceSpace(
105+
function CenterExtrudedFiniteDifferenceSpace(
106106
::Type{FT};
107107
zelem = 10,
108108
context = ClimaComms.SingletonCommsContext(),
@@ -128,13 +128,13 @@ function ExtrudedCenterFiniteDifferenceSpace(
128128
return Spaces.ExtrudedFiniteDifferenceSpace(hspace, vspace)
129129
end
130130

131-
function ExtrudedFaceFiniteDifferenceSpace(
131+
function FaceExtrudedFiniteDifferenceSpace(
132132
::Type{FT};
133133
zelem = 10,
134134
context = ClimaComms.SingletonCommsContext(),
135135
) where {FT}
136-
cspace = ExtrudedCenterFiniteDifferenceSpace(FT; zelem, context)
137-
return Spaces.ExtrudedFaceFiniteDifferenceSpace(cspace)
136+
cspace = CenterExtrudedFiniteDifferenceSpace(FT; zelem, context)
137+
return Spaces.ExtrudedFiniteDifferenceSpace{Spaces.CellFace}(cspace)
138138
end
139139

140140
function all_spaces(
@@ -152,8 +152,8 @@ function all_spaces(
152152
ColumnCenterFiniteDifferenceSpace(FT; zelem, context),
153153
ColumnFaceFiniteDifferenceSpace(FT; zelem, context),
154154
SphereSpectralElementSpace(FT; context),
155-
ExtrudedCenterFiniteDifferenceSpace(FT; zelem, context),
156-
# ExtrudedFaceFiniteDifferenceSpace(FT; zelem, context), # errors on sum
155+
CenterExtrudedFiniteDifferenceSpace(FT; zelem, context),
156+
# FaceExtrudedFiniteDifferenceSpace(FT; zelem, context), # errors on sum
157157
# TODO: incorporate this list of spaces somehow:
158158
# space_vf = Spaces.CenterFiniteDifferenceSpace(topology_z)
159159
# space_ifh = Spaces.SpectralElementSpace1D(topology_x, quad)

0 commit comments

Comments
 (0)