def io_surface(timestep, time, fid, fld):
fid.write("<STR_LIT>".format(timestep, time))<EOL>fid.writelines(["<STR_LIT>" % item for item in fld[:]])<EOL>fid.writelines(["<STR_LIT:\n>"])<EOL>
Output for surface files