Skip to content

Commit

Permalink
Fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Nov 2, 2016
1 parent 71791ef commit 71ad4b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/plugins/hdf5/LaserSource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,12 @@ namespace hdf5 {
std::array<char, 2> axisLabels = openPMD::getAxisLabels<2>(reader);
if(tmpSwapAxis)
std::swap(axisLabels[0], axisLabels[1]);
if(axisLabels[0] != zAxisName[0] || axisLabels[1] == yAxisName[0])
if(axisLabels[0] != zAxisName[0] || axisLabels[1] != yAxisName[0])
{
throw std::runtime_error(std::string("Invalid axis labels: ") +
std::string(1, axisLabels[0]) + ", " + std::string(1, axisLabels[1]) +
" instead of " +
zAxisName + ", " + yAxisName +
" at HDF5-ID: " + std::to_string(reader.getId()));
}
if(getAttribute.readString("geometry") != "cartesian")
Expand Down

0 comments on commit 71ad4b4

Please sign in to comment.