--- ray/src/gen/atmos.h 2024/07/05 18:04:36 2.1 +++ ray/src/gen/atmos.h 2024/10/09 17:22:42 2.3 @@ -1,3 +1,4 @@ +/* RCSid $Id: atmos.h,v 2.3 2024/10/09 17:22:42 greg Exp $ */ #ifndef ATMOS_H #define ATMOS_H @@ -9,6 +10,10 @@ #include "rtmath.h" #include "sun.h" +#ifdef __cplusplus +extern "C" { +#endif + #define NSSAMP 20 typedef struct { @@ -84,4 +89,11 @@ extern int compute_sundir(const int year, const int mo extern int precompute(const int sorder, const DpPaths dppaths, const Atmosphere *atmos, int num_threads); -#endif // ATMOS_H +extern DATARRAY *get_indirect_irradiance(DATARRAY *dp, const double radius, + const double mu_s); + +#ifdef __cplusplus +} +#endif + +#endif /* ATMOS_H */