Skip to content

Commit e5d8cc9

Browse files
author
Martin D. Weinberg
committed
initialize() must come before non-root nodes return for correct parameter tag parsing
1 parent cb6c7c1 commit e5d8cc9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/OutDiag.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ OutDiag::valid_keys = {
2222

2323
OutDiag::OutDiag(const YAML::Node& conf) : Output(conf)
2424
{
25+
initialize();
26+
2527
if (myid) return;
2628
// Defaults
2729
RMIN = 1.0e-3;
@@ -43,8 +45,6 @@ OutDiag::OutDiag(const YAML::Node& conf) : Output(conf)
4345
names.push_back("d(Pot)/dr)");
4446
names.push_back("d(Pot)/d cos(theta)");
4547
names.push_back("d(Pot)/d phi");
46-
47-
initialize();
4848
}
4949

5050
void OutDiag::initialize()

0 commit comments

Comments
 (0)