Skip to content

Commit 92dc593

Browse files
committed
fix export of global grid
1 parent 7e3b7b6 commit 92dc593

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/grid/grid_utils.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ function convert_geometry(grids, couplings; include_current_collectors = true)
164164
end
165165
end
166166

167-
ugrids["Global"] = UnstructuredMesh(grids["Global"])
167+
if haskey(grids, "Global")
168+
ugrids["Global"] = UnstructuredMesh(grids["Global"])
169+
end
168170

169171
return ugrids, ucouplings
170172

0 commit comments

Comments
 (0)