Skip to content

Commit

Permalink
scheme interface for oblique coefs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jul 5, 2019
1 parent e3a5ad2 commit d2b75bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scheme/meep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ kpoint_list do_get_eigenmode_coefficients(fields *f, dft_flux flux, const volume
std::complex<double> *coeffs, double *vgrp,
double eig_resolution, double eigensolver_tol,
meep::kpoint_func user_kpoint_func,
void *user_kpoint_data) {
void *user_kpoint_data, int dir) {
size_t num_kpoints = num_bands * flux.Nfreq;
meep::vec *kpoints = new meep::vec[num_kpoints];
meep::vec *kdom = new meep::vec[num_kpoints];

f->get_eigenmode_coefficients(flux, eig_vol, bands, num_bands, parity, eig_resolution,
eigensolver_tol, coeffs, vgrp, user_kpoint_func, user_kpoint_data,
kpoints, kdom);
kpoints, kdom, false, dir < 0 ? flux.normal_direction : direction(dir));

kpoint_list res = {kpoints, num_kpoints, kdom, num_kpoints};

Expand Down
1 change: 1 addition & 0 deletions scheme/meep.scm.in
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,7 @@
(eig-vol (get-keyword-value args #:eig-vol (meep-dft-flux-where-get flux)))
(eig-resolution (get-keyword-value args #:eig-resolution 0))
(eig-tolerance (get-keyword-value args #:eig-tolerance 1e-12))
(direction (get-keyword-value args #:direction AUTOMATIC))
(num-bands (length bands))
(kpoint-func (get-keyword-value args #:kpoint-func '())))
(begin
Expand Down

0 comments on commit d2b75bc

Please sign in to comment.