mirror of https://github.com/ecmwf/eccodes.git
Testing: Variables like constants and transients
This commit is contained in:
parent
7b36814d11
commit
adc912850b
|
@ -126,6 +126,12 @@ grib_accessor_class* grib_accessor_class_variable = &_grib_accessor_class_variab
|
||||||
|
|
||||||
/* END_CLASS_IMP */
|
/* END_CLASS_IMP */
|
||||||
|
|
||||||
|
//
|
||||||
|
// This accessor is used for:
|
||||||
|
// constant
|
||||||
|
// transient
|
||||||
|
//
|
||||||
|
|
||||||
#define MAX_VARIABLE_STRING_LENGTH 255
|
#define MAX_VARIABLE_STRING_LENGTH 255
|
||||||
|
|
||||||
static void init(grib_accessor* a, const long length, grib_arguments* args)
|
static void init(grib_accessor* a, const long length, grib_arguments* args)
|
||||||
|
|
|
@ -68,6 +68,9 @@ diff $tempRef $tempLog
|
||||||
sample_spectral=$ECCODES_SAMPLES_PATH/sh_ml_grib2.tmpl
|
sample_spectral=$ECCODES_SAMPLES_PATH/sh_ml_grib2.tmpl
|
||||||
${test_dir}/codes_compare_keys $sample_spectral $sample_spectral enorm,avg
|
${test_dir}/codes_compare_keys $sample_spectral $sample_spectral enorm,avg
|
||||||
|
|
||||||
|
# Do some constant and transient keys
|
||||||
|
${test_dir}/codes_compare_keys $sample_spectral $sample_spectral marsDir,truncateLaplacian
|
||||||
|
|
||||||
|
|
||||||
# Local definitions
|
# Local definitions
|
||||||
# ----------------------
|
# ----------------------
|
||||||
|
@ -82,6 +85,7 @@ status=$?
|
||||||
set -e
|
set -e
|
||||||
[ $status -ne 0 ]
|
[ $status -ne 0 ]
|
||||||
grep -q "2 differences" $tempLog
|
grep -q "2 differences" $tempLog
|
||||||
|
|
||||||
rm -f $tempGribA $tempGribB
|
rm -f $tempGribA $tempGribB
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ $EXEC ${test_dir}/codes_get_string GRIB $tempGrib dayOfTheYearDate # 2> $tempTex
|
||||||
|
|
||||||
|
|
||||||
input=$data_dir/reduced_latlon_surface.grib2
|
input=$data_dir/reduced_latlon_surface.grib2
|
||||||
keys="identifier projString bitmap class year gridDefinitionDescription
|
keys="hundred identifier projString bitmap class year gridDefinitionDescription
|
||||||
time validityTime packingType md5Headers parameterUnits"
|
time validityTime packingType md5Headers parameterUnits"
|
||||||
for k in $keys; do
|
for k in $keys; do
|
||||||
$EXEC ${test_dir}/codes_get_string GRIB $input $k 2> $tempText
|
$EXEC ${test_dir}/codes_get_string GRIB $input $k 2> $tempText
|
||||||
|
|
Loading…
Reference in New Issue