Skip to content

Commit

Permalink
Update FiniteElement.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
OsKnoth committed Oct 26, 2023
1 parent 089b692 commit 2ec24c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DyCore/FiniteElement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ function CGStruct{FT}(backend,OrdPoly,OrdPolyZ,Grid) where FT<:AbstractFloat
end
end

(DW,DS)=DerivativeMatrixSingle(OrdPoly)
(DWCPU,DSCPU)=DerivativeMatrixSingle(OrdPoly)
DS = KernelAbstractions.zeros(backend,FT,size(DS))
copyto!(DS,DS)
copyto!(DS,DSCPU)
DW = KernelAbstractions.zeros(backend,FT,size(DW))
copyto!(DW,DW)
copyto!(DW,DWCPU)
DST=DS'
DWT=DW'

Q = diagm(w) * DS
Q = diagm(w) * DSCPU
S = Q - Q'
(DWZ,DSZ)=DerivativeMatrixSingle(OrdPolyZ)
(GlobCPU,NumG,NumI,StencilCPU,MasterSlaveCPU) =
Expand Down

0 comments on commit 2ec24c7

Please sign in to comment.