CodeBlocks is an open source Fortran IDE which runs on Linux and Windows. The application does not directly allow you to import a CMake project. However, it is possible to do it in a few simple steps. Check below the steps: # goto source project dir mkdir build cd build cmake -G”CodeBlocks – Unix Makefiles”…

read more

Fypp preprocessor generates Fortran code based on Python language. However, in some cases it is not straightforward. Read below to discover how to create higher level functions. Let’s say our program requires to allocate an array for N supported ranks. dim is an array with the size of each rank. To make it possible We…

read more

Overloading a subroutine means to redefine its internal functionality for a customized behavior. Overall it adapts the class new characteristics to already wide-spread Fortran functionalities (==, =, + ,-, …). Specifically, this post only focus on the operators (+,-,*,/). In the following example, mynumber is generic class to hold any type of an integer number.…

read more