VERBOSE_PRINTING flag is now globally used in the whole program and should be used to suppress development/debugging-related printing. Also added comments to the new interface function acCheckDeviceAvailability and made it free from side effects.

This commit is contained in:
jpekkila
2019-06-26 18:50:15 +03:00
parent 0bc8b7e827
commit cda17c9b08
3 changed files with 23 additions and 26 deletions

View File

@@ -152,16 +152,11 @@ update_config(AcMeshInfo* config)
config->real_params[AC_G_CONST];
config->real_params[AC_sq2GM_star] = AcReal(sqrt(AcReal(2) * config->real_params[AC_GM_star]));
const bool print_config = true;
#ifdef VERBOSE_PRINT
if (print_config) {
printf("###############################################################"
"\n");
printf("Config dimensions recalculated:\n");
print(*config);
printf("###############################################################"
"\n");
}
#if VERBOSE_PRINTING
printf("###############################################################\n");
printf("Config dimensions recalculated:\n");
print(*config);
printf("###############################################################\n");
#endif
}