Skip to content

Commit cc53c4c

Browse files
committed
remove min jobs per thread
1 parent c1bf895 commit cc53c4c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/VortexLattice.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ using JLD2
1111

1212
# value for dimensionalizing, included just for clarity in the algorithms
1313
const RHO = 1.0
14-
const MIN_PER_THREAD = 100
1514

1615
include("nonlinear.jl")
1716
export SectionProperties, grid_to_sections, nonlinear_analysis!

src/induced.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ function influence_coefficients_multithreaded!(AIC, receiving, sending;
641641
# determine control flow parameters based on inputs
642642
reuse_edges = !finite_core
643643

644-
n_threads = min(Threads.nthreads(), div(n_list, MIN_PER_THREAD))
645644
n_points = length(receiving)
645+
n_threads = Threads.nthreads()
646646
n_per_thread, rem = divrem(n_points,n_threads)
647647
n = n_per_thread + (rem > 0)
648648
assignments = 1:n:n_points

src/nearfield.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function near_field_forces_multithreaded!(props, surfaces, wakes, ref, fs, Γ;
237237
panel_offsets[isurf] = panel_offsets[isurf-1] + length(surfaces[isurf-1])
238238
end
239239

240-
n_threads = min(Threads.nthreads(), div(n_list, MIN_PER_THREAD))
240+
n_threads = Threads.nthreads()
241241

242242
# loop through receiving surfaces
243243
for isurf = 1:nsurf
@@ -792,7 +792,7 @@ function near_field_forces_derivatives_multithreaded!(props, dprops, surfaces, w
792792
panel_offsets[isurf] = panel_offsets[isurf-1] + length(surfaces[isurf-1])
793793
end
794794

795-
n_threads = min(Threads.nthreads(), div(n_list, MIN_PER_THREAD))
795+
n_threads = Threads.nthreads()
796796

797797
# loop through receiving surfaces
798798
for isurf = 1:nsurf

0 commit comments

Comments
 (0)