stardis-solver

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

commit 304fbcd2f0ae59f93169490b05a7c9d648750ec7
parent 476622610f3a255581307429cbce64a4a9863abd
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon,  8 Jan 2018 09:41:31 +0100

Print the results in the solve probe test

Diffstat:
Msrc/test_sdis_solve_probe.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/test_sdis_solve_probe.c b/src/test_sdis_solve_probe.c @@ -20,7 +20,7 @@ /* * The scene is composed of a solid cube with unknown temperature. The - * surrouding fluid has a fixed constant temperature. + * surrounding fluid has a fixed constant temperature. * * (1,1,1) * +-------+ @@ -180,6 +180,7 @@ main(int argc, char** argv) struct interface* interface_param; double pos[3]; double time; + double ref; const size_t N = 1000; size_t nreals; size_t nfails; @@ -266,7 +267,10 @@ main(int argc, char** argv) CHK(sdis_estimator_get_temperature(NULL, &T) == RES_BAD_ARG); CHK(sdis_estimator_get_temperature(estimator, &T) == RES_OK); - CHK(eq_eps(T.E, 300, T.SE)); + ref = 300; + printf("Temperature at (%g, %g, %g) = %g ~ %g +/- %g\n", + SPLIT3(pos), ref, T.E, T.SE); + CHK(eq_eps(T.E, ref, T.SE)); CHK(sdis_estimator_ref_get(NULL) == RES_BAD_ARG); CHK(sdis_estimator_ref_get(estimator) == RES_OK);