We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45db572 commit de6f158Copy full SHA for de6f158
1 file changed
src/picongpu/include/simulation_defines/param/gasConfig.param
@@ -251,10 +251,10 @@ struct FreeFormulaFunctor
251
* @return float_X density [normalized to 1.0]
252
*/
253
template<class cellSizeType>
254
- HDINLINE float_X operator()(const DataSpace<simDim>& position_SI, const cellSizeType& cellSize_SI)
+ HDINLINE float_X operator()(const floatD_64& position_SI, const floatD_64& cellSize_SI)
255
{
256
- const float_64 y = float_64(position_SI.y()) * 1000.0; // m -> mm
257
- //const unsigned int y_cell_id = position_SI.y() / cellSize_SI[1];
+ const float_64 y( position_SI.y() * 1000.0 ); // m -> mm
+ //const uint64_t y_cell_id( uint64_t(position_SI.y() / cellSize_SI[1]) );
258
259
/* triangle function example
260
* for a density profile from 0 to 400 microns */
0 commit comments