The first #computer #language I ever learned was #fortran back in grade 11 and then in #university

Well it is back in the TIOBE top 10 at the time this article was published, currently number 11.

Calling Modern Fortran & MPI fans/lawyers.
What happens if I call MPI_Send / MPI_Recv on a non-contiguous chunk of an array?

I have (where sbuf is a 2D send-buffer array):

MPI_Send(sbuf(ix:ix+nelems-1, :), nelems*ncolumns, ...)

And very similar for receiving. Is this:
legal? bad?

#Fortran #F90 #MPI #HPC

Decided to add a little Easter egg to my hobby project's source code.

#SourceCodeSunday #Fortran #Futurama #EasterEgg

My first experience with #chatgpt5.

I queried how to write some #python code to write out unformatted, binary files so my #fortran code could read it.

Proceeds to give me a load of #NumPy code. Completely neglects to mention the #SciPy FortranFile class that can trivially read and write, and appears on the first page of a search.

This is going to be a bumpy ride!

Fortran: I could totally code in this

#fortran #coding #programming

The Fortran Programming Language โ€” Fortran Programming Language

Fortran : High-performance parallel programming language

Dear fellow Fortran nerds!

Is there an equivalent way to do something like this numpy code without using a loop? Performance is not critical.

term1 = np.sum(
n_pic[:,mask] * charge[None, mask], axis=1
)

I see 2 problems here.
a) broadcasting a 2D array (n,m) with a 1D array (m)
b) the mask= option of Fortran's sum must(??) take an array the same shape as the summed array. Is there any way to say "this 1D mask should apply in the 2nd dimension?"

#Fortran #F90

1/2

#FORTRAN doesn't have fork() or exec() natively. Creating a new process in FORTRAN requires either using system() function (portable but limited) or calling #C functions via ISO_C_BINDING (allowing full control). Modern FORTRAN (2003 and later) allows calling C functions directly
Via @unix-byte.bsky.social
A Gentle Introduction To Fortran | Lobsters

A Gentle Introduction To Fortran

Originally known as FORTRAN, but written in lower case since the 1990s with Fortran 90, this language was developed initially by John Backus as a way to make writing programs for the IBM 704 mainfrโ€ฆ

Hackaday