stardis-solver

Solve coupled heat transfers
git clone git://git.meso-star.fr/stardis-solver.git
Log | Files | Refs | README | LICENSE

commit 4b84acae4d56cc1f21a2efcfba13ab3b81dd294e
parent 1bc19dbc477acd2f5c7a534ca3fdf8e51fa992c2
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 12 Jan 2024 10:31:26 +0100

Correct rejection of external flow calculation

External flux can only be evaluated if an external source is defined and
the handle_external_flux flag is set on the interface. The corresponding
test was badly written: it used the wrong temporary variable.

Diffstat:
Msrc/sdis_heat_path_boundary_Xd_handle_external_net_flux.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sdis_heat_path_boundary_Xd_handle_external_net_flux.h b/src/sdis_heat_path_boundary_Xd_handle_external_net_flux.h @@ -459,8 +459,8 @@ XD(handle_external_net_flux) /* No external sources <=> no external fluxes. Nothing to do */ handle_flux = interface_side_is_external_flux_handled(args->interf, &frag); - handle_flux = net_flux && (scn->source != NULL); - if(handle_flux) goto exit; + handle_flux = handle_flux && (scn->source != NULL); + if(!handle_flux) goto exit; /* Sample the external source */ res = source_sample