Commit e7cb37b0 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only check the matter content against the cosmology if both cosmology and self...

Only check the matter content against the cosmology if both cosmology and self gravity are activated.
parent b4404903
...@@ -718,7 +718,8 @@ int main(int argc, char *argv[]) { ...@@ -718,7 +718,8 @@ int main(int argc, char *argv[]) {
/* Check that the matter content matches the cosmology given in the /* Check that the matter content matches the cosmology given in the
* parameter file. */ * parameter file. */
if (with_cosmology) space_check_cosmology(&s, &cosmo, myrank); if (with_cosmology && with_self_gravity)
space_check_cosmology(&s, &cosmo, myrank);
/* Also update the total counts (in case of changes due to replication) */ /* Also update the total counts (in case of changes due to replication) */
#if defined(WITH_MPI) #if defined(WITH_MPI)
......
Markdown is supported
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