[fix] The plane ground regular mesh excludes points at Xmax and/or Ymax coordinates
Summary
In MODULES.ENVIRONMENT.mesh.Mesh.add_plane_ground_regular_meshes(), the xrng and yrng variables are created using numpy.arange(), which excludes the "stop" argument.
Example Project
Example:
>>> np.arange(start=0, stop=1, step=0.5)
array([0. , 0.5])
The array excludes "stop" value.
What is the current bug behavior?
The array of measurement points are created from Xmin to Xmax-Xincrement (same for Y dimension).
What is the expected correct behavior?
The array of measurement points should be created from Xmin to Xmax included (same for Y dimension).
Possible fixes
In the method, replace this:
xrng = np.arange(X_min, X_max, X_increment)
yrng = np.arange(Y_min, Y_max, Y_increment)
with this:
xrng = np.arange(X_min, X_max+X_increment, X_increment)
yrng = np.arange(Y_min, Y_max+Y_increment, Y_increment)