Skip to content

Commit

Permalink
removed printf dependency and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
tb6g16 committed May 2, 2023
1 parent 5cedf22 commit 246b818
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name = "SPOD"
uuid = "0ac2d069-28cd-4d1e-aa57-4eb7242fcd6c"
authors = ["Thomas Burton <[email protected]>"]
version = "0.2.1"
version = "0.2.2"

[deps]
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
7 changes: 3 additions & 4 deletions src/SPOD.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module SPOD

using LinearAlgebra, FFTW, Printf
using LinearAlgebra, FFTW

export spod

Expand Down Expand Up @@ -67,8 +67,7 @@ function spod(Q::M, quad_weights::AbstractVector, dt::Float64, Nf::Int, No::Int=

# loop over the frequencies of all the blocks
for fk in 1:
sleep(0.25)
verbose && @printf("Solving Eigenproblem for every frequency... fk = %i/%i\r", fk, Nω)
verbose && print("Solving Eigenproblem for every frequency... fk = ", fk, "/", Nω, "\r")
# construct fourier realisation matrices for each block
for nb in 1:Nb
Qfk[:, nb] .= sqrt_κ.*@view(Q̂_blocks[nb][:, fk])
Expand All @@ -87,7 +86,7 @@ function spod(Q::M, quad_weights::AbstractVector, dt::Float64, Nf::Int, No::Int=
# convert the eivenvectors to the correct SPOD modes
spod_modes[:, :, fk] .= Qfk*eigvecs*Diagonal(@view(eigvals[:, fk]).^-0.5)
end
verbose && print("Solving Eigenproblem for every frequency... Done! ")
verbose && println("Solving Eigenproblem for every frequency... Done! ")

return eigvals, spod_modes
end
Expand Down

0 comments on commit 246b818

Please sign in to comment.