Repository navigation
Conversation
| localcell_info_ = divide_info_->get_localcell_info(); | ||
| const auto axis = DivideInfo::select_axis(grid, ucell); | ||
| divide_info_ = std::make_shared<DivideInfo>(grid, axis); | ||
| log << " Gint slab axis = " << "abc"[static_cast<int>(axis)] << '\n'; |
There was a problem hiding this comment.
Existing CI cases likely never select a/b, so the redistribution paths (nspin=4, meta-GGA, force/stress, GPU) are untested. Please add an Autotest case (e.g. 2D slab with vacuum along c, -n 4) that asserts Gint slab axis = a, and list the verification commands in the PR description.
| { | ||
| streams_num_ = nstream; // the default value of num_stream is 4 | ||
| const int batch_size = nbz_local; | ||
| const int batch_size = grid.nbzp; |
There was a problem hiding this comment.
After a/b redistribution the local z extent is the full nbz, so nbzp no longer aligns batches with z columns. Consider using the local count, i.e. divide_info_->block_count().z.
| unitcell_info_ = std::make_shared<UnitCellInfo>( | ||
| ucell_->a1 * ucell_->lat0, ucell_->a2 * ucell_->lat0, ucell_->a3 * ucell_->lat0, nbx, nby, nbz, nmx, nmy, nmz); | ||
| ucell_->a1 * ucell_->lat0, ucell_->a2 * ucell_->lat0, ucell_->a3 * ucell_->lat0, grid.nbx, grid.nby, grid.nbz, | ||
| grid.nx, grid.ny, grid.nz); |
There was a problem hiding this comment.
Mesh dimensions now come from pw_big instead of pw_rho. Please confirm they are identical for LCAO, including double-grid setups.
|
|
||
| > Note: the choice of bx, by, bz should be integer factors of the dimension of the real space FFT grid in each direction. | ||
|
|
||
| ## Low Dimension Materials |
There was a problem hiding this comment.
Instead of deleting this section, please replace it with a short note that the Gint decomposition axis is now selected automatically and reported as Gint slab axis in the running log.
|
Thanks for your review comments. I'll resolve them later today or tomorrow. |
A fixed c-axis decomposition can leave some MPI ranks with little grid-integration work when a slab has vacuum along c. With this PR abacus now selects the Gint decomposition axis based on the estimated orbital workload and redistribution cost.
Tested with a simple graphene example: tests.zip