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

decimation option for remaining DFT functions #1720

Merged
merged 7 commits into from
Aug 6, 2021

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Aug 5, 2021

Closes #1678.

#1684 introduced a new decimation_factor parameter for the add_dft_fields function to enable decimation of the DFT time-series updates. This PR adds the decimation_factor option to the five remaining DFT functions: add_flux, add_near2far, add_mode_monitor, add_energy, and add_forces. Another DFT function dft_ldos handles the DFT fields differently than the other functions (i.e., it does not initialize the fields using fields::add_dft) and will be dealt with in a separate PR.

This PR still requires unit tests and documentation before it can be merged.

@codecov-commenter
Copy link

codecov-commenter commented Aug 5, 2021

Codecov Report

Merging #1720 (cbbfdc2) into master (9509547) will decrease coverage by 47.82%.
The diff coverage is 36.00%.

@@             Coverage Diff             @@
##           master    #1720       +/-   ##
===========================================
- Coverage   73.35%   25.53%   -47.83%     
===========================================
  Files          13       13               
  Lines        4530     4535        +5     
===========================================
- Hits         3323     1158     -2165     
- Misses       1207     3377     +2170     
Impacted Files Coverage Δ
python/simulation.py 34.39% <36.00%> (-41.87%) ⬇️
python/adjoint/utils.py 0.00% <0.00%> (-93.45%) ⬇️
python/adjoint/wrapper.py 0.00% <0.00%> (-91.46%) ⬇️
python/adjoint/filter_source.py 0.00% <0.00%> (-85.30%) ⬇️
python/adjoint/__init__.py 0.00% <0.00%> (-80.00%) ⬇️
python/adjoint/objective.py 0.00% <0.00%> (-75.31%) ⬇️
python/adjoint/optimization_problem.py 0.00% <0.00%> (-69.59%) ⬇️
python/geom.py 35.05% <0.00%> (-58.94%) ⬇️
python/adjoint/filters.py 0.00% <0.00%> (-49.70%) ⬇️
... and 4 more

@oskooi
Copy link
Collaborator Author

oskooi commented Aug 6, 2021

Unit tests and documentation have been added. This is ready to be merged.

@stevengj stevengj merged commit 74c9752 into NanoComp:master Aug 6, 2021
@oskooi oskooi deleted the dft_flux_decimation branch August 6, 2021 14:16
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
* add decimation factor to add_dft_flux

* some fixes

* fixes

* fixes, unit tests, docs

* update markdown pages for user manual

* increase tolerance of failing unit test in test_bend_flux.py

* fix add_dft_near2far function header
mawc2019 pushed a commit to mawc2019/meep that referenced this pull request Nov 3, 2021
* add decimation factor to add_dft_flux

* some fixes

* fixes

* fixes, unit tests, docs

* update markdown pages for user manual

* increase tolerance of failing unit test in test_bend_flux.py

* fix add_dft_near2far function header
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.

offer DFT decimation option
3 participants