On Sat, 14 Oct 2006, Andreas von Rhein wrote:
I like to compute self defined functions depending on field-variables (Ex, Ey, etc.) and finally print them on stdout. But sometimes the output interferes with the meep-ping output.

What do you mean by "meep-ping"?

I print the results of self-computed functions all the time, and haven't had any problems with the output "interfering" ... can you be more specific about what kind of problems you have encountered? (To prevent this kind of interference, the libctl print function flushes stdout, and the C++ printf's do likewise.)

To avoid this, I'm using the guile file-port functions and write into an
separate file.

This shouldn't be necessary.

2. is it possible to use the libctl print function on a file-port?

No, but it is easy to write your own print function that outputs to a port (see libctl/base/utils.scm ... the print function is only 4 lines).

3. is it possible to define a string-parameter? e.g. meep filename="dummy.out" demo.ctl

Yes, but you need to quote the quotation marks so tha they don't get stripped out by the shell. e.g.
        meep 'filename="dummy.out"' demo.ctl

Steven

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to