Fix output_list
1 unresolved thread
1 unresolved thread
Compare changes
+ 7
− 4
@@ -28,6 +28,7 @@
@@ -72,11 +73,13 @@ void output_list_read_file(struct output_list *outputlist, const char *filename,
@@ -102,7 +105,7 @@ void output_list_read_file(struct output_list *outputlist, const char *filename,
I had removed the
cosmo
here since we already test above whether we have cosmo and ages. But if you'd rather keep it, that's fine.You check if
cosmo
with redshift or scale factor, but not with the cosmic time (maybe I should change the flagOUTPUT_LIST_AGE
toOUTPUT_LIST_COSMIC_TIME
?). Here I do not want to compute the scale factor from the cosmic time in a non cosmological simulation. In current master, the code just crash on a segmentation fault in this case.