Got rid of more global variables

This commit is contained in:
Yohai Meiron 2020-03-25 16:58:46 -04:00
parent 23d32c6dcf
commit 8cba5b5e1d
2 changed files with 32 additions and 128 deletions

View file

@ -121,7 +121,7 @@ void Config::error_checking()
throw std::runtime_error("Binary black hole influence sphere output (binary_smbh_influence_sphere_output=true) requires exactly two live black holes (live_smbh_count=2)");
if (pn_usage.size() != 7)
throw std::runtime_error("PN usage array (pn_usage) must have exactly seven components");
for (int i; i<7; i++)
for (int i=0; i<7; i++)
if (!((pn_usage[i] == 0) || (pn_usage[i] == 1)))
throw std::runtime_error("PN usage array (pn_usage) must have ones and zeros only");
if (ext_units_physical && ((norm_mass == 0) || (norm_length == 0)))