> The matter is that I have limited space to store several .hdf files with
> both imaginary and real part. I need to know how to get the result with
> only real part by C++.
>
> Thanks!
>
Look into output_hdf5 method declaration in meep.hpp (line 863 in Meep
0.20.3:
void output_hdf5(const char *dataname, // OUTPUT COMPLEX-VALUED FUNCTION
int num_fields, const component *components,
field_function fun, void *fun_data_,
const geometric_volume &where,
h5file *file = 0,
bool append_data = false,
bool single_precision = false,
const char *prefix = 0,
bool real_part_only = false);
I think the last parameter will solve your problem :)
--
Regards,
Pawel Smolinski
Faculty of the Fundamental Problems of Technology
Wroclaw University of Technology, Poland
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss