Skip to content

Commit

Permalink
Add AbstractRectiGrid as inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Aug 17, 2024
1 parent ddb7b5b commit 1ec556a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/domain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function pixelsizes(keys::AbstractRectiGrid)
return (X=step(x), Y=step(y))
end


EnzymeRules.inactive_type(::Type{<:RectiGrid}) = true

struct RectiGrid{D, E, Hd<:AbstractHeader} <: AbstractRectiGrid{D, E}
dims::D
Expand Down Expand Up @@ -360,6 +360,9 @@ struct UnstructuredDomain{D,E, H<:AbstractHeader} <: AbstractSingleDomain{D,E}
header::H
end

EnzymeRules.inactive_type(::Type{<:UnstructuredDomain}) = true


"""
UnstructuredDomain(dims::NamedTuple; executor=Serial(), header=ComradeBase.NoHeader)
Expand Down

0 comments on commit 1ec556a

Please sign in to comment.