Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guile API for get-eigenmode-coefficients #477

Merged
merged 4 commits into from
Aug 28, 2018
Merged

Add guile API for get-eigenmode-coefficients #477

merged 4 commits into from
Aug 28, 2018

Conversation

ChristopherHogan
Copy link
Contributor

@ChristopherHogan ChristopherHogan commented Aug 23, 2018

  • I allocate space for coeffs and vgrp using guile arrays, which allow me to get a C pointer to the data. The mode-coeffs.ctl test works, but I'm not sure if the arrays are guaranteed to be contiguous. The docs say they may not be contiguous if you perform any slicing, so I'm assuming that means a newly-created array is contiguous.
  • get-eigenmode-coefficients accepts keyword arguments, with the same defaults as python.
  • Added add-mode-monitor, and mode-region as alias of flux-region.
  • mode-coeffs.ctl is the same as python/tests/mode_coeffs.py. Since the guile interface doesn't really have a test suite, we can replace that with an example similar to python/examples/mode-decomposition.py.

I checked the manual to make sure the guile features I'm using are present in versions >= 1.8, but I've only tested it on 2.0.11.
@stevengj @oskooi

@stevengj stevengj merged commit 0b0cd3d into NanoComp:master Aug 28, 2018
@ChristopherHogan ChristopherHogan deleted the chogan/guile_get_eig_coeff branch August 29, 2018 12:38
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
* Add get-eigenmode-coefficients to scheme API

* Add support for kpoint functions

* Return kpoints from get-eigenmode-coefficients

* Remove extra define
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants