Hi Andreas,
You can use get-fluxes and get-flux-freqs to store your results in
lists, then write the lists to a file using scheme functions.
The behavior you get isn't really a bug, but an artifact of mpi starting
a new process.
Another alternative is to use regular expression tools like sed, awk,
grep, or perl to automate the removal of the unwanted text.
Best,
Matt
On Wed, 30 May 2007, Andreas Wilde wrote:
Hello,
I´m trying to compute transmission spectra of some structures using
meep-mpi. The problem is: If I set a command line argument meep prints a
statement
command-line param: ...
at a random position, in my case typically somewhere in the middle of
output of display-fluxes. The output looks like this (example)
...
flux1:, 0.125, -6.900e-9, -7.596e-10, -1.669e-9, -4.7e-9
flux1:, 0.133, 7.3498e-9, -8.413e-10, -1.491e-9, -4.6e-9
flux1:, 0.142, 1.0203e-8command-line param: grid?=true
, -3.848e-9, -8.379e-10, -2.992e-9
flux1:, 0.151, -1.943e-8, -1.487e-10, -1.815e-9, -5.048e-9
flux1:, 0.160, 2.0975e-8, 6.7716e-10, -1.578e-9, -5.262e-9
...
This is very annoying, because one must edit the output by hand before
importing data to Matlab.
There seem to be two possible ways to handle this:
- prevent meep from print "command line param"
- extract the fluxes some other way than using "display-fluxes"
Any ideas?
andreas
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss