Skip to content

Commit

Permalink
#3012 Compare points_XYZ or points_latlon
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Dec 11, 2024
1 parent 44812ae commit 6dc8fa7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/libcode/vx_grid/grid_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1711,10 +1711,15 @@ bool is_eq(const UnstructuredData * us1, const UnstructuredData * us2)
}
else {
status = status
&& us1->points_XYZ[0] == us2->points_lonlat[0]
&& us1->points_XYZ[us1->n_face-1] == us2->points_XYZ[us2->n_face-1];
&& is_eq(us1->points_XYZ[0].x(), us2->points_XYZ[0].x())
&& is_eq(us1->points_XYZ[0].y(), us2->points_XYZ[0].y())
&& is_eq(us1->points_XYZ[0].z(), us2->points_XYZ[0].z())
&& is_eq(us1->points_XYZ[us1->n_face-1].x(), us2->points_XYZ[us2->n_face-1].x())
&& is_eq(us1->points_XYZ[us1->n_face-1].y(), us2->points_XYZ[us2->n_face-1].y())
&& is_eq(us1->points_XYZ[us1->n_face-1].z(), us2->points_XYZ[us2->n_face-1].z())
&& is_eq(us1->alt_checksum, us2->alt_checksum);
}
}
}
}

Expand Down

0 comments on commit 6dc8fa7

Please sign in to comment.