put functionality for getting header information (dimension, homogenization, resolution) in functions in mesh.f90