commit 3fe858b773797b48a61e0ef54952c74f19e43725
parent be1da720cc4032f5adad7a422f0b3c556a4d6a6c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 27 Feb 2025 17:25:57 +0100
planets: fixed dump octree option when used with longwave
htrdr returned an error due to the configuration of the spectral
dimension which, in longwave, queried the ground temperature, a ground
which was not loaded when the dump octree option was activated. However,
as with the ground, there's no need to set the spectral dimension when
the dump octree option is active.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/planets/htrdr_planets.c b/src/planets/htrdr_planets.c
@@ -245,6 +245,10 @@ setup_spectral_domain
res_T res = RES_OK;
ASSERT(cmd && args);
+ /* No spectral distribution required to write octrees */
+ if(cmd->output_type == HTRDR_PLANETS_ARGS_OUTPUT_OCTREES)
+ goto exit;
+
cmd->spectral_domain = args->spectral_domain;
/* Configure the spectral distribution */