Skip to content

Commit 618ac13

Browse files
committed
METK-161 added optional parameter to ParamID::normalise to request strict behavior
1 parent 250f0da commit 618ac13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/metkit/mars/ParamID.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ParamID {
5353

5454
template <typename REQUEST_T, typename AXIS_T>
5555
static void normalise(const REQUEST_T& r, std::vector<Param>& req, const AXIS_T& axis, bool& windConversion,
56-
bool fullTableDropping = ParamID::fullTableDropping());
56+
bool fullTableDropping = ParamID::fullTableDropping(), bool useParamId = false);
5757

5858
static const std::vector<WindFamily>& getWindFamilies();
5959
static const std::vector<size_t>& getDropTables();
@@ -69,14 +69,14 @@ inline long replaceTable(size_t table, long paramid) {
6969

7070
template <typename REQUEST_T, typename AXIS_T>
7171
void ParamID::normalise(const REQUEST_T& request, std::vector<Param>& req, const AXIS_T& axis, bool& windConversion,
72-
bool fullTableDropping) {
72+
bool fullTableDropping, bool useParamId) {
7373

7474
static const bool useGRIBParamID = eckit::Resource<bool>("useGRIBParamID", false);
7575

7676
const std::vector<WindFamily>& windFamilies(getWindFamilies());
7777

7878

79-
if (useGRIBParamID) {
79+
if (useGRIBParamID || useParamId) {
8080

8181

8282
std::set<Param> inAxis;

0 commit comments

Comments
 (0)