How to compile R-LINE through gcc

Hi!

I am using again R-LINE after long time and I forget how to compile it. Nowadays I am using a Linux PC and gcc compiler, but I am in doubt if just compiling, through gfortran, the RLINE_Main.f90 or using cmake/make to compile all project is needed.

Please, if someone could describe the steps to compile in Linux environment and GNU (gcc/gfortran) compiler I’d be so happy and thankful.

Best regards.

Paulo.

In the package, there are Makefiles for intel and pgi.

I have copied and modified those files to use gfortran.

Please see the file attached that is named Makefile.gfortran.txt

Note, you will need to copy Makefile.gfortran.txt to Makefile and then run make as follows.

First download Makefile.gfortran.txt to the same directory where you have the package installed.
Be sure that you are running on a system that has the gfortran installer loaded

module list

Output:

Currently Loaded Modules:
  1) gcc/9.1.0

Then copy the file to Makefile, and run make.

cd v1_2
cp Makefile.gfortran.txt Makefile
make |& tee make.log

Once it compiles, you should have an executable named:

RLINEv1_2.gfortran.x 

Makefile.gfortran.txt (917 Bytes)