Skip to content

Commit 6431488

Browse files
committed
Throw instead of return nothing
1 parent 3fadad2 commit 6431488

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Grids/pointcloud.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ local_geometry_type(::Type{PointCloudGrid{C, GG, LG}}) where {C, GG, LG} =
3838
ClimaComms.context(grid::PointCloudGrid) = grid.context
3939
ClimaComms.device(grid::PointCloudGrid) = ClimaComms.device(grid.context)
4040

41-
# No topology — return nothing. Callers that need a topology (e.g. DSS) should
42-
# not be called on a PointCloudGrid.
43-
topology(::PointCloudGrid) = nothing
41+
topology(::PointCloudGrid) = error(
42+
"PointCloudGrid has no topology",
43+
)
4444

4545
local_geometry_data(grid::PointCloudGrid, ::Nothing) = grid.local_geometry
4646

0 commit comments

Comments
 (0)