I’ve inherited a codebase using multi-dimensional arrays (of sizes in the thousands) in a performance-critical path. In particular, the code wants to read off columns from the array and also perform element-wise addition by columns. I don’t really want to re-write a lot of logic to switch rows and columns just so I can use […]
Some time ago, poor Keith found himself working on an antique Classic ASP codebase. Classic ASP uses VBScript, which is like VisualBasic 6.0, but worse in most ways. That’s not to say that VBScript code is automatically bad, but the language certainly doesn’t help you write clean code. In any case, the previous developer needed […]
I have been experiencing this problem that if I pass a double array in a function that is written in a different file, it is empty. Maybe there is a very simple solution, but I don’t know it. program_test.f90: program test use iso_fortran_env implicit none real(real64), allocatable :: u(:, 🙂 real(real64) :: res real(real64), external […]