Skip to content

Commit

Permalink
Fix yaml errors with std::array on NREL's peregrine system
Browse files Browse the repository at this point in the history
  • Loading branch information
sayerhs committed Aug 31, 2017
1 parent f2be1e2 commit 9ec9710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mesh/HexBlockMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void HexBlockMesh::load(const YAML::Node& node)
throw std::runtime_error("HexBlockMesh: Inconsistent coordinates provided");
}

meshDims_ = node["mesh_dimensions"].as<std::array<int, 3>>();
meshDims_ = node["mesh_dimensions"].as<std::vector<int>>();
}

void HexBlockMesh::initialize()
Expand Down
2 changes: 1 addition & 1 deletion src/mesh/HexBlockMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class HexBlockMesh
std::vector<std::vector<double>> vertices_;

//! Mesh dimensions in each direction
std::array<int, 3> meshDims_;
std::vector<int> meshDims_;

//! Stretch factor
std::array<double, 3> stretchFactor{{1.0, 1.0, 1.0}};
Expand Down

0 comments on commit 9ec9710

Please sign in to comment.