Fortran 1: Crash Course on Modern Fortran

preview_player
Показать описание
#fortran #tutorial #programming

This week I go into Fortran! Oh my. While Julia is a great language, there is usually a need to interface with other languages or at least read code that has been written across the spectrum. Many languages have a pretty intuitive design and can be read fairly easily, but Fortran definitely has some nuances that can confuse or intimidate a new user to it. I go into a small crash course on getting up an running on Fortran, and try to cover any major keywords that you may come across in your computer science careers.

SECTIONS
-----------------
00:00 - Intro
01:44 - Module Setup
02:32 - Data Types
04:27 - Main Program and Functions
05:30 - Compiling Fortran Code
07:15 - Control Flow
08:25 - Do Loops
09:05 - Arrays
11:38 - Subroutines
13:03 - Compiling multiple files

Modern Fortran Book
----------------------------------

Repo
--------

Рекомендации по теме
Комментарии
Автор

Hey, I have been trying to dive into fortran programming for a while now and you are the only one that actually made a good and understandable tutorial. Honestly, coming from python i found such a difficulty barrier and you just made it all click together, thank you !

mg
Автор

Thank you very much for this nice intro to fortran! I am a julia and matlab user in economics and like you said in the intro I do need to look at fortran codes many times. This video helped me a lot and now the code makes more sense! Thanks again.

김민-dq
Автор

Very Informative series. I have two suggestions.
1. Add exercises related to physics problems in the Julia series.
2. I will request you to make a video on calling FORTRAN from Julia (with examples)

narayansinghadhikari
Автор

Amazing video! Integrating Fortran with Julia would be great as well!

rubempacelli
Автор

After watching this and seeing how Fortran handles things, I suddenly understand why I see things done in certain ways in c++ like void functions that take parameters by reference to store their output to instead of just returning a value.
Mind == blown

RandallStephens
Автор

Thanks... I've got tons of F77 code I wrote 30-odd years ago & I've been thinking about reviving some of it. Between this and the video on calling Fortran from Julia, I may have a shot.

TheModeleer
Автор

Nice video! In re defining variables, you can technically define them in the middle of a procedure if you use a BLOCK construct. I don't use it often but there are a few times I've only wanted, say, an integer for limited scope.

TheMattThompson
Автор

Thanks for the input!
Please would be there more good stuff related to modern fortran?

GinasD
Автор

Useful. I found it easier to follow (& I have Fortran experience from a while back) your video by playing it at 0.75 Normal speed :)....I'd suggest slowing down otherwise, but thanks.

nkb
Автор

I'm wondering what the largest size integers Fortran can handle and the highest precision available for reals. I noticed you used 64 bits for integers and reals but said you could use 128. Is that the largest size available, and if so what is the largest range of integers available? (I suspect it would be from -2^127 to 2^127 - 1). And what is the highest precision available for reals? When you used 64 bits there were 17 significant figures so would that double with 128 bits? Also what is the largest exponent available?

brucea
Автор

@DJ
Is there a way to code GUI in Fortran where you can create objects like textbox, buttons etc. Please help

michaelolayinka
Автор

So do all variables have to be in the global scope?

JamesHauffa
Автор

It looks like you are using Microsoft Visual Studio as an IDE. Are you using the IntelOneAPI fortran compiler to run this on here? I am having some issue with running an old Fortran program on my computer, and I believe it may be because the original code was written using Intel Parallel Studio (older version).
I am new to Fortran entirely, so I am not sure if you might have any knowledge of what could be an issue (it is saying ifort.exe can not be found when I try running). Thanks for the crash course though! This will help

PwninGamer
Автор

Are booleans defined as true without explicit definition

JamesHauffa
Автор

Is Modern Fortran a name or a description?

CaribouDataScience
visit shbcf.ru