Function crpropa::loadGrid(ref_ptr<Grid1f>, std::string, double)

Function Documentation

void crpropa::loadGrid(ref_ptr<Grid1f> grid, std::string filename, double conversion = 1)

Load a Grid1f from a binary file with single precision.

Parameters:
  • grid – a scalar grid (Grid1f)

  • filename – name of input file

  • conversion – multiply every point in grid by a conversion factor