The lad’s guide to Fortran

Roberto Baldizon
Silibrain
Published in
18 min readFeb 5, 2019

--

Photo by Alex Kotliarskyi on Unsplash

Fortran is one of the oldest programming languages which are still used today. It has lost its shine and popularity through the years, but it still remains a handy tool for scientists, engineers, and beginner programmers. This is an excellent language for programmers to start with because it has strict rules such as the 72 character long limit lines, as well as the little built-in functionality which requires more thinking and understanding of processes but allows for excellent functionality flexibility. In this article, we’ll go through numerous examples of how Fortran can be applied for unique problem-solving requirements.

Fortran for Reservoir Engineering

! Programmer: Roberto Carlos Baldizon Diaz
! Program: Diff
! Description: This program solves 1-D Steady State
! Diffusivity using Central Difference
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!subroutine thomas(a,b,c,d,n)implicit none! DATA DICTIONARYinteger,intent(in) :: n
real(4),dimension(n),intent(in) :: a,b,c,d
real(4),dimension(n) :: x
real (4) :: m
real(4),dimension(n) :: c_k,d_k
integer :: i

! PROCESS
c_k(1)=c(1)/b(1)
d_k(1)=d(1)/b(1)
do i=2,n
m = b(i)-c_k(i-1)*a(i)…

--

--

Roberto Baldizon
Silibrain

Founder with strong technical background experienced in designing, developing, and implementing systems for the energy, healthcare, and tech industries.