Skip to content

Commit

Permalink
Broadcast eigenmode data (#594)
Browse files Browse the repository at this point in the history
* updates

* broadcast eigenmode data
  • Loading branch information
Homer Reid authored and stevengj committed Nov 6, 2018
1 parent 98babca commit 97396af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mpb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ void *fields::get_eigenmode(double omega_src,
/*--------------------------------------------------------------*/
complex<mpb_real> *cdata = (complex<mpb_real> *) mdata->fft_data;

broadcast(0, (double*) H.data, 2 * H.n * H.p);

maxwell_compute_h_from_H(mdata, H, (scalar_complex*)cdata, band_num - 1, 1);
/* choose deterministic phase, maximizing power in real part;
see fix_field_phase routine in MPB.*/
Expand Down

0 comments on commit 97396af

Please sign in to comment.