fixed bug in reading and writing resistivity model in WSMesh