Re: Enter k-points from command line
"Steven G. Johnson" <[email protected]>
| Newsgroups | gmane.comp.science.photonic-bands |
|---|---|
| Message-ID | <[email protected]> |
On Sep 14, 2010, at 9:50 AM, Kyle Douglass wrote: > How would I define a list of k-points from the command line? For > example, I have tried > > mpb k-points = (vector3 0 0.5 0) ctl.file > > but have not had any success. Thanks! mpb foo=bar is exactly equivalent to (define foo bar) So you initialize a the k-points array on the command line in exactly the same way as you initialize it in Scheme. The only trick is that you have to quote things so that the shell won't get confused. For example: mpb k-points="(list (vector3 0 0.5))" should work. Note that k-points are a list, not a single vector, and that you must not have spaces around the "=" sign. Steven