Project

General

Profile

How to configure & build DWD ICON Tools for remapping ICON Initial & Boundary conditions?

Added by Fabian Senf almost 2 years ago

Since commit https://gitlab.dkrz.de/dwd-sw/dwd_icon_tools/-/commit/c55e2f0aa6f0012242b5891829969962d095a6e8, the dwd_icon_tools repository contains configuration adjusted for DKRZ levante. To install DWD ICON Tools, do the following steps:

1. download :

git clone git@gitlab.dkrz.de:dwd-sw/dwd_icon_tools.git
cd dwd_icon_tools
git submodule update --init --recursive

2. configure & build:

./do_configure.sh
make -j8

3. execute: Don' forget to input ulimit -s unlimited before you run e.g. remap with a prepare namelist such as

${icontools_remap} --remap_nml ${SCRATCH}/tmp.nml 2>&1 

Replies (4)

RE: How to configure & build DWD ICON Tools for remapping ICON Initial & Boundary conditions? - Added by Fabian Senf almost 2 years ago

UPDATE: to avoid inconsistencies between different library versions (or in case of compilation errors) do:

module purge

between configuration & build (mentioned in the 2nd step above)

RE: How to configure & build DWD ICON Tools for remapping ICON Initial & Boundary conditions? - Added by Tatiana Klimiuk almost 2 years ago

I followed these steps exactly, with 'module purge' between configuring and building, but I get the error "linker input file not found: No such file or directory". Does anyone know what I can do? Thank you in advance!
Below it the full error message:

g++: error: /sw/spack-levante/udunits-2.2.28-da6pla/include:/sw/spack-levante/expat-2.4.1-rbyots/include:/sw/spack-levante/netcdf-c-4.8.1-qk24yp/include:/sw/spack-levante/hdf5-1.12.1-akf2kp/include:/sw/spack-levante/hdf-4.2.15-rrxcaq/include:/sw/spack-levante/libtirpc-1.2.6-fgfhcx/include:/sw/spack-levante/krb5-1.19.2-xxaifx/include:/sw/spack-levante/libaec-1.0.5-r5sdw5/include:/sw/spack-levante/libxaw-1.0.13-gbiur2/include:/sw/spack-levante/libxmu-1.1.2-4spgxo/include:/sw/spack-levante/libxt-1.1.5-vhamew/include:/sw/spack-levante/libsm-1.2.3-q4qkow/include:/sw/spack-levante/libice-1.0.9-2v7j4q/include:/sw/spack-levante/libxext-1.3.3-o4dpxe/include:/sw/spack-levante/libx11-1.7.0-ozce5g/include:/sw/spack-levante/xtrans-1.3.5-va4jfa/include:/sw/spack-levante/xextproto-7.3.0-e3hcfo/include:/sw/spack-levante/libxcb-1.14-5nuqm3/include:/sw/spack-levante/libxdmcp-1.1.2-hfb24q/include:/sw/spack-levante/libbsd-0.11.3-jidebk/include:/sw/spack-levante/libmd-1.0.3-bsylsc/include:/sw/spack-levante/libxau-1.0.8-za2e6x/include:/sw/spack-levante/xproto-7.0.31-yod7sx/include:/sw/spack-levante/kbproto-1.0.7-xfaxcb/include:/sw/spack-levante/inputproto-2.3.2-edlw6i/include:/sw/spack-levante/libpng-1.6.37-qb45l2/include:/sw/spack-levante/mesa-21.3.1-h2rluc/include:/sw/spack-levante/libxrandr-1.5.0-l67hii/include:/sw/spack-levante/randrproto-1.5.0-rzoqwl/include:/sw/spack-levante/libxrender-0.9.10-6af4cy/include:/sw/spack-levante/renderproto-0.11.1-gl4h7r/include:/sw/spack-levante/llvm-12.0.1-66ouda/include:/sw/spack-levante/pcre-8.44-paphqj/include:/sw/spack-levante/libedit-3.1-20210216-e3b545/include:/sw/spack-levante/hwloc-2.6.0-5bdqet/include:/sw/spack-levante/ncurses-6.2-rif25b/include:/sw/spack-levante/libpciaccess-0.16-5wghdl/include:/sw/spack-levante/libxt-1.1.5-vhamew/include:/sw/spack-levante/libsm-1.2.3-q4qkow/include:/sw/spack-levante/libice-1.0.9-2v7j4q/include:/sw/spack-levante/libxext-1.3.3-o4dpxe/include:/sw/spack-levante/libx11-1.7.0-ozce5g/include:/sw/spack-levante/xtrans-1.3.5-va4jfa/include:/sw/spack-levante/xextproto-7.3.0-e3hcfo/include:/sw/spack-levante/libxcb-1.14-5nuqm3/include:/sw/spack-levante/libxdmcp-1.1.2-hfb24q/include:/sw/spack-levante/libxau-1.0.8-za2e6x/include:/sw/spack-levante/xproto-7.0.31-yod7sx/include:/sw/spack-levante/kbproto-1.0.7-xfaxcb/include:/sw/spack-levante/inputproto-2.3.2-edlw6i/include:/sw/spack-levante/libunwind-1.5.0-bkzi7q/include:/sw/spack-levante/glproto-1.4.17-yxrn3n/include:/sw/spack-levante/expat-2.4.1-rbyots/include:/sw/spack-levante/libbsd-0.11.3-jidebk/include:/sw/spack-levante/libmd-1.0.3-bsylsc/include: linker input file not found: No such file or directory

make2: * [Makefile:1071: mo_version.c] Error 1
make2:
Waiting for unfinished jobs....
libtool: compile: /sw/spack-levante/openmpi-4.1.2-mnmady/bin/mpif90 -I../../externals/libcdi/src -I../../externals/libcbasic/src -I../../externals/libftnbasic/src -I/sw/spack-levante/netcdf-fortran-4.5.3-jlxcfz/include -I/sw/spack-levante/netcdf-c-4.8.1-6qheqr/include -I/sw/spack-levante/hdf5-1.12.1-kxfaux/include -I/sw/spack-levante/eccodes-2.21.0-3ehkbb/include -I/sw/spack-levante/libaec-1.0.5-gij7yv/include -fopenmp -cpp -O2 -g -march=native -cpp -L/sw/spack-levante/netcdf-c-4.8.1-6qheqr/lib -I/sw/spack-levante/netcdf-c-4.8.1-6qheqr/include -L/sw/spack-levante/netcdf-c-4.8.1-6qheqr/lib -I/sw/spack-levante/netcdf-c-4.8.1-6qheqr/include -ffree-line-length-none -c libiconbase/mo_utilities.f90 -fPIC -o libiconbase/mo_utilities.o
libtool: compile: /sw/spack-levante/openmpi-4.1.2-mnmady/bin/mpif90 -I../../externals/libcdi/src -I../../externals/libcbasic/src -I../../externals/libftnbasic/src -I/sw/spack-levante/netcdf-fortran-4.5.3-jlxcfz/include -I/sw/spack-levante/netcdf-c-4.8.1-6qheqr/include -I/sw/spack-levante/hdf5-1.12.1-kxfaux/include -I/sw/spack-levante/eccodes-2.21.0-3ehkbb/include -I/sw/spack-levante/libaec-1.0.5-gij7yv/include -fopenmp -cpp -O2 -g -march=native -cpp -L/sw/spack-levante/netcdf-c-4.8.1-6qheqr/lib -I/sw/spack-levante/netcdf-c-4.8.1-6qheqr/include -L/sw/spack-levante/netcdf-c-4.8.1-6qheqr/lib -I/sw/spack-levante/netcdf-c-4.8.1-6qheqr/include -ffree-line-length-none -c libiconremap/mo_rbfqr_util.f90 -fPIC -o libiconremap/mo_rbfqr_util.o
libtool: compile: /sw/spack-levante/openmpi-4.1.2-mnmady/bin/mpif90 -I../../externals/libcdi/src -I../../externals/libcbasic/src -I../../externals/libftnbasic/src -I/sw/spack-levante/netcdf-fortran-4.5.3-jlxcfz/include -I/sw/spack-levante/netcdf-c-4.8.1-6qheqr/include -I/sw/spack-levante/hdf5-1.12.1-kxfaux/include -I/sw/spack-levante/eccodes-2.21.0-3ehkbb/include -I/sw/spack-levante/libaec-1.0.5-gij7yv/include -fopenmp -cpp -O2 -g -march=native -cpp -L/sw/spack-levante/netcdf-c-4.8.1-6qheqr/lib -I/sw/spack-levante/netcdf-c-4.8.1-6qheqr/include -L/sw/spack-levante/netcdf-c-4.8.1-6qheqr/lib -I/sw/spack-levante/netcdf-c-4.8.1-6qheqr/include -ffree-line-length-none -c libiconbase/mo_util_sort.f90 -fPIC -o libiconbase/mo_util_sort.o
make2: Leaving directory '/home/b/b381869/icon/dwd_icon_tools/libicontools/src'
make1:
[Makefile:404: all-recursive] Error 1
make1: Leaving directory '/home/b/b381869/icon/dwd_icon_tools/libicontools'
make: *
[Makefile:402: all-recursive] Error 1

RE: How to configure & build DWD ICON Tools for remapping ICON Initial & Boundary conditions? - Added by Mega Octaviani almost 2 years ago

For a quick fix, do the following before compiling:

$ export TMP=`echo $INCLUDE | tr ':' ' '  | xargs -n 1 | awk '{print "-I" $0}' | xargs`
$ unset $INCLUDE
$ export INCLUDE=$TMP

RE: How to configure & build DWD ICON Tools for remapping ICON Initial & Boundary conditions? - Added by Jeremy Kraft 5 months ago

Hello,

I have followed the steps to download and configure the icon tools.
However the build crashes with this error message:

g++ /sw/spack-levante/netcdf-c-4.8.1-vbnli5/include:/sw/spack-levante/emacs-27.2-mmllgr/include -c version.c -o version.o
g++: error: /sw/spack-levante/netcdf-c-4.8.1-vbnli5/include:/sw/spack-levante/emacs-27.2-mmllgr/include: No such file or directory
make2: *** [Makefile:1084: mo_version.c] Error 1

Do you know how to solve it?

Both libraries are found:

[Mon Nov 27 16:24:31] *@levante2:/work/*/****/icon_tools/dwd_icon_tools (master)
$ ll /sw/spack-levante/netcdf-c-4.8.1-vbnli5/include
total 124K
rw-r--r-. 1 k202066 software 1.6K Jun 28 2022 netcdf_par.h
rw-r--r-. 1 k202066 software 2.6K Jun 28 2022 netcdf_meta.h
rw-r--r-. 1 k202066 software 1.4K Jun 28 2022 netcdf_mem.h
rw-r--r-. 1 k202066 software 68K Jun 28 2022 netcdf.h
rw-r--r-. 1 k202066 software 2.3K Jun 28 2022 netcdf_filter.h
rw-r--r-. 1 k202066 software 9.0K Jun 28 2022 netcdf_filter_build.h
rw-r--r-. 1 k202066 software 13K Jun 28 2022 netcdf_dispatch.h
rw-r--r-. 1 k202066 software 2.7K Jun 28 2022 netcdf_aux.h
drwxr-sr-x. 7 k202066 software 4.0K Jun 28 2022 ..
drwxr-sr-x. 2 k202066 software 4.0K Jun 28 2022 .

[Mon Nov 27 17:10:54] *@levante2:/work/*/****/icon_tools/dwd_icon_tools (master)
$ ll /sw/spack-levante/emacs-27.2-mmllgr/include
total 28K
rw-r--r-. 1 k202066 software 18K Apr 1 2022 emacs-module.h
drwxr-sr-x. 2 k202066 software 4.0K Apr 1 2022 .
drwxr-sr-x. 8 k202066 software 4.0K Apr 1 2022 ..

Thanks in advance.

    (1-4/4)