From 97396afe8149590d2603c9eaadb32cd7903e66df Mon Sep 17 00:00:00 2001 From: Homer Reid Date: Tue, 6 Nov 2018 14:41:10 -0500 Subject: [PATCH] Broadcast eigenmode data (#594) * updates * broadcast eigenmode data --- src/mpb.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mpb.cpp b/src/mpb.cpp index 324922e51..a4aab11c4 100644 --- a/src/mpb.cpp +++ b/src/mpb.cpp @@ -432,6 +432,8 @@ void *fields::get_eigenmode(double omega_src, /*--------------------------------------------------------------*/ complex *cdata = (complex *) 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.*/