←
FortranTip509 posts
FortranTip avatar

FortranTip

@fortrantip

Tips about Fortran. Code samples and index of tweets are at GitHub. I post as Beliavsky at Fortran Discourse. Joined by other contributors. Male.

◷ Joined December 2021▧ 160 Photos and videos
FortranTip avatar
FortranTip@fortrantip·Oct 12

beliavsky.github.io/ofort Ofort is my Fortran command-line interpreter and interactive REPL, written in C. Because there is no compilation step results are immediate for small programs. It runs in a browser or from the command line.

FortranTip avatar
FortranTip@fortrantip·Oct 7

fortran-lang.discourse.group… "[T]he latest FPM build on conda-forge is now built with openmp so will compile your code in parallel.[...] So, now for large projects things compile way faster! Get it with conda install fpm or pixi add fpm." @DegenerateConic

FortranTip avatar
FortranTip@fortrantip·May 25

fortran-lang.discourse.group… "Version 5.2 of the AMD AOCC compiler has been released. A DO CONCURRENT parallelization feature was added in Fortran. Also, the next major release, Version 6, will be based on llvm-flang and not “classic” flang like current versions."

FortranTip avatar
FortranTip@fortrantip·May 15

For the code if (c .and. d) then Fortran does not require short-circuit evaluation: the compiler may evaluate c and d in either order, or both. Code that runs with gfortran -O2 may crash with -O0. Compile and run with and without optimization to catch such bugs.

FortranTip avatar
FortranTip@fortrantip·Apr 27

fortran-lang.discourse.group… VSCode with the Modern Fortran plug-in and fortls shows you the definition of type-bound or object-bound procedures by clicking on Go to Implementations or Peek. The thread discusses many text editors on Linux that support Fortran.

FortranTip avatar
FortranTip@fortrantip·Apr 24

fortran-lang.discourse.group… "The Intel Fortran team was curious if the [compiler] was an enabling technology for the Artemis moon mission completed a few weeks ago. NASA and confirmed that Intel Fortran was used to build their workhorse fluid dynamics solvers OVERFLOW and FUN3D"