write_vtk routines corrected for s!=0 case