Default to safe BSSN-EScalar C kernel

This commit is contained in:
2026-04-25 02:02:01 +08:00
parent 0cf58176d9
commit 8d28c29a91
2 changed files with 3 additions and 11 deletions

View File

@@ -347,8 +347,6 @@ void bssnEScalar_class::Read_Ansorg()
}
int order = 6;
Ansorg read_ansorg("Ansorg.psid", order);
if (myrank == 0)
cout << "[debug] Read_Ansorg: Ansorg object ready" << endl;
// set initial data
for (int lev = 0; lev < GH->levels; lev++)
{
@@ -386,8 +384,6 @@ void bssnEScalar_class::Read_Ansorg()
}
Pp = Pp->next;
}
if (myrank == 0)
cout << "[debug] Read_Ansorg: finished level " << lev << " patch init" << endl;
}
#ifdef WithShell
// ShellPatch part
@@ -430,16 +426,12 @@ void bssnEScalar_class::Read_Ansorg()
}
Pp = Pp->next;
}
if (myrank == 0)
cout << "[debug] Read_Ansorg: finished shell init" << endl;
#endif
delete[] Porg_here;
delete[] pmom_local;
delete[] spin_local;
delete[] mass_local;
if (myrank == 0)
cout << "[debug] Read_Ansorg: finished local cleanup" << endl;
// dump read_in initial data
// for(int lev=0;lev<GH->levels;lev++) Parallel::Dump_Data(GH->PatL[lev],StateList,0,PhysTime,dT);
}

View File

@@ -49,10 +49,10 @@ endif
USE_CXX_KERNELS ?= 1
## BSSN-EScalar RHS switch
## 1 : use BSSN-EScalar C wrapper on the normal patch path
## 0 (default) : keep the original Fortran BSSN-EScalar RHS for precision-safe runs
## 1 (default) : use BSSN-EScalar C wrapper on the normal patch path
## 0 : keep the original Fortran BSSN-EScalar RHS for precision-safe runs
## Note: this requires USE_CXX_KERNELS=1 because the wrapper reuses the C BSSN kernel.
USE_CXX_ESCALAR_KERNEL ?= 0
USE_CXX_ESCALAR_KERNEL ?= 1
## Cached transfer switch
## 1 : enable cached Sync/Restrict/OutBd transfer on evolution hot paths