gridspec_api/grid/nccf_get_struct_grid_ndims.c

00001 /*
00002  * API to define a structured grid for the gridspec convention to libcf.
00003  *
00004  * $Id: nccf_get_struct_grid_ndims.c 508 2011-02-14 21:29:48Z dkindig $
00005  * */
00006 
00007 #include <stdio.h>
00008 #include <stdlib.h>
00009 
00010 #include "nccf_grid.h"
00011 #include <nccf_coord.h>
00012 #include <nccf_handle_error.h>
00013 #include <nccf_varObj.h>
00014 
00015 int nccf_get_struct_grid_ndims(const int gridid, 
00016                                            int *ndims ){
00017 
00018    struct nccf_struct_grid_type *self;
00019 
00020    self = nccf_li_find(&CFLIST_STRUCTURED_GRID, gridid);
00021 
00022    *ndims = self->ndims;
00023 
00024    return NC_NOERR;
00025 }
 All Classes Files Functions Defines

Generated on Tue Mar 1 2011 06:36:59 for libCF. LibCF is a Unidata library.