Skip to content

Commit

Permalink
increase codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelforget committed Sep 22, 2024
1 parent 07daf88 commit ff46cd9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ end

@testset "Regional Integration:" begin
G,M,files=Integration.example()
@suppress show(M)

allones=1.0 .+0*G.hFacC
vol0=sum(G.RAC*G.DRF*G.hFacC)
Expand Down Expand Up @@ -82,6 +83,7 @@ end
@testset "Transport computations:" begin
#Load grid and transport / vector field
γ=GridSpec(ID=:LLC90)
@suppress show(γ)
Γ=GridLoad(ID=:LLC90,option=:full)
@suppress show.XC)

Expand All @@ -104,7 +106,7 @@ end
U=0*hFacW; V=0*hFacS;
UVtoTransport(U,V,Γ)
UVtoUEVN(U[:,1],V[:,1],Γ)
curl(U[:,1],V[:,1], merge(Γ,(hFacW=hFacW,hFacS=hFacS,RAZ=RAZ,)) )
curl(U[:,1],V[:,1], merge(Γ,(hFacW=hFacW,hFacS=hFacS,RAZ=RAZ)) )
dD=zeros(γ)
MeshArrays.UVtoSpeed!(U[:,1],V[:,1],Γ,dD)

Expand Down Expand Up @@ -239,6 +241,9 @@ end
γ=GridSpec(ID=:LLC90)
Γ=GridLoad(γ;option="light")
D=Γ.Depth
λ=interpolation_setup=Γ,
lon=[i for i=-170.:20.0:170., j=-80.:20.0:80.],
lat=[j for i=-170.:20.0:170., j=-80.:20.0:80.])
λ=interpolation_setup()

basins=demo.ocean_basins()
Expand Down Expand Up @@ -267,6 +272,8 @@ end
lon0=-160
proj=Proj.Transformation(MA_preset=2,lon0=lon0)
Dint=reshape(Interpolate(D,λ.f,λ.i,λ.j,λ.w),size.lon))
Dint=reshape(Interpolate(D,λ),size.lon))
InterpolationFactors(Γ,30.0,30.0)

###

Expand Down

0 comments on commit ff46cd9

Please sign in to comment.