compiling code (4.00.06.0834) under Suse 11.3. - D-Flow Flexible Mesh - Delft3D
intro story D-Flow FM
D-Flow Flexible MeshD-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:
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!
======================================================= | Sub groups
|
Message Boards
compiling code (4.00.06.0834) under Suse 11.3.
HT
Hemerson Tonin, modified 9 Years ago.
compiling code (4.00.06.0834) under Suse 11.3.
Youngling Posts: 12 Join Date: 3/29/11 Recent Posts 00
I've tried to compile the code (4.00.06.0834) under Suse 11.3.
After much reading and I decided to search the forum for help.
I'm posting just the final part of the message that appears on the screen, since before this, the compiling looks like smooth:
Your help will be appreciated
Hemer
make[7]: Entering directory `/home/hemer/delft3d/engines_gpl/flow2d3d/packages/data/src/basics'
/bin/sh ../../../../../../libtool --tag=FC --mode=compile gfortran -I../../../../../../engines_gpl/flow2d3d/packages/data/include -I../../../../../../utils_lgpl/precision/packages/precision/src -I../../../../../../utils_lgpl/delftio/packages/delftio/src/diof90 -I../../../../../../utils_lgpl/inifiles/packages/inifiles/src -I../../../../../../utils_lgpl/utils_flow/packages/utils_flow/src -I../../../../../../utils_lgpl/ec_module/packages/ec_module/src -O2 -g -O2 -fopenmp -ffree-line-length-none -c -o bedcomposition_module.lo bedcomposition_module.f90
libtool: compile: gfortran -I../../../../../../engines_gpl/flow2d3d/packages/data/include -I../../../../../../utils_lgpl/precision/packages/precision/src -I../../../../../../utils_lgpl/delftio/packages/delftio/src/diof90 -I../../../../../../utils_lgpl/inifiles/packages/inifiles/src -I../../../../../../utils_lgpl/utils_flow/packages/utils_flow/src -I../../../../../../utils_lgpl/ec_module/packages/ec_module/src -O2 -g -O2 -fopenmp -ffree-line-length-none -c bedcomposition_module.f90 -fPIC -o .libs/bedcomposition_module.o
bedcomposition_module.f90:39.13:
use precision
1
Fatal Error: Can't open module file 'precision.mod' for reading at (1): No such file or directory
make[7]: *** [bedcomposition_module.lo] Error 1
make[7]: Leaving directory `/home/hemer/delft3d/engines_gpl/flow2d3d/packages/data/src/basics'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/home/hemer/delft3d/engines_gpl/flow2d3d/packages/data/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/hemer/delft3d/engines_gpl/flow2d3d/packages/data'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/hemer/delft3d/engines_gpl/flow2d3d/packages'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/hemer/delft3d/engines_gpl/flow2d3d'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hemer/delft3d/engines_gpl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hemer/delft3d'
make: *** [all] Error 2
After much reading and I decided to search the forum for help.
I'm posting just the final part of the message that appears on the screen, since before this, the compiling looks like smooth:
Your help will be appreciated
Hemer
make[7]: Entering directory `/home/hemer/delft3d/engines_gpl/flow2d3d/packages/data/src/basics'
/bin/sh ../../../../../../libtool --tag=FC --mode=compile gfortran -I../../../../../../engines_gpl/flow2d3d/packages/data/include -I../../../../../../utils_lgpl/precision/packages/precision/src -I../../../../../../utils_lgpl/delftio/packages/delftio/src/diof90 -I../../../../../../utils_lgpl/inifiles/packages/inifiles/src -I../../../../../../utils_lgpl/utils_flow/packages/utils_flow/src -I../../../../../../utils_lgpl/ec_module/packages/ec_module/src -O2 -g -O2 -fopenmp -ffree-line-length-none -c -o bedcomposition_module.lo bedcomposition_module.f90
libtool: compile: gfortran -I../../../../../../engines_gpl/flow2d3d/packages/data/include -I../../../../../../utils_lgpl/precision/packages/precision/src -I../../../../../../utils_lgpl/delftio/packages/delftio/src/diof90 -I../../../../../../utils_lgpl/inifiles/packages/inifiles/src -I../../../../../../utils_lgpl/utils_flow/packages/utils_flow/src -I../../../../../../utils_lgpl/ec_module/packages/ec_module/src -O2 -g -O2 -fopenmp -ffree-line-length-none -c bedcomposition_module.f90 -fPIC -o .libs/bedcomposition_module.o
bedcomposition_module.f90:39.13:
use precision
1
Fatal Error: Can't open module file 'precision.mod' for reading at (1): No such file or directory
make[7]: *** [bedcomposition_module.lo] Error 1
make[7]: Leaving directory `/home/hemer/delft3d/engines_gpl/flow2d3d/packages/data/src/basics'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/home/hemer/delft3d/engines_gpl/flow2d3d/packages/data/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/hemer/delft3d/engines_gpl/flow2d3d/packages/data'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/hemer/delft3d/engines_gpl/flow2d3d/packages'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/hemer/delft3d/engines_gpl/flow2d3d'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hemer/delft3d/engines_gpl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hemer/delft3d'
make: *** [all] Error 2
Bert Jagers, modified 9 Years ago.
RE: compiling code (4.00.06.0834) under Suse 11.3. (Answer)
Jedi Knight Posts: 201 Join Date: 12/22/10 Recent Posts 00
Hello Hemer,
The error
indicates that it cannot locate the precision.mod file. The precision.f90 file should be located in
/home/hemer/delft3d/utils_lgpl/precision/packages/precision/src
and it should have been processed and compiled before the make environment starts working on the bedcomposition_module. This compilation process should also have created the precision.mod file for which gfortran is searching in the folder mentioned above (see the include argument -I../../../../../../utils_lgpl/precision/packages/precision/src).
Please check whether the precision.mod file is located in that folder. By default the environment compiles the files in the source folder, but I notice that the bedcomposition_module seems to build to an object file in a subfolder '.libs'. So, if the precision.mod file is not located in the default folder mentioned above, it might also be in a subfolder '.libs'. Can you confirm whether that is the case?
I assume that you have either changed the build configuration (did you?), or there is something on your system that makes the environment behave differently. I notice that you're using gfortran rather than the intel fortran that we are using ourselves, but I don't know whether that can automatically trigger files to be located in other folders. Furthermore, note that .mod files are compiler dependent; that might be another reason why a compiler indicates that it cannot locate a (valid) .mod file. That's about all I know of the Linux make environment; I expect that someone else will be able to help you further once you have located the precision.mod file.
Bert
The error
Fatal Error: Can't open module file 'precision.mod' for reading at (1): No such file or directory
indicates that it cannot locate the precision.mod file. The precision.f90 file should be located in
/home/hemer/delft3d/utils_lgpl/precision/packages/precision/src
and it should have been processed and compiled before the make environment starts working on the bedcomposition_module. This compilation process should also have created the precision.mod file for which gfortran is searching in the folder mentioned above (see the include argument -I../../../../../../utils_lgpl/precision/packages/precision/src).
Please check whether the precision.mod file is located in that folder. By default the environment compiles the files in the source folder, but I notice that the bedcomposition_module seems to build to an object file in a subfolder '.libs'. So, if the precision.mod file is not located in the default folder mentioned above, it might also be in a subfolder '.libs'. Can you confirm whether that is the case?
I assume that you have either changed the build configuration (did you?), or there is something on your system that makes the environment behave differently. I notice that you're using gfortran rather than the intel fortran that we are using ourselves, but I don't know whether that can automatically trigger files to be located in other folders. Furthermore, note that .mod files are compiler dependent; that might be another reason why a compiler indicates that it cannot locate a (valid) .mod file. That's about all I know of the Linux make environment; I expect that someone else will be able to help you further once you have located the precision.mod file.
Bert
KS
Kai Sdeo, modified 3 Years ago.
RE: compiling code (4.00.06.0834) under Suse 11.3.
Youngling Posts: 1 Join Date: 8/22/17 Recent Posts 00
Hemerson Tonin:
Fatal Error: Can't open module file 'precision.mod' for reading at (1): No such file or directory
make: *** [all] Error 2
I got the same/similar message (for later tags the error was "Fatal Error: Can't open module file 'precision_basics.mod' ") when I executed "make -j 8", so compiling with multiple threads. This problem disappeared by using the line "make ds-install".
Adri Mourits, modified 3 Years ago.
RE: compiling code (4.00.06.0834) under Suse 11.3. (Answer)
Yoda Posts: 1221 Join Date: 1/3/11 Recent Posts 00
Hi Kai,
The compilation of Delft3D is not prepared for parallel computation. So skip the "-j 8".
Regards,
Adri
The compilation of Delft3D is not prepared for parallel computation. So skip the "-j 8".
Regards,
Adri