1) Modules to load and how to use it:
=====================================
module load intel/12.1.8.273 openmpi/1.4.3
module load nco
LD_PRELOAD=./client/libclient.so ncks -v eta_t,x_T,y_T -c ncrcat_ocean_mean_test.nc eta_mean_test.nc
export LD_LIBRARY_PATH=/g/sc/home/joergh/projects/alio/tools:$LD_LIBRARY_PATH
#Short
ncks -d Time,0,0 -v eta_t -c ncrcat_ocean_mean_test.nc eta_mean_test.nc
2) Debugging with gdb
=====================
gdb /apps/nco/4.1.0/bin/ncks
set environment LD_PRELOAD=./bld/client/libclient.so
run -v eta_t,x_T,y_T -c ncrcat_ocean_mean_test.nc eta.nc
3) Debugging with ddt
=====================
export LOADMODULE="LD_PRELOAD=libclient.so:\$LD_PRELOAD LD_LIBRARY_PATH=.:\$LD_LIBRARY_PATH /apps/ddt/3.1/bin/ddt-client a.out"
or add similar lines in a script, then run the script using:
mpirun ... script