Somehow that example is not working for me. I have installed lfortran on my ubuntu 22.04 LTS laptop via the Miniconda installation and using jupyter notebook.
Also can someone guide me in calling fortran library (will prefer .a file) from lfortran script. Though am an adept user of Modern fortran but this is new to me. I am looking for simpler option to get simple plots from fortran (lfortran and combine it with old fortran libraries). Till now I have experimented with Python-Fortran integration. But if simple plots and the mandelbrot example are possible in lfortran that will solve my problem and encourage me to shift back fully to fortran. Also if an explanation of manderbot example is added in lfortran web app, that would be very helpful.
>>> use test_M, only: f 1,20 ]
>>> call f() 1,9 ]
OK
Where you compile the module using:
lfortran a.f90 -c
And the source code of it is:
module test_M
contains
subroutine f()
print *, "OK"
end subroutine
end module
However LFortran is still alpha, you can follow our progress towards beta at https://lfortran.org/, there is a nice progress bar there. Until then the expectation is that you will discover bugs. The interactive feature especially will have bugs, as we are first focusing on compiling existing codes, and once we reach beta quality for that, we plan to get interactivity and other features up to par as well.
We are always looking for new contributors and for help. The more people, the sooner we’ll get there.
The error I am getting is the following code generation error: Printing support is not available for input01 type.
As I am from Computational Aerodynamics background, I cannot contribute directly to development of lfortran. Once it is in beta phase; I will try it for simple problems first and may be contribute few examples.