import os, shutil command = "rm -f solution*.dat" os.system(command) problem = "Transport" nnodes = "21" degre = "0" dt = "0.01" finaltime = "0.5" command = "./Euler1d " + problem + " "+ nnodes + " " + degre + " " +dt+ " " +finaltime os.system(command) command = "gnuplot plot.gpl" os.system(command)