intro story D-Flow FM

 

D-Flow Flexible Mesh

D-Flow Flexible Mesh (D-Flow FM) is the new software engine for hydrodynamical simulations on unstructured grids in 1D-2D-3D. Together with the familiar curvilinear meshes from Delft3D 4, the unstructured grid can consist of triangles, pentagons (etc.) and 1D channel networks, all in one single mesh. It combines proven technology from the hydrodynamic engines of Delft3D 4 and SOBEK 2 and adds flexible administration, resulting in:

  • Easier 1D-2D-3D model coupling, intuitive setup of boundary conditions and meteorological forcings (amongst others).
  • More flexible 2D gridding in delta regions, river junctions, harbours, intertidal flats and more.
  • High performance by smart use of multicore architectures, and grid computing clusters.
An overview of the current developments can be found here.
 
The D-Flow FM - team would be delighted if you would participate in discussions on the generation of meshes, the specification of boundary conditions, the running of computations, and all kinds of other relevant topics. Feel free to share your smart questions and/or brilliant solutions! 

 

=======================================================
We have launched a new website (still under construction so expect continuous improvements) and a new forum dedicated to Delft3D Flexible Mesh.

Please follow this link to the new forum: 
/web/delft3dfm/forum

Post your questions, issues, suggestions, difficulties related to our Delft3D Flexible Mesh Suite on the new forum.

=======================================================

** PLEASE TAG YOUR POST! **

 

 

Sub groups
D-Flow Flexible Mesh
DELWAQ
Cohesive sediments & muddy systems

 


Message Boards

make error (gfortran: unrecognized option '-cpp')

U
Cezar BALANESCU, modified 8 Years ago.

make error (gfortran: unrecognized option '-cpp')

Hello,

I have an error related to make script. All the scripts ran smoothly (autogen.sh, configure).
On make script I have an error:

gfortran: unrecognized option '-cpp'
In file precision.F90:82

Please see the attached file.

Could you please send some advice on approach his?

Best regards,
Cezar BALANESCU

Attachments:

Fedor Baart, modified 8 Years ago.

RE: make error (gfortran: unrecognized option '-cpp')

Padawan Posts: 44 Join Date: 3/2/11 Recent Posts
Cezar BALANESCU:

gfortran: unrecognized option '-cpp'
In file precision.F90:82


The -cpp option is used to preprocess fortran files. This is an intel specific option.
It should not be set. It might be caused by the AC_FC_PREPROCESS macro in m4/fortran.m4 or it might be that someone accidently put it in the Makefile.am. Which version are you building? Could you also post your config.log?

However in your case this -cpp option is not causing a problem. The files are preprocessed anyway because gfortran adheres to the .F90 -> preprocess, .f90 -> no preprocessing convention.
The real problem is here:

In file precision.F90:82

use iso_c_binding
                1
Fatal Error: Can't open module file 'iso_c_binding.mod' for reading at (1): No such file or directory


It seems that your fortran compiler can't find the iso_c_binding module. This module is part of newer fortran compilers such as gfortran >= 4.5. Could it be that you are using an older version? In this case the way forward is to use an up to date gfortran.

Cheers,

Fedor
U
Cezar BALANESCU, modified 8 Years ago.

RE: make error (gfortran: unrecognized option '-cpp')

Good morning, Fedor

I am trying to compile 5.00.10.1983 version, revision 2032. Attached you may find the config.log
[EDIT]: Indeed my gnu fortran version is quite old: GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)

Please advice.

The operating system is CentOS 5.8 (uname -a -> Linux centos 2.6.18-308.20.1.el5 #1 SMP Tue Nov 13 10:15:12 EST 2012 x86_64 x86_64 x86_64 GNU/Linux)

Should I try to use Mandriva? It has the most recent versions of 'Developement Tools'...
Fedor Baart, modified 8 Years ago.

RE: make error (gfortran: unrecognized option '-cpp')

Padawan Posts: 44 Join Date: 3/2/11 Recent Posts
Cezar BALANESCU:

[EDIT]: Indeed my gnu fortran version is quite old: GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)

Should I try to use Mandriva? It has the most recent versions of 'Developement Tools'...


You need a new gfortran compiler, at least 4.5, or at least that is what I test with. You can either install a new compiler (for example by building it from source) or upgrade your distribution.
Formally we only support the latest redhat, but a lot of people use ubuntu on the forum.

I have no Mandriva experience.

Cheers,

Fedor
U
Cezar BALANESCU, modified 8 Years ago.

RE: make error (gfortran: unrecognized option '-cpp')

Thank you for your advice!

I will upgrade my distribition although, I saw that even for CentOS 6, the gfortran is still at an old version (in the official repository) and I couldn't find another repo with higher version. Compiling gcc is a difficult task (you must know what to do) so I am trying to avoid this step.

Best regards,
Cezar