Grid and subgrid dimensions are now only printed if VERBOSE_PRINTING == 1
This commit is contained in:
@@ -120,12 +120,14 @@ acInit(const AcMeshInfo& config)
|
|||||||
ERRCHK_ALWAYS(subgrid.n.y >= STENCIL_ORDER);
|
ERRCHK_ALWAYS(subgrid.n.y >= STENCIL_ORDER);
|
||||||
ERRCHK_ALWAYS(subgrid.n.z >= STENCIL_ORDER);
|
ERRCHK_ALWAYS(subgrid.n.z >= STENCIL_ORDER);
|
||||||
|
|
||||||
|
#if VERBOSE_PRINTING
|
||||||
// clang-format off
|
// clang-format off
|
||||||
printf("Grid m "); printInt3(grid.m); printf("\n");
|
printf("Grid m "); printInt3(grid.m); printf("\n");
|
||||||
printf("Grid n "); printInt3(grid.n); printf("\n");
|
printf("Grid n "); printInt3(grid.n); printf("\n");
|
||||||
printf("Subrid m "); printInt3(subgrid.m); printf("\n");
|
printf("Subrid m "); printInt3(subgrid.m); printf("\n");
|
||||||
printf("Subrid n "); printInt3(subgrid.n); printf("\n");
|
printf("Subrid n "); printInt3(subgrid.n); printf("\n");
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
#endif
|
||||||
|
|
||||||
// Initialize the devices
|
// Initialize the devices
|
||||||
for (int i = 0; i < num_devices; ++i) {
|
for (int i = 0; i < num_devices; ++i) {
|
||||||
@@ -271,8 +273,7 @@ AcResult
|
|||||||
acIntegrateStep(const int& isubstep, const AcReal& dt)
|
acIntegrateStep(const int& isubstep, const AcReal& dt)
|
||||||
{
|
{
|
||||||
const int3 start = (int3){NGHOST, NGHOST, NGHOST};
|
const int3 start = (int3){NGHOST, NGHOST, NGHOST};
|
||||||
const int3 end = (int3){NGHOST + subgrid.n.x, NGHOST + subgrid.n.y,
|
const int3 end = (int3){NGHOST + subgrid.n.x, NGHOST + subgrid.n.y, NGHOST + subgrid.n.z};
|
||||||
NGHOST + subgrid.n.z};
|
|
||||||
for (int i = 0; i < num_devices; ++i) {
|
for (int i = 0; i < num_devices; ++i) {
|
||||||
rkStep(devices[i], STREAM_PRIMARY, isubstep, start, end, dt);
|
rkStep(devices[i], STREAM_PRIMARY, isubstep, start, end, dt);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user