Plotting the time-depending function in the parabolic case: ******************************************************************** Open a file by string filename="datafield.dat"; ofstream file; file.open(filename.c_str()); Then, you can use void printTimeStep(double ti, const Vector& xnodes, const Vector& u_ti, ostream& file){ for(int j=0;j