about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/general/compute_fwd_interface.m
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/bnt-master/BNT/general/compute_fwd_interface.m')
-rw-r--r--sourcecodes/bnt-master/BNT/general/compute_fwd_interface.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/sourcecodes/bnt-master/BNT/general/compute_fwd_interface.m b/sourcecodes/bnt-master/BNT/general/compute_fwd_interface.m
new file mode 100644
index 00000000..db4807c7
--- /dev/null
+++ b/sourcecodes/bnt-master/BNT/general/compute_fwd_interface.m
@@ -0,0 +1,11 @@
+function int = compute_fwd_interface(intra, inter)
+% COMPUTE_FWD_INTERFACE Compute nodes with children in the next slice
+% function int = compute_fwd_interface(intra, inter)
+
+int = [];
+ss = length(intra);
+for u=1:ss
+  if any(inter(u,:))
+    int = [int u];
+  end
+end