Message Boards

RE: Compilers, so many compilers, so little compilation

Lachlan Simpson, modified 4 Years ago.

Compilers, so many compilers, so little compilation

Youngling Posts: 4 Join Date: 6/18/19 Recent Posts

I'm really struggling with the build. I've managed to have it not work at all on Windows 10 w VS2017 and Intel 2019, 2018, and VS2015 and Intel 2019. Currently trying the VS2015 and Intel 2017 method, although the compilation seems to have ground to a halt - it seems to have stopped at about 90%.

 

So in an effort to get this rolling, I turned to Ubuntu, my Linux is a lot stronger than my Windows.

 

The installation instructions mention:

NetCDF: netcdf-c-4.6.1 or above, netcdf-fortran-4.4.5 or above, with hdf5 enabled
IMPORTANT: Use exactly the same C++ and Fortran compiler to build NetCDF and Delft3D. Please check in case of using a precompiled distribution.

 

But it's not clear to me what you mean by "Use exactly the same C++ and Fortran compiler to build NetCDF and Delft3D."

 

I *think* what you are saying is something like:

- netcdf-c-4.6.1 and netcdf-fortran-4.4.5  are basically the same software, but one is compiled in fortran and one in c

- whichever you pick, then compile the source with one of c or fortran.

 

But it's not strictly clear that this *is* what you mean. Can I get clarification please?

 

The language around "using the same vendor" is made in two other places, with regard to GNU Fortran compiler - which seems to be asking us to use an incredibly old version *or* the not most recent version (plus a list of complex recompilations) and with regard to Mpich. Again not 100% clear what is meant here either - I have assumed what it means, but I'm not 100% clear and with the difficulties I've experienced so far, I thought it was time to reach out and ask.

 

 

Lachlan Simpson, modified 4 Years ago.

RE: Compilers, so many compilers, so little compilation

Youngling Posts: 4 Join Date: 6/18/19 Recent Posts

I should mention that I'm using https://svn.oss.deltares.nl/repos/delft3d/tags/delft3d4/62441/ as my source. It's been a long time since I've used svn in practice, and it's not clear to me that this is the correct tag to be using.

 

It's also not clear to me that I'm even in the correct tree - I was asked for "Delft3D" but that seems to be 3-5 different products?

thumbnail
Adri Mourits, modified 4 Years ago.

RE: Compilers, so many compilers, so little compilation

Jedi Master Posts: 303 Join Date: 1/3/11 Recent Posts

Hi Lachlan,

Please use the latest tagged version, currently: https://svn.oss.deltares.nl/repos/delft3d/tags/delft3dfm/64173/

Compiling on Windows is much easier than on Linux, as long as you have a good look at this page: https://oss.deltares.nl/web/delft3d/source-code

With "use the same compiler" is meant: If you use Intel Fortran 18.0 for compiling Delft3D, you should also use the Intel Fortran 18.0 and the Intel C 18.0 compiler to built all the related libraries (netcdf, mpich, petsc).

Regards,

Adri

Lachlan Simpson, modified 4 Years ago.

RE: Compilers, so many compilers, so little compilation

Youngling Posts: 4 Join Date: 6/18/19 Recent Posts

Thanks Adri, I'll try the repo you have suggested - I don't know how I got that so wrong. Then I'll compile with the system I have in place and work from there.

 

Lachlan Simpson, modified 4 Years ago.

RE: Compilers, so many compilers, so little compilation

Youngling Posts: 4 Join Date: 6/18/19 Recent Posts

That worked - thank you. There's a collection of directories in src/bin/x64, although nothing stands out as the software shown on the site?