When you compile a FORTRAN file containing module declarations, the compiler generates a separate module file for each module declaration in the file. These files are created, by default, in the current directory and in OpenVMS their names consist of the module name followed by the extension F90$MOD.Consider the following FORTRAN source file named hello_m.f90:…
Month: January 2021
Using cmake to build FORTRAN projects with modules
If you are building FORTRAN projects in linux, you can use Cmake as your build system. Let’s build a very simple project consisting a module and a FORTRAN program file. The module is defined in the file hello_mod.f90 which contains following code: The file main.f90 contains the program which in turn uses the the hello…
Configure Postgres to accept remote connections
The default postgres configuration will only accept local connections to the database. If you are, for example, using psql and trying to connect to a remote server called remote-server you may receive a response like: Running netstat on the server sheds light on the problem: the postgresql server is bound to address 127.0.0.1 This behavior…