Skip to content

Commit

Permalink
deving local ClimaCore
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Jul 12, 2024
1 parent b3df3a2 commit 4683bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared_utilities/implicit_timestepping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function ImplicitEquationJacobian(Y::ClimaCore.Fields.FieldVector)
function get_j_field(
space::Union{Spaces.PointSpace, Spaces.SpectralElementSpace2D},
)
diag_type = (I,)
diag_type = MatrixFields.DiagonalMatrixRow{FT}
diag_field = ClimaCore.Fields.Field(diag_type, space)
fill!(parent(diag_field), 0)
return diag_field
Expand Down
2 changes: 1 addition & 1 deletion src/standalone/Vegetation/canopy_energy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function ClimaLand.make_update_jacobian(

# The derivative of the residual with respect to the prognostic variable
∂Tres∂T = matrix[@name(canopy.energy.T), @name(canopy.energy.T)]
@. ∂Tres∂T = dtγ * 1 - (I,)
@. ∂Tres∂T = dtγ * MatrixFields.DiagonalMatrixRow(Y.canopy.energy.T) - (I,)
end
return update_jacobian!
end

0 comments on commit 4683bc6

Please sign in to comment.