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

Function Documentation

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

Load a Grid3f from a binary file with single precision.

Parameters:
  • grid – a vector grid (Grid3f)

  • filename – name of input file

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