Skip to content

Commit

Permalink
remove unused function output_mode_fields (NanoComp#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskooi authored Sep 23, 2020
1 parent eb610d0 commit 1145cf6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
5 changes: 1 addition & 4 deletions doc/docs/Mode_Decomposition.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,11 @@ These functions are implemented in [src/mpb.cpp](https://github.com/NanoComp/mee
````
void output_dft(dft_flux flux, const char *HDF5FileName);
void output_mode_fields(void *mode_data, dft_flux flux, const char *HDF5FileName);
````
`output_dft` exports the components of the frequency-domain fields stored in `flux` to an HDF5 file with the given filename In general, `flux` will store data for fields at multiple frequencies.
`output_mode_fields` is similar, but instead exports the components of the eigenmode described by `mode_data` which should be the return value of a call to `get_eigenmode`.
These functions are implemented in [src/dft.cpp](https://github.com/NanoComp/meep/blob/master/src/dft.cpp#L982-L1021).
This function is implemented in [src/dft.cpp](https://github.com/NanoComp/meep/blob/master/src/dft.cpp#L1184-L1196).
### Computing Overlap Integrals
````
Expand Down
14 changes: 0 additions & 14 deletions src/dft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1181,20 +1181,6 @@ void fields::output_dft(dft_fields fdft, const char *HDF5FileName) {
output_dft_components(chunklists, 1, fdft.where, HDF5FileName);
}

/***************************************************************/
/* does the same thing as output_dft(flux ...), but using */
/* eigenmode fields instead of dft_flux fields. */
/***************************************************************/
void fields::output_mode_fields(void *mode_data, dft_flux flux, const char *HDF5FileName) {
h5file *file = open_h5file(HDF5FileName, h5file::WRITE);
delete file;

dft_chunk *chunklists[2];
chunklists[0] = flux.E;
chunklists[1] = flux.H;
FOR_E_AND_H(c) { process_dft_component(chunklists, 2, 0, c, 0, 0, 0, 0, 0, mode_data, 0, c); }
}

/***************************************************************/
/***************************************************************/
/***************************************************************/
Expand Down
1 change: 0 additions & 1 deletion src/meep.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,6 @@ class fields {
void output_dft(dft_force force, const char *HDF5FileName);
void output_dft(dft_near2far n2f, const char *HDF5FileName);
void output_dft(dft_fields fdft, const char *HDF5FileName);
void output_mode_fields(void *mode_data, dft_flux flux, const char *HDF5FileName);

// get array of DFT field values
std::complex<double> *get_dft_array(dft_flux flux, component c, int num_freq, int *rank,
Expand Down

0 comments on commit 1145cf6

Please sign in to comment.