Skip to content

Commit

Permalink
track communications time in mode solver
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jun 10, 2020
1 parent 9028a2f commit 76d029d
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 @@ -516,6 +516,7 @@ void *fields::get_eigenmode(double frequency, direction d, const volume where, c
for (int i = 0; i < 3; ++i)
destroy_evectmatrix(W[i]);

am_now_working_on(MpiTime);
/* We only run MPB eigensolver on the master process to avoid
any possibility of inconsistent mode solutions (#568) */
eigval = broadcast(0, eigval);
Expand All @@ -528,6 +529,7 @@ void *fields::get_eigenmode(double frequency, direction d, const volume where, c
}
if (!am_master()) update_maxwell_data_k(mdata, k, G[0], G[1], G[2]);
broadcast(0, (double *)H.data, 2 * H.n * H.p);
finished_working();

if (!match_frequency) frequency = sqrt(eigval);

Expand Down

0 comments on commit 76d029d

Please sign in to comment.