stardis

Perform coupled heat transfer calculations
git clone git://git.meso-star.fr/stardis.git
Log | Files | Refs | README | LICENSE

commit ebc14f5e06ccfa0179e4b93b79536e3b2b135a4b
parent 315e6a52ae5381b7c9b02bc0980ccdfe6d7400e5
Author: vincent.forest@meso-star.com <vincent.forest@meso-star.com>
Date:   Fri, 25 Apr 2025 11:53:58 +0200

Fix the allocation of a solid's properties

The data was supposed to be the solid's properties, whereas it's
actually a _pointer_ on solid properties. As a result, the amount of
memory allocated and its alignment were all wrong.

Diffstat:
Msrc/stardis-solid.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stardis-solid.c b/src/stardis-solid.c @@ -136,7 +136,7 @@ create_solver_solid #endif solid_shader.temperature = solid_get_temperature; solid_shader.t0 = stardis->initial_time; - ERR(sdis_data_create(stardis->dev, sizeof(struct solid), ALIGNOF(struct solid), + ERR(sdis_data_create(stardis->dev, sizeof(struct solid*), ALIGNOF(struct solid*), NULL, &data)); props = sdis_data_get(data); /* Fetch the allocated memory space */