On Tue, 20 Mar 2007, Lydie Ferrier wrote:
I have a problem with the function "load-minus-flux". After saving the fourier transformed fields from the normalisation run, i did the second run where i included the "load-minus-flux" function to compute the relection spectra. Th second run doesn't work because it doesn't read the HDF5 file extracting from the normalisation run.

It sounds like you are using two separate .ctl files, one for the normalization run and one for the "real" run. This will cause problems, because the .ctl file name is preprended to the HDF5 file name.

For example, if your normalization run is blabla.ctl, then the flux file will be saved as blabla-refl-flux.h5. Now, if your "real" run is foobar.ctl, then it will try to read from foobar-refl-flux.h5, which of course will fail.

The best thing to do is to use the same .ctl file file both the normalization run and for the final computation (which has the added advantage of keeping the cell size, etc, in sync). Define a boolean true/false variable to determine whether you are running it for normalization or not. See the Meep tutorial in the manual for an example of this.

Steven

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

Reply via email to