commit 8496db0d322e0a291c69b3ee12f9101c0d61b7cb
parent 2b504c33b6316bfd7d1e9740928cbf84d2d0e2dc
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 16 Nov 2022 19:05:06 +0100
Declare the rnatm_fetch_cell_list function
Diffstat:
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/rnatm.h b/src/rnatm.h
@@ -307,6 +307,18 @@ rnatm_fetch_cell
const size_t cpnt,
struct rnatm_cell_pos* cell);
+/* Returns the cells of each component corresponding to the given position */
+RNATM_API res_T
+rnatm_fetch_cell_list
+ (const struct rnatm* atm,
+ const double pos[3],
+ /* The capacity of the submitted cell array must be greater than or equal to
+ * the number of atmospheric components. If you are not sure, allocate (on
+ * the stack or on the heap) an array whose capacity is
+ * RNATM_MAX_COMPONENTS_COUNT */
+ struct rnatm_cell_pos* cells,
+ size_t* ncells); /* Total number of atmospheric components */
+
RNATM_API res_T
rnatm_cell_get_radcoef
(const struct rnatm* atm,