Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set the default number of threads to one for multi-threading #1745

Merged
merged 4 commits into from
Sep 9, 2021

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Aug 28, 2021

Following the suggestion from @stevengj in #1628 (comment), this PR defines the default number of threads to one in the fields class constructor. The documentation is also updated.

src/fields.cpp Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #1745 (4bf7346) into master (cdae1a8) will increase coverage by 0.90%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1745      +/-   ##
==========================================
+ Coverage   73.46%   74.37%   +0.90%     
==========================================
  Files          13       13              
  Lines        4557     4573      +16     
==========================================
+ Hits         3348     3401      +53     
+ Misses       1209     1172      -37     
Impacted Files Coverage Δ
python/simulation.py 76.56% <100.00%> (+0.10%) ⬆️
python/geom.py 94.15% <0.00%> (+0.17%) ⬆️
python/adjoint/optimization_problem.py 72.66% <0.00%> (+2.96%) ⬆️
python/source.py 95.41% <0.00%> (+3.05%) ⬆️
python/adjoint/objective.py 90.90% <0.00%> (+15.75%) ⬆️

@oskooi oskooi merged commit 83d637c into NanoComp:master Sep 9, 2021
@oskooi oskooi deleted the num_threads_default branch September 9, 2021 20:41
mawc2019 pushed a commit to mawc2019/meep that referenced this pull request Nov 3, 2021
…p#1745)

* set the default number of threads to one for multithreading

* small fix in docs

* refactor threads initialization into a separate setup() function

* various fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants