Skip to content

Commit de6f158

Browse files
committed
gasConfig.param: Update FreeFormula Signature
1 parent 45db572 commit de6f158

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/picongpu/include/simulation_defines/param/gasConfig.param

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ struct FreeFormulaFunctor
251251
* @return float_X density [normalized to 1.0]
252252
*/
253253
template<class cellSizeType>
254-
HDINLINE float_X operator()(const DataSpace<simDim>& position_SI, const cellSizeType& cellSize_SI)
254+
HDINLINE float_X operator()(const floatD_64& position_SI, const floatD_64& cellSize_SI)
255255
{
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];
256+
const float_64 y( position_SI.y() * 1000.0 ); // m -> mm
257+
//const uint64_t y_cell_id( uint64_t(position_SI.y() / cellSize_SI[1]) );
258258

259259
/* triangle function example
260260
* for a density profile from 0 to 400 microns */

0 commit comments

Comments
 (0)