#! /bin/sh # # Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana # University Research and Technology # Corporation. All rights reserved. # Copyright (c) 2004-2006 The Regents of the University of California. # All rights reserved. # Copyright (c) 2006-2007 Cisco Systems, Inc. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow # # $HEADER$ # # Do a little error checking if test ! -f "$1/fortran_kinds.sh"; then echo "ERROR: Cannot find fortran_kinds.sh" >&2 exit 1 elif test -z "$1/fortran_kinds.sh"; then echo "ERROR: fortran_kinds.sh appears to be empty!" >&2 exit 1 fi # Read in the KIND information . "$1/fortran_kinds.sh" # Setup output=1 allranks="0 $ranks" #------------------------------------------------------------------------ # Helper functions start() { check_size $2 if test "$output" = "1"; then echo "interface $1" fi } end() { if test "$output" = "1"; then cat <