Skip to content

Commit fc08cac

Browse files
Do not reconstruct FD grid
1 parent ca17dd2 commit fc08cac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/netcdf_writer_coordinates.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ function add_space_coordinates_maybe!(
502502
hdims_names =
503503
add_space_coordinates_maybe!(nc, horizontal_space, num_points_horiz)
504504

505-
vertical_space = Spaces.FiniteDifferenceSpace(
506-
Spaces.vertical_topology(space),
505+
vertical_space = FiniteDifferenceSpace(
506+
Spaces.grid(space).vertical_grid,
507507
Spaces.staggering(space),
508508
)
509509

@@ -610,8 +610,8 @@ function target_coordinates(
610610
hcoords =
611611
target_coordinates(Spaces.horizontal_space(space), num_points_horiz)
612612

613-
vertical_space = Spaces.FiniteDifferenceSpace(
614-
Spaces.vertical_topology(space),
613+
vertical_space = FiniteDifferenceSpace(
614+
Spaces.grid(space).vertical_grid,
615615
Spaces.staggering(space),
616616
)
617617
vcoords =
@@ -687,8 +687,8 @@ function default_num_points(
687687
horizontal_space = ClimaCore.Spaces.horizontal_space(space)
688688
num_horz = default_num_points(horizontal_space)
689689

690-
vertical_space = ClimaCore.Spaces.FiniteDifferenceSpace(
691-
Spaces.vertical_topology(space),
690+
vertical_space = FiniteDifferenceSpace(
691+
Spaces.grid(space).vertical_grid,
692692
Spaces.staggering(space),
693693
)
694694
num_vert = default_num_points(vertical_space)

0 commit comments

Comments
 (0)