Skip to content

Commit

Permalink
Update regular_grid_interpolant_3d.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkumar authored Jul 31, 2024
1 parent b43749a commit 3bacaca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/simsoptpp/regular_grid_interpolant_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ class RegularGridInterpolant3D {

// build a regular mesh on [xmin, xmax] x [ymin, ymax] x [zmin, zmax]
xmesh.reserve(nx+1);
hx = linspace(xmin, xmax, nx+1, x_endpoint, xmesh);
ymesh.reserve(ny+1);
zmesh.reserve(nz+1);

hx = linspace(xmin, xmax, nx+1, x_endpoint, xmesh);
hy = linspace(ymin, ymax, ny+1, y_endpoint, ymesh);
zmesh.reserve(nz+1);
hz = linspace(zmin, zmax, nz+1, z_endpoint, zmesh);

int nmesh = (nx+1)*(ny+1)*(nz+1);
Expand Down

0 comments on commit 3bacaca

Please sign in to comment.