Lockdown has affected every business here in the UK, resulting in most of us working from home and so communicating remotely with our colleagues and clients. Microsoft Teams has enabled us to stay in daily contact using video and audio calls and sharing screens. But as days turned into weeks, we needed more than this.
Recently, OCC completed a project converting MATLAB code to FORTRAN 95 which presented us with some interesting problems due to their differences in the treatment of variables, functions and matrices. This article describes how we solved those problems. Variables The most noticeable difference between the two languages is that MATLAB is dynamically typed, while all variables in FORTRAN are declared at the top of the scope. In FORTRAN, variables must be declared before use. A major challenge of converting dynamically[...]