Dear all,
I'm trying to tweak the gasProfile structure a bit. In fact I want to specify a custom 1D gas distribution.
So currently I'm trying to initialize an array inside a gasProfile declaration code:
struct GasProfile
{
....
const float_64 test[10] = {0,1,2,3,4,5,6,7,8,9};
DINLINE float_64 operator()( floatD_64 pos )
{....
The code above gives an error during the compilation
.../simulation_defines/param/gasConfig.param(213): warning: field initializers are a C++11 feature
.../simulation_defines/param/gasConfig.param(213): warning: field initializers are a C++11 feature
.../simulation_defines/param/gasConfig.param(200) (col. 37): error: Internal Compiler Error (codegen): "function-scope static variables cannot be initialized!"
So my questions are:
1. If there is a way how to switch on the c++11 support for a compilation? (w.r.t. https://github.com/ComputationalRadiationPhysics/picongpu/issues/1147)
2. If there is a less dirty way how to plug in a custom gas profile? The custom HDF5 file is mentioned in the code, however I didn't find the way how to use... BTW, is it thread safe to read a gas profile from the file?
Thank you in advance,
Danila.
|