Testing: switch for doubles

This commit is contained in:
shahramn 2024-02-25 16:18:44 +00:00
parent 1a1b446626
commit f8e5800617
1 changed files with 6 additions and 2 deletions

View File

@ -206,11 +206,15 @@ ${tools_dir}/grib_filter $tempFilt $ECCODES_SAMPLES_PATH/GRIB1.tmpl $ECCODES_SAM
cat >$tempFilt <<EOF
switch (packingType) {
case "grid_simple": print "simple";
case "grid_ccsds": print "ccsds";
case "grid_simple": print "simple";
case "grid_ccsds": print "ccsds";
case "spectral_complex": print "spectral";
default: print "[file]: what is this?"; assert(0);
}
switch (referenceValue) {
case 42.0: print "42.0";
default: print "default case";
}
EOF
${tools_dir}/grib_filter $tempFilt $data_dir/sample.grib2 ${data_dir}/ccsds.grib2 $data_dir/spherical_model_level.grib2