added member function to write ghost cells for viscous flux calculation