Skip to content

Commit

Permalink
fix dropped 1D nodes for 3D sim
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchengtkc committed Oct 9, 2024
1 parent ba009ae commit 20ac2db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions warmth/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ def _create_nodes(self, all_sediments_grid: List[List[List]]):
for sed_grid in all_sediments_grid:
node_sed.append(sed_grid[index[0]][index[1]])
if all(node_sed) is False:
self.nodes[index[0]][index[1]] = False
logger.warning(f"dropping node {index}. One of the layer has no depth value")
else:
top = np.empty(0)
Expand Down

0 comments on commit 20ac2db

Please sign in to comment.