This is an example of how to use the Grid class
#include <iostream>
#include <fstream>
{
int ngrid= 10;
std::ofstream output_file("random.dat");
output_file << ngrid << std::endl;
output_file << position.transpose() << std::endl;
grid2.
read(
"random.dat");
std::ofstream read_file("random_read.dat");
read_file << ngrid << std::endl;
read_file << position.transpose() << std::endl;
}