Skip to content

Commit

Permalink
Use ClimaComms 0.6, Bump to 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Apr 30, 2024
1 parent 6b4862e commit 468fff6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ClimaDiagnostics"
uuid = "1ecacbb8-0713-4841-9a07-eb5aa8a2d53f"
authors = ["Gabriele Bozzola <[email protected]>"]
version = "0.1.1"
version = "0.1.3"

[deps]
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Expand All @@ -15,8 +15,8 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
Accessors = "0.1"
Aqua = "0.8"
BenchmarkTools = "1"
ClimaComms = "0.5"
ClimaCore = "0.13"
ClimaComms = "0.5, 0.6"
ClimaCore = "0.13, 0.14"
ClimaTimeSteppers = "0.7"
Dates = "1"
Documenter = "1"
Expand Down
5 changes: 4 additions & 1 deletion src/netcdf_writer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ function write_field!(writer::NetCDFWriter, field, diagnostic, u, p, t)
ClimaComms.iamroot(ClimaComms.context(field)) || return nothing

var = diagnostic.variable
interpolated_field = writer.preallocated_output_arrays[var.short_name]
maybe_move_to_cpu =
ClimaComms.device(field) isa ClimaComms.CUDADevice ? Array : identity
interpolated_field =
maybe_move_to_cpu(writer.preallocated_output_arrays[var.short_name])
space = axes(field)
FT = Spaces.undertype(space)

Expand Down
3 changes: 3 additions & 0 deletions test/TestTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import SciMLBase

import ClimaCore
import ClimaComms
@static if pkgversion(ClimaComms) >= v"0.6"
ClimaComms.@import_required_backends
end
import ClimaTimeSteppers

function ColumnCenterFiniteDifferenceSpace(
Expand Down

0 comments on commit 468fff6

Please sign in to comment.