v 4.2.1: make optional the possibility to write the parameters file when reading grid files