From 20ac2db0782747376412bd209e46f3efd93ed61b Mon Sep 17 00:00:00 2001 From: Adam Cheng <52572642+adamchengtkc@users.noreply.github.com> Date: Wed, 9 Oct 2024 20:31:25 +0000 Subject: [PATCH] fix dropped 1D nodes for 3D sim --- warmth/build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/warmth/build.py b/warmth/build.py index ac89b40..843e9ae 100644 --- a/warmth/build.py +++ b/warmth/build.py @@ -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)