Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
Add Array<int> to GetDimensions
  • Loading branch information
bendudson committed Nov 18, 2024
1 parent 5ca9f35 commit 6fcea44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sys/options.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,7 @@ struct GetDimensions {
std::vector<int> operator()([[maybe_unused]] BoutReal value) { return {1}; }
std::vector<int> operator()([[maybe_unused]] const std::string& value) { return {1}; }
std::vector<int> operator()(const Array<BoutReal>& array) { return {array.size()}; }
std::vector<int> operator()(const Array<int>& array) { return {array.size()}; }
std::vector<int> operator()(const Matrix<BoutReal>& array) {
const auto shape = array.shape();
return {std::get<0>(shape), std::get<1>(shape)};
Expand Down

0 comments on commit 6fcea44

Please sign in to comment.