Fortran 1: Crash Course on Modern Fortran

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

ความคิดเห็น • 28

  • @mg7509
    @mg7509 ปีที่แล้ว +1

    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 !

  • @김민-d9q
    @김민-d9q 3 ปีที่แล้ว +7

    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.

  • @narayansinghadhikari7246
    @narayansinghadhikari7246 3 ปีที่แล้ว +6

    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)

    • @DJsOfficeHours
      @DJsOfficeHours  3 ปีที่แล้ว +2

      Funny enough, my Julia interface with Fortran will be posting out today (5 PM PST)! haha, The Math/Physics is actually what I'm building up to as well, but that takes more time for me to figure out the best way of integrating different subjects while keeping the content as clear as I can make it. Keep an eye out for it in the future!

  • @rubempacelli6815
    @rubempacelli6815 7 หลายเดือนก่อน

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

  • @RandallStephens397
    @RandallStephens397 2 ปีที่แล้ว +1

    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

  • @ericstrobel2800
    @ericstrobel2800 3 ปีที่แล้ว +2

    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.

    • @DJsOfficeHours
      @DJsOfficeHours  3 ปีที่แล้ว +2

      I'm actually quite surprised how well my Fortran video did. I'll be making more in the future!

    • @astroid-ws4py
      @astroid-ws4py 3 ปีที่แล้ว

      @@DJsOfficeHours that’s because there is LLVM’s Flang compiler under active development what will enable running Fortran code on many devices and massive cross platform support when it will get out, It is just natural that more people will start getting interested with Fortran given that fact.

    • @johannweber5185
      @johannweber5185 2 ปีที่แล้ว

      @@astroid-ws4py Yes and with gfortran there also exists another msture and free Fortran compiler available on all important operating systems.

  • @TheMattThompson
    @TheMattThompson 3 ปีที่แล้ว

    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.

    • @DJsOfficeHours
      @DJsOfficeHours  3 ปีที่แล้ว

      That's good to know! Thanks for the comment (:

  • @michaelolayinka441
    @michaelolayinka441 ปีที่แล้ว

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

  • @brucea9871
    @brucea9871 4 หลายเดือนก่อน

    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?

  • @nkb3101
    @nkb3101 3 ปีที่แล้ว

    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.

  • @JamesHauffa
    @JamesHauffa 2 ปีที่แล้ว

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

  • @JamesHauffa
    @JamesHauffa 2 ปีที่แล้ว

    Are booleans defined as true without explicit definition

  • @Ptr-NG
    @Ptr-NG 3 ปีที่แล้ว +1

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

    • @DJsOfficeHours
      @DJsOfficeHours  3 ปีที่แล้ว +1

      I actually just covered object-orientated programing in my most recent Fortran video (:

  • @CaribouDataScience
    @CaribouDataScience 2 ปีที่แล้ว

    Is Modern Fortran a name or a description?

    • @astroid-ws4py
      @astroid-ws4py ปีที่แล้ว +1

      I guess it refers to the Fortran 2018 standard

    • @dimanikif749
      @dimanikif749 ปีที่แล้ว +1

      standart 1990

  • @PwninGamer1998
    @PwninGamer1998 3 ปีที่แล้ว

    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

    • @DJsOfficeHours
      @DJsOfficeHours  3 ปีที่แล้ว +2

      I actually mainly use the gfortran compiler, because it's easier to work across systems. Which if you use the Windows Linux Subsystem, you can use gfortran. I have used the intel compiler before, and when I have had questions, their forum is pretty good for asking questions. Hopefully this helps!

    • @johannweber5185
      @johannweber5185 2 ปีที่แล้ว

      @@DJsOfficeHours Gfortran can also be used to build native Windows applications then using an fitting Windows port of the gcc compiler colectio (TDM, mingw64, msys2).

  • @edumation
    @edumation ปีที่แล้ว

    The font is too small