Skip to content

Commit

Permalink
fixing to accommodate threaded tests using only 2 threads
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Jan 12, 2022
1 parent d1a2ec2 commit 77d7055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solvers/dgmulti/sbp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ function calc_volume_integral!(du, u, mesh::DGMultiMesh,
volume_integral::VolumeIntegralFluxDifferencing,
dg::DGMultiFluxDiffPeriodicFDSBP, cache)

# We expect speedup over the serial version only when using more than two threads
# We expect speedup over the serial version only when using two or more threads
# since the threaded version below does not exploit the symmetry properties,
# resulting in a performance penalty of 1/2
if Threads.nthreads() > 2
if Threads.nthreads() > 1
@unpack inv_wq, Qrst_skew = cache
@unpack volume_flux = volume_integral

Expand Down

0 comments on commit 77d7055

Please sign in to comment.