Get source amplitude from hdf5 file #388
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #372
linear_interpolate
tolibmeep
to avoid multiple definitions, and to use it insources.cpp
. The definition is currently infields.cpp
, but there might be a better place for it.libmeep.so
withlibctlgeom.so
so thatsrc/sources.cpp:amp_file_func
can accessgeometry_lattice
andgeometry_center
.mp.Source
.add_volume_source
that creates an amplitude function that reads from an hdf5 file. It expects both a.re
and.im
dataset.1+1j
, then runs the same simulation that gets the amplitude from an hdf5 file of all ones (2, 10x10 datasets for real and imaginary), and compares a field point. A more thorough test is needed (Ardavan mentioned a ray tracing example).@stevengj @oskooi