Talk:Meep Reference

From AbInitio

(Difference between revisions)
Jump to: navigation, search
Revision as of 17:16, 22 November 2005 (edit)
Mihai (Talk | contribs)
(amp-func not working?)
← Previous diff
Current revision (16:28, 23 November 2005) (edit)
Stevenj (Talk | contribs)
(response to Mihai)
 
Line 12: Line 12:
:;<code>amplitude</code> [<code>cnumber</code>] :;<code>amplitude</code> [<code>cnumber</code>]
Note that this '''must''' be a complex number which you can enter as <code>2.0+1.0i</code>. You will get an error if you pass a real/double number. --[[User:Mihai|Mihai]] 12:16, 22 Nov 2005 (EST) Note that this '''must''' be a complex number which you can enter as <code>2.0+1.0i</code>. You will get an error if you pass a real/double number. --[[User:Mihai|Mihai]] 12:16, 22 Nov 2005 (EST)
 +:This is due to a SWIG bug, I think (although I might be able to work around it). However, it doesn't need to be complex, only real. E.g. use <code>1.0</code> instead of <code>1</code>; you don't need to use <code>1+0i</code> (although this will work too). [[User:Stevenj|&mdash;Steven G. Johnson]]
:;<code>amp-func</code> [<code>function</code>] :;<code>amp-func</code> [<code>function</code>]
This doesn't seem to work right now. I get <code>No matching method for generic function `meep_fields_add_volume_source'</code>. Maybe a bug? --[[User:Mihai|Mihai]] 12:16, 22 Nov 2005 (EST) This doesn't seem to work right now. I get <code>No matching method for generic function `meep_fields_add_volume_source'</code>. Maybe a bug? --[[User:Mihai|Mihai]] 12:16, 22 Nov 2005 (EST)
 +::This was a bug; I've fixed it and it works now. [[User:Stevenj|&mdash;Steven G. Johnson]] 11:28, 23 Nov 2005 (EST)

Current revision

Tips & Tricks

This is a list of things that people had troubles with even after reading the meep reference. It can include common mistakes people make in their control files, caveats, unclear explanations in the reference section, potential bugs. The list has two purposes: (i) to help people when they get stuck with something, and (ii) to help developers improve the documentation and the code.

For easier navigation, please try to maintain the section structure/ordering of the Meep Reference page when you add content to this list.

Classes

source

amplitude [cnumber]

Note that this must be a complex number which you can enter as 2.0+1.0i. You will get an error if you pass a real/double number. --Mihai 12:16, 22 Nov 2005 (EST)

This is due to a SWIG bug, I think (although I might be able to work around it). However, it doesn't need to be complex, only real. E.g. use 1.0 instead of 1; you don't need to use 1+0i (although this will work too). —Steven G. Johnson
amp-func [function]

This doesn't seem to work right now. I get No matching method for generic function `meep_fields_add_volume_source'. Maybe a bug? --Mihai 12:16, 22 Nov 2005 (EST)

This was a bug; I've fixed it and it works now. —Steven G. Johnson 11:28, 23 Nov 2005 (EST)
Personal tools