commit 7c05c5794bbc3cdc1a9bddfca98b3c1a3b42f0d8
parent eec2d7c1b0678cd0d49fc219d4bd314ad54925bf
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Tue, 8 Dec 2020 16:14:58 +0100
BugFix: fix code chunks not ready for unsteady Green
Diffstat:
2 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/src/sdis_heat_path_convective_Xd.h b/src/sdis_heat_path_convective_Xd.h
@@ -171,15 +171,6 @@ XD(convective_path)
/* Cannot be in the fluid without starting there. */
ASSERT(path_started_in_fluid);
- if(ctx->green_path) {
- log_err(scn->dev,
- "%s: the upper bound of the convection cannot of an enclosure cannot be "
- "null when registering the green function; initial condition is not "
- "supported.\n", FUNC_NAME);
- res = RES_BAD_ARG;
- goto error;
- }
-
rwalk->vtx.time = fluid_get_t0(rwalk->mdm);
tmp = fluid_get_temperature(rwalk->mdm, &rwalk->vtx);
if(tmp >= 0) {
diff --git a/src/sdis_realisation_Xd.h b/src/sdis_realisation_Xd.h
@@ -158,8 +158,7 @@ XD(probe_realisation)
res = register_heat_vertex(heat_path, &rwalk.vtx, 0, type);
if(res != RES_OK) goto error;
- /* No initial condition with green */
- if(!green_path && t0 >= rwalk.vtx.time) {
+ if(t0 >= rwalk.vtx.time) {
double tmp;
/* Check the initial condition. */
rwalk.vtx.time = t0;