Extend ref_tst_vlen_data.cdl to include Appel examples

This commit is contained in:
Dennis Heimbigner 2012-01-09 18:49:15 +00:00
parent 599f35d2e6
commit 079c3a771c
5 changed files with 94 additions and 2 deletions

View File

@ -88,6 +88,7 @@ ref_nc_test_netcdf4.cdl ref_tst_special_atts3.cdl tst_brecs.cdl \
ref_tst_grp_spec0.cdl ref_tst_grp_spec.cdl tst_grp_spec.sh \
ref_tst_charfill.cdl tst_charfill.cdl tst_charfill.sh
# Can't run ncgen to generate ctest.c and ctest64.c on cross-compiles.
BUILT_SOURCES = ctest.c ctest64.c
if EXTRA_TESTS

34
ncdump/appel.cdl Normal file
View File

@ -0,0 +1,34 @@
netcdf appel {
types:
int(*) vlen_int ;
compound singleCompoundType {
vlen_int vlenIntVector(2) ;
}; // singleCompoundType
compound pfCoilType {
vlen_int name ;
}; // pfCoilType
pfCoilType(*) vlen_t ;
vlen_int(*) vlen_int2 ;
compound singleCompoundType2 {
vlen_int2 vlenIntVector ;
}; // singleCompoundType2
dimensions:
vlenDim = 2 ;
variables:
vlen_int vdata ;
singleCompoundType singleCompound ;
vlen_t pfCircuits ;
singleCompoundType2 singleCompound2 ;
vlen_int vlenIntVector(vlenDim) ;
data:
vdata = {1, 2, 3} ;
singleCompound = {{{11}, {12}}} ;
pfCircuits = {{{1, 2, 3}}, {{2}}, {{3}}, {{4}}} ;
singleCompound2 = {{{11}, {12}}} ;
vlenIntVector = {1, 2, 3}, {1, 2, 3} ;
}

View File

@ -1,13 +1,41 @@
netcdf ref_tst_vlen_data {
netcdf ref_tst_vlen_data { // H/T to Lynton Appel for extra tests of vlen
types:
float(*) row_of_floats ;
int(*) vlen_int ;
compound singleCompoundType {
vlen_int vlenIntVector(2) ;
}; // singleCompoundType
compound pfCoilType {
vlen_int name ;
}; // pfCoilType
pfCoilType(*) vlen_t ;
vlen_int(*) vlen_int2 ;
compound singleCompoundType2 {
vlen_int2 vlenIntVector ;
}; // singleCompoundType2
dimensions:
m = 5 ;
vlenDim = 2 ;
variables:
row_of_floats ragged_array(m) ;
row_of_floats ragged_array:_FillValue = {-999} ;
vlen_int vdata ;
singleCompoundType singleCompound ;
vlen_t pfCircuits ;
singleCompoundType2 singleCompound2 ;
vlen_int vlenIntVector(vlenDim) ;
data:
ragged_array = {10, 11, 12, 13, 14}, {20, 21, 22, 23}, {30, 31, 32},
{40, 41}, _ ;
vdata = {1, 2, 3} ;
singleCompound = {{{11}, {12}}} ;
pfCircuits = {{{1, 2, 3}}, {{2}}, {{3}}, {{4}}} ;
singleCompound2 = {{{11}, {12}}} ;
vlenIntVector = {1, 2, 3}, {1, 2, 3} ;
}

View File

@ -1,13 +1,41 @@
netcdf ref_tst_vlen_data {
types:
float(*) row_of_floats ;
int(*) vlen_int ;
compound singleCompoundType {
vlen_int vlenIntVector(2) ;
}; // singleCompoundType
compound pfCoilType {
vlen_int name ;
}; // pfCoilType
pfCoilType(*) vlen_t ;
vlen_int(*) vlen_int2 ;
compound singleCompoundType2 {
vlen_int2 vlenIntVector ;
}; // singleCompoundType2
dimensions:
m = 5 ;
vlenDim = 2 ;
variables:
row_of_floats ragged_array(m) ;
row_of_floats ragged_array:_FillValue = {-999} ;
vlen_int vdata ;
singleCompoundType singleCompound ;
vlen_t pfCircuits ;
singleCompoundType2 singleCompound2 ;
vlen_int vlenIntVector(vlenDim) ;
data:
ragged_array = {10, 11, 12, 13, 14}, {20, 21, 22, 23}, {30, 31, 32},
{40, 41}, _ ;
vdata = {1, 2, 3} ;
singleCompound = {{{11}, {12}}} ;
pfCircuits = {{{1, 2, 3}}, {{2}}, {{3}}, {{4}}} ;
singleCompound2 = {{{11}, {12}}} ;
vlenIntVector = {1, 2, 3}, {1, 2, 3} ;
}

View File

@ -48,7 +48,8 @@ ref_ctest1_nc4 \
ref_ctest1_nc4c \
ref_nctst_netcdf4 \
ref_nctst_netcdf4_classic \
ref_tst_unlim2"
ref_tst_unlim2 \
"
if test "${CLASSIC}" = "1" ; then
TESTS3="${CLASSIC3}"