doorhas.blogg.se

Plots in simply fortran
Plots in simply fortran




plots in simply fortran

The following plot is displayed when the Fortran program is executed. gnuplot is then called to run a file named data_t which is located in the same folder as the Fortran program. The above Fortran program actually calculates the points on the parabola y=x^2 and then writes into the file data. Once gnuplot finishes plotting (to your display/ or to a file), then the control will be given back to the Fortran program to continue execution. The next version of Simply Fortran, currently in testing, eliminates the pthreads library entirely.

plots in simply fortran plots in simply fortran

Hopefully you're seeing this same problem, and it is related to initializing the pthreads library. So what has it got to do with Fortran programs? Since gnuplot can be run from a terminal, we can ask the Fortran program to open a system terminal and ask to run gnuplot. There is currently a known problem with Simply Fortran's OpenMP in Windows 10, which you can read about here. It is a command line plotting utility that can produce publication-quality plots. Then I came across the wonderful gnuplot software (free and open source !!). How great would it be if we can have a plotting option directly in Fortran programs? I was having trouble finding a proper way to do this.






Plots in simply fortran