1. Home
  2. Installation
  3. Unix/Linux
  4. Installing the code

Installing the code

Unpack

Unpack the file by using the following command:

tar xozf dolfyn_dec2018.tgz
bin/
ChangeLog
demo/
doc/
dolfyn.md
ford/
gmsh/
LICENSE
media/
NOTICE
orka/
src/
tex/
tst/

In ./src/ you will find the preprocessor file preprocessor.f90, and the dolfyn files:

ls -1

The files in the src folder

  • artificial.f90
  • cellmapper.f90
  • cgx.f90
  • checkout.f90
  • collectcells.f90
  • compile-g95.bat
  • compile-gfortran.bat
  • diffschemes.f90
  • dolfyn.f90
  • gmsh2dolfyn.f90
  • gmsh.f90
  • gmv.f90
  • gradients.f90
  • initialfield.f90
  • lapacks.f
  • main.f90
  • Makefile
  • modules.f90
  • nodestocells.f90
  • opendx.f90
  • particles.f90
  • patches.f90
  • patchscalars.f90
  • porous.f90
  • preprocessor.f90
  • readcontrolfile1.f90
  • readcontrolfile2.f90
  • readcontrolfile3.f90
  • reorder.f90
  • saverestart.f90
  • smagorinsky.f90
  • solver_hypre.f90
  • solverinterface.f90
  • solver_mkl.f90
  • solver_mkl_pardiso.f90
  • solver_sparsekit2.f
  • solver_sparsekit2omp.f90
  • tecplt.f90
  • tools.f90
  • turbmodels.f90
  • user.f90
  • vtk.f90
  • watches.f90

Edit Makefile

Next adapt the Makefile for dolfyn; check the names and compiler options. For example with Intel’s ifc, the makefile would become as follows.

Beware!

tabs in Makefiles are important!

F77 = ifc
F77Opt = -O2
F95 = ifc
F95Opt =
F95Lib =

Compile Preprocessor

The preprocessor is compiled with for example:

make dolgeo

Compile dolfyn

And compile with:

make dolfyn

That’s it!

The codes dolfyn and dolgeo are now ready to be used.

Was this article helpful to you? Yes No

How can we help?