Stabilize GPU BH trajectory defaults

This commit is contained in:
2026-05-17 11:52:50 +08:00
parent 5d8dfaf679
commit c7a48ebe7e
4 changed files with 196 additions and 8 deletions

View File

@@ -194,7 +194,7 @@ bool bssn_escalar_cuda_bh_interp_resident_enabled()
if (enabled < 0)
{
const char *env = getenv("AMSS_CUDA_BH_INTERP_RESIDENT");
enabled = env ? ((atoi(env) != 0) ? 1 : 0) : 1;
enabled = env ? ((atoi(env) != 0) ? 1 : 0) : 0;
}
return enabled != 0;
}

View File

@@ -1057,13 +1057,8 @@ bool bssn_cuda_bh_interp_resident_enabled()
const char *env = getenv("AMSS_CUDA_BH_INTERP_RESIDENT");
if (env)
enabled = (atoi(env) != 0) ? 1 : 0;
#if (ABEtype == 1)
else
enabled = 1;
#else
else
enabled = 1;
#endif
enabled = 0;
}
return enabled != 0;
}