commit bf71455f0fabe51f3c6d0a22768087d19685fba1
parent 28c0320033aa55b0ed0558a5450f7d7ea8759acc
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 21 Sep 2022 17:43:36 +0200
Add the rnatm_get_aerosols_count function
Diffstat:
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/rnatm.c b/src/rnatm.c
@@ -365,6 +365,13 @@ rnatm_get_k_svx_voxel
}
size_t
+rnatm_get_aerosols_count(const struct rnatm* atm)
+{
+ ASSERT(atm);
+ return darray_aerosol_size_get(&atm->aerosols);
+}
+
+size_t
rnatm_get_spectral_items_count(const struct rnatm* atm)
{
ASSERT(atm);
diff --git a/src/rnatm.h b/src/rnatm.h
@@ -189,6 +189,10 @@ rnatm_fetch_cell
struct rnatm_cell* cell,
double barycentric_coords[4]); /* `pos' relative to the returned `cell' */
+RNATM_API size_t
+rnatm_get_aerosols_count
+ (const struct rnatm* atm);
+
/* Returns the number of spectral items. One acceleration structure is built
* per spectral item from the gas and aerosols meshes */
RNATM_API size_t