Commit eea38794 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

implementation of gridDestroy

parent f3251334
2010-02-25 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* implementation of gridDestroy
2010-02-22 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* Version 1.4.3 released
......
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for cdi 1.4.3.
# Generated by GNU Autoconf 2.61 for cdi 1.4.3.1.
#
# Report bugs to <Uwe.Schulzweida@zmaw.de>.
#
......@@ -574,8 +574,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='cdi'
PACKAGE_TARNAME='cdi'
PACKAGE_VERSION='1.4.3'
PACKAGE_STRING='cdi 1.4.3'
PACKAGE_VERSION='1.4.3.1'
PACKAGE_STRING='cdi 1.4.3.1'
PACKAGE_BUGREPORT='Uwe.Schulzweida@zmaw.de'
# Factoring default headers for most tests.
......@@ -1258,7 +1258,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures cdi 1.4.3 to adapt to many kinds of systems.
\`configure' configures cdi 1.4.3.1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
......@@ -1329,7 +1329,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of cdi 1.4.3:";;
short | recursive ) echo "Configuration of cdi 1.4.3.1:";;
esac
cat <<\_ACEOF
......@@ -1463,7 +1463,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
cdi configure 1.4.3
cdi configure 1.4.3.1
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
......@@ -1477,7 +1477,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cdi $as_me 1.4.3, which was
It was created by cdi $as_me 1.4.3.1, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
......@@ -2304,7 +2304,7 @@ fi
# Define the identity of the package.
PACKAGE='cdi'
VERSION='1.4.3'
VERSION='1.4.3.1'
cat >>confdefs.h <<_ACEOF
......@@ -9032,7 +9032,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by cdi $as_me 1.4.3, which was
This file was extended by cdi $as_me 1.4.3.1, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
......@@ -9085,7 +9085,7 @@ Report bugs to <bug-autoconf@gnu.org>."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
cdi config.status 1.4.3
cdi config.status 1.4.3.1
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
......
# Process this file with autoconf to produce a configure script.
AC_INIT(cdi, 1.4.3, Uwe.Schulzweida@zmaw.de)
AC_INIT(cdi, 1.4.3.1, Uwe.Schulzweida@zmaw.de)
echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}"
......
......@@ -622,6 +622,22 @@ int gridCreate(int gridtype, int size)
*/
void gridDestroy(int gridID)
{
static char *func = "gridDestroy";
grid_t *gridptr;
gridptr = grid_to_pointer(gridID);
grid_check_ptr(func, gridptr);
if ( gridptr->mask ) free(gridptr->mask);
if ( gridptr->xvals ) free(gridptr->xvals);
if ( gridptr->yvals ) free(gridptr->yvals);
if ( gridptr->area ) free(gridptr->area);
if ( gridptr->xbounds ) free(gridptr->xbounds);
if ( gridptr->ybounds ) free(gridptr->ybounds);
if ( gridptr->rowlon ) free(gridptr->rowlon);
grid_delete_entry(gridptr);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment