#!/bin/sh
prog=$1
module load wgrib2/2.0.8_wmo

# $WGRIB2_LIB points to a *.a file
# $WGRIB2_INC points to a directory with the *.mod files
# library was compiled with openmp, so main routine needs openmp

lib=$WGRIB2_LIB
mod=$WGRIB2_INC
ifort -qopenmp -I$MOD $1 $lib
