Installing delft3d on Turbine 1. Check prerequisites exist - gFortran (GNU compiler) - g++ (C++ compiler) - mpich2 - NetCDF 3.4 2 Use script build_new.sh to build delft3d executables and libraries ./build_new.sh Note: This is a modified version of build.sh, with some settings modified for the local environment on Turbine. All modifications have been labelled with the string 'JMW'. Summary of changes: a) directories to mpich2 redefined b) directories to Libtools, etc removed - already on path c) Fortran compiler option -fno-align-commons added to FCFLAGS. This forces common variables to fall on byte boundaries. d) NETCDF include path added to fortran compiler options, via fflags variable (** not needed if option e is included) e) NETCDF_MODULES environment paramater defined to point to the include directory under the NETCDF root direction 3. Other modifications made: a) In ./src/utils_lgpl/ec_module/packages/ec_module/src/Makefile.am #Includes FMODULES += \ -I$(top_builddir)/utils_lgpl/deltares_common/packages/deltares_common/src Modfiied as follows to include the directory containing the netcdf module file, netcdf.mod, i.e.: #Includes FMODULES += \ -I$(top_builddir)/utils_lgpl/deltares_common/packages/deltares_common/src \ -I$(NETCDF_MODULES) b) In /home/walshjm/delft3d/SourceCode/turbine/src/utils_lgpl/ec_module/packages/ec_module/src/ Code changes were made in ec_support.f90 ec_bcreader.f90 ec_instance.f90 ec_provider.f90 Change char(len=:), allocatable -> non allocatable character arrays (since the former will not compile under gFortran Changes are commented with JMW tag c} /home/walshjm/delft3d/SourceCode/turbine/src/engines_gpl/part/packages/delpar/src/main.f Source code change in main.f: 'stop(1)' changed to 'stop' (3x) Installing NetCDF In the NetCDF source directory execute the following commands ./configure --prefix=/outdir where outdir is a path to the output director e.g. /home/walshjm/netcdf make check make install