Commit 65c8c556 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Accuracy fixes and compilation fixes in testOutputList.c

parent 7fed6d27
......@@ -71,7 +71,7 @@ int main(int argc, char *argv[]) {
/* Fake parameter file with Planck+13 cosmology
* and the usual cosmological system of units */
struct swift_params *params =
(swift_params *)malloc(sizeof(struct swift_params));
(struct swift_params *)malloc(sizeof(struct swift_params));
parser_set_param(params, "InternalUnitSystem:UnitMass_in_cgs:1.98848e43");
parser_set_param(params,
"InternalUnitSystem:UnitLength_in_cgs:3.08567758e24");
......
......@@ -107,7 +107,7 @@ void test_cosmo(struct engine *e, const char *name, const int with_assert) {
/* Set current time */
e->ti_current = log(output_time / e->cosmology->a_begin) / e->time_base;
e->ti_current += 1;
e->ti_current += 16;
/* Read next value */
integertime_t ti_next;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment