Skip to content

Commit

Permalink
Change or to || in grid to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
tnipen committed Jan 4, 2024
1 parent 6b381b6 commit f3a732a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ gridpp::Grid::Grid(vec2 lats, vec2 lons, vec2 elevs, vec2 lafs, CoordinateType t
KDTree test = KDTree(lats0, lons0, type);
mTree = test;

if(mElevs.size() != lats.size() or mElevs[0].size() != lats[0].size()) {
if(mElevs.size() != lats.size() || mElevs[0].size() != lats[0].size()) {
mElevs.clear();
mElevs.resize(lats.size());
for(int i = 0; i < lats.size(); i++) {
mElevs[i].resize(lats[0].size(), gridpp::MV);
}
}
if(mLafs.size() != lats.size() or mLafs[0].size() != lats[0].size()) {
if(mLafs.size() != lats.size() || mLafs[0].size() != lats[0].size()) {
mLafs.clear();
mLafs.resize(lats.size());
for(int i = 0; i < lats.size(); i++) {
Expand Down

0 comments on commit f3a732a

Please sign in to comment.