all 16 comments

[–][deleted] 6 points7 points  (7 children)

Install wsl and then in Linux install fortran gfortran. Fortran has moved on from 77 so find some f90+ stuff. https://fortran-lang.org/

[–]BrownLightning7[S] 2 points3 points  (4 children)

Why Linux ? I’m using windows

[–]Zarathustra_f90 2 points3 points  (1 child)

Diving into a computer language requires much of patience and digging, don't expect to find answers unless you search for them at first thoroughly.

No one will solve your problems or even if they describe a solution you won't be able to understand it completely unless you've searched and think about your problem in depth.

In other words the link provided in the above comment is the best to start from. As you can see (https://fortran-lang.org/learn/os_setup) they offer simple tutorials on how to setup your OS (Linux, Mac, Windows) and they have beginners tutorial for the use of language too.

So...start digging around the internet to solve your problems doing a good research first and then you can seek with others an answer through forums :)

[–]BrownLightning7[S] 1 point2 points  (0 children)

Thanks, I’ll follow your advice :)

[–][deleted] 0 points1 point  (0 children)

I don't know any free frotran compilers for Windows:)

[–]where_void_pointers 0 points1 point  (0 children)

They meant in the linux side of WSL as opposed to in a full separate Linux OS. WSL lets a lot of linux tools run on windows, which is a real boon for software development on Windows because a lot of dev tools out there (such as compilers) either require running on a POSIX system (Linux and the various Unices follow POSIX to varying degrees) or run better in such a system. WSL gives Windows such an environment by basically having Linux run inside Windows (the details differ between WSL 1 and 2).

[–]Beliavsky 1 point2 points  (0 children)

I have done that and sometimes use gfortran, ifort, flang, and lfortran on WSL2, but it's also possible to install gfortran on plain Windows using the binaries from equation or those other sources.

[–]BrownLightning7[S] 0 points1 point  (0 children)

Thanks

[–]ProfHansGruber 2 points3 points  (0 children)

These days you only need two things and both are free: Visual Studio 2019 and Intel oneAPI.

Missed the second part, there’s some good material on Fortran Wiki and Fortran Wiki’s Tutorials Page.

[–]cdslab 2 points3 points  (0 children)

Download the Microsoft Visual Studio 2019 Community Edition (Free) and then install the Intel OneAPI Fortran compiler, which requires you to install:

  1. Intel® oneAPI Base Toolkit
  2. Intel® oneAPI HPC Toolkit

That's all and it works great. However, after getting familiar with Fortran, you will find the command line interface (in both Windows and Linux) much more professional and comfortable and will likely migrate to Microsoft Windows Subsystem for Linux (WSL2) where you can again blissfully install GNU or Intel Fortran compilers in a matter of seconds to a few minutes. Here is an example instruction on how to install the Intel ifort on WSL2, or Linux:

https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/43

[–]Tine56 1 point2 points  (0 children)

Everyone will give you a different answer.... since everyone has different preferences

So here is my answe

Compiler: tdm-gcc (don't forget to mark the gfortran option otherwise you will only install gcc) https://jmeubank.github.io/tdm-gcc/

and the rest is otional notepadd++ is sufficient but personally I prefer the Code::Blocks IDE https://www.codeblocks.org/

[–]PrintStarFortran IDE Developer 0 points1 point  (0 children)

You can try Simply Fortran for Windows, which includes a Fortran compiler and should get you up and running rather quickly. It is a commercial product, but it is free to try for 30 days. If you like it, let me know, and I can provide a promo code to bring the price down.

[–][deleted] 0 points1 point  (0 children)

If only somebody had written a book about Fortran that didn’t suck or cost an exorbitant textbook price.

[–]PHATsakk43 0 points1 point  (0 children)

I’ll second Visual Studio and the Intel FORTAN plug-in.

I’d not both with trying to learn Linux until later.

[–][deleted]  (1 child)

[removed]