[Solved] Gnuplot vector fortran

First of all, you are making a data file plotdata.txt at the beginning of the program, while trying to plot file.dat later, so that Gnuplot cannot find the latter. After fixing this, you can attach -persist option to keep the graph on the screen as call execute_command_line(“gnuplot -persist plotvel.txt”) Otherwise the graph disappears instantly and … Read more

[Solved] Fortran Program Crashes when running

I ran your code through the NAG Fortran Compiler (on Linux). The version you have posted doesn’t compile for me: > nagfor -mtrace=all -u -C=all -C=undefined valuefuncmat.f90 … Error: valuefuncmat.f90, line 100: Syntax error detected at )@, … That of course is easy to rectify (i.e., change line 100 to write(*,'(20G12.4)’) vOUT(i,:)). With that done, … Read more