Skip to content

Commit 8261ff8

Browse files
author
Martin D. Weinberg
committed
Remove OutVel specific keys from YAML config before forwarding the VelocityBasis constructor
1 parent b2e8b79 commit 8261ff8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/OutVel.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ OutVel::OutVel(const YAML::Node& conf) : Output(conf)
6565
YAML::Node node;
6666
node["parameters"] = conf;
6767

68+
// Remove OutVel only keys
69+
//
70+
for (auto s : {"nint", "nintsub", "name"}) {
71+
if (node["parameters"][s]) node["parameters"].remove(s);
72+
}
73+
6874
basis = std::make_shared<BasisClasses::VelocityBasis>(node);
6975

7076
// Create the coefficient container based on the dimensionality.

0 commit comments

Comments
 (0)