You can use open_h5file() method of field class to obtain a filehandle
for arbitrarily named datafile. Then you can supply it as h5file
argument (not dataname) for any output_hdf5 method. dataname has
different meaning - it is a name of dataset in datafile.



2009/9/19, 李志强 <lzq0011...@gmail.com>:
> Hi all!
>
> I want to manipulate the output filename in c++ interface. I have browsed
> the meep source code and find the function output_hdf5 is overloaded, it
> contained one which I think may be used manipulate the output name:
>
>
> void
>
> output_hdf5 (const char *dataname, int num_Fields, const component
> *components, field_rfunction fun, void *fun_data_, const Geometric_Volume
> &where, H5file *file=0, bool append_data=false, bool single_precision=false,
> const char *prefix=0)
>
> I guess the first parameter const char* maybe the output filename which can
> be defined by user arbitrarily. The problem is I do not know how to set
> field_rfunction fun and void* fun_data_. Can anyone help?
>
>

_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to