Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
77163dd
C1: add para_2d() accessor and get_blacs_ctxt() to Parallel_Orbitals
kirk0830 Oct 27, 2026
c1dc33f
D2(module_rt): drop Parallel_2D inheritance in Parallel_Orbitals, mig…
kirk0830 Oct 28, 2026
3806abf
D2(module_dftu): drop Parallel_2D inheritance in Parallel_Orbitals, m…
kirk0830 Oct 28, 2026
4785523
D2(module_dm): drop Parallel_2D inheritance in Parallel_Orbitals, mig…
kirk0830 Oct 28, 2026
ecafdd5
D2(pyabacus): drop Parallel_2D inheritance in Parallel_Orbitals, migr…
kirk0830 Oct 28, 2026
75b5e00
D2(module_lr): drop Parallel_2D inheritance in Parallel_Orbitals, mig…
kirk0830 Oct 28, 2026
a278873
D2(misc_prod): drop Parallel_2D inheritance in Parallel_Orbitals, mig…
kirk0830 Oct 28, 2026
fe3c4ad
D2(module_operator_lcao): drop Parallel_2D inheritance in Parallel_Or…
kirk0830 Oct 28, 2026
7d2a635
D2(test_side): drop Parallel_2D inheritance in Parallel_Orbitals, mig…
kirk0830 Oct 28, 2026
0c4dd34
D2(module_current): drop Parallel_2D inheritance in Parallel_Orbitals…
kirk0830 Oct 28, 2026
8ccddf5
D2(module_ao): drop Parallel_2D inheritance in Parallel_Orbitals, mig…
kirk0830 Oct 28, 2026
c98fe04
D4(module_lr): pass Parallel_Orbitals as explicit para_2d() at upcast…
kirk0830 Oct 28, 2026
318b793
D4(module_hs): pass Parallel_Orbitals as explicit para_2d() at upcast…
kirk0830 Oct 28, 2026
2efe254
D4(module_io): pass Parallel_Orbitals as explicit para_2d() at upcast…
kirk0830 Oct 28, 2026
b5f593c
D4(module_dftu): pass Parallel_Orbitals as explicit para_2d() at upca…
kirk0830 Oct 28, 2026
8f69efe
D4(module_ao): remove Parallel_Orbitals implicit upcast operator
kirk0830 Oct 28, 2026
a2ece91
D5(test_side): stop writing descriptor/distribution fields directly i…
Oct 28, 2026
15ab2e0
D5(test_side): rewrite link-mock TUs to link the real implementation
Oct 28, 2026
103a962
D5(test_side): migrate parallel_orbitals_test serial branch to explic…
Oct 28, 2026
8f3327e
D5(test_side): keep original is_serial member name, expose read-only …
kirk0830 Oct 28, 2026
643f93b
D5(test_side): drop is_serial() accessor, restore direct member acces…
kirk0830 Oct 28, 2026
2222368
D5(test_side): merge d5-test-side worktree commits (test-side refacto…
kirk0830 Oct 28, 2026
ed3f729
D6(module_ao): add composition regression guard for Parallel_Orbitals…
kirk0830 Oct 28, 2026
8dc4d18
Merge remote-tracking branch 'upstream/develop' into pr/02-lcao-expli…
kirk0830 Nov 2, 2026
a1c9b49
style: remove trailing whitespace in LCAO layout migration
kirk0830 Nov 2, 2026
5e1603e
Merge branch 'pr/02-lcao-explicit-para2d' into pr/03-remove-parallel2…
kirk0830 Nov 3, 2026
a6a1532
test: use explicit serial block-cyclic layout
kirk0830 Nov 3, 2026
8eb8aaf
refactor: use explicit layout in serial paths
kirk0830 Nov 3, 2026
ad12452
refactor: migrate optional backends to explicit layout
kirk0830 Nov 3, 2026
1046ce6
Merge branch 'pr/03-remove-parallel2d-inheritance' into pr/04-composi…
kirk0830 Nov 3, 2026
c9b15b0
test(module_ao): tighten composition regression guard
kirk0830 Nov 3, 2026
273eff8
Merge upstream/develop into pr/03-remove-parallel2d-inheritance
kirk0830 Nov 3, 2026
b59d562
fix(io): drive the Mulliken test through the explicit distribution ac…
kirk0830 Nov 3, 2026
388b471
docs(ao): state concrete removal triggers for the transitional accessors
kirk0830 Nov 3, 2026
74ae3d0
test(module_ao): fold the composition guard into the parallel_orbital…
kirk0830 Nov 3, 2026
edae4f2
Merge remote-tracking branch 'upstream/develop' into pr/03-remove-par…
kirk0830 Nov 4, 2026
3d6c378
fix(ao): migrate remaining distribution consumers
kirk0830 Nov 4, 2026
4532754
fix(deepks): initialize serial distribution explicitly
kirk0830 Nov 4, 2026
94b1345
Merge branch 'pr/03-remove-parallel2d-inheritance' into pr/04-composi…
kirk0830 Nov 4, 2026
64210f9
Merge remote-tracking branch 'upstream/develop' into pr/04-compositio…
kirk0830 Nov 4, 2026
1b90cf9
fix(exx): pass block-cyclic distributions explicitly
kirk0830 Nov 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/source_basis/module_ao/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ if(ENABLE_LCAO)
endif()

if(BUILD_TESTING)
if(ENABLE_MPI)
add_subdirectory(test)
endif()
# These tests support both MPI and serial builds: MPI-only cases are
# guarded by __MPI, while the remaining cases use the serial layout.
add_subdirectory(test)
endif()
endif()
7 changes: 0 additions & 7 deletions source/source_basis/module_ao/parallel_orbitals.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ class Parallel_Orbitals
Parallel_2D& para_2d() { return para_2d_; }

const Parallel_2D& para_2d() const { return para_2d_; }

// Transitional implicit upcast. Keeping it lets the const call sites that
// pass a Parallel_Orbitals where a const Parallel_2D& is expected compile
// while they are migrated. It is deleted once every such site calls
// para_2d() explicitly; no new site may rely on it.
operator const Parallel_2D&() const { return para_2d_; }

#ifdef __MPI
/// BLACS context of the 2D process grid, completing the getter family
/// (get_row_size / get_col_size / get_local_size / get_block_size /
Expand Down
12 changes: 7 additions & 5 deletions source/source_basis/module_ao/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ addtest(

abacus_copy_test_files(parallel_orbitals_test.sh)
find_program(BASH bash)
add_test(
NAME MODULE_AO_parallel_orbitals_test_para
COMMAND ${BASH} parallel_orbitals_test.sh
"$<TARGET_FILE:MODULE_AO_parallel_orbitals_test>"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
if(ENABLE_MPI)
add_test(
NAME MODULE_AO_parallel_orbitals_test_para
COMMAND ${BASH} parallel_orbitals_test.sh
"$<TARGET_FILE:MODULE_AO_parallel_orbitals_test>"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
endif()

abacus_copy_test_files(lcao_H2O)
215 changes: 213 additions & 2 deletions source/source_basis/module_ao/test/parallel_orbitals_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#include "gtest/gtest.h"
#include "../parallel_orbitals.h"

#include <algorithm>
#include <fstream>
#include <type_traits>
#include <utility>
#include <vector>

//--------------------------------------------------------------
// unit test of class "Parallel_Orbitals"
//--------------------------------------------------------------
Expand All @@ -15,9 +21,40 @@
* - get_indexes_col
* - get_indexes_row(iat)
* - get_indexes_col(iat)
*
*
* Composition guard (folded in from the former
* test_parallel_orbitals_composition.cpp):
* - the composed Parallel_2D layout is exposed only through para_2d();
* - derived atom and band metadata can be resynchronized after layout changes;
* - copy and move semantics remain explicit;
* - MPI and serial builds exercise their respective initialization paths.
*
* the test framework is based on parallel_2d_test.cpp
*/
static_assert(!std::is_convertible<const Parallel_Orbitals&, const Parallel_2D&>::value,
"Parallel_Orbitals must expose Parallel_2D only through para_2d()");
static_assert(!std::is_copy_constructible<Parallel_Orbitals>::value,
"Parallel_Orbitals must not be copy constructible");
static_assert(!std::is_copy_assignable<Parallel_Orbitals>::value,
"Parallel_Orbitals must not be copy assignable");
static_assert(!std::is_move_constructible<Parallel_Orbitals>::value,
"Parallel_Orbitals must not be move constructible");
static_assert(!std::is_move_assignable<Parallel_Orbitals>::value,
"Parallel_Orbitals must not be move assignable");
static_assert(std::is_default_constructible<Parallel_Orbitals>::value,
"Parallel_Orbitals must be default constructible");

static_assert(!std::is_copy_constructible<Parallel_2D>::value,
"Parallel_2D must not be copy constructible");
static_assert(!std::is_copy_assignable<Parallel_2D>::value,
"Parallel_2D must not be copy assignable");
static_assert(std::is_move_constructible<Parallel_2D>::value,
"Parallel_2D must be move constructible");
static_assert(std::is_move_assignable<Parallel_2D>::value,
"Parallel_2D must be move assignable");
static_assert(std::is_default_constructible<Parallel_2D>::value,
"Parallel_2D must be default constructible");

class TestParaO : public testing::Test
{
protected:
Expand Down Expand Up @@ -161,7 +198,7 @@ TEST_F(TestParaO, Serial)
//1. set dim0 and dim1
//2. set_serial
po.para_2d().set_serial(gr, gc);
EXPECT_EQ(po.para_2d().dim0 * po.para_2d().dim1, 1);
EXPECT_EQ(po.para_2d().get_dim0() * po.para_2d().get_dim1(), 1);
EXPECT_EQ(po.para_2d().get_row_size(), gr);
EXPECT_EQ(po.para_2d().get_col_size(), gc);
EXPECT_EQ(po.para_2d().get_local_size(), gr * gc);
Expand Down Expand Up @@ -196,6 +233,180 @@ TEST_F(TestParaO, Serial)
}
#endif

//--------------------------------------------------------------
// composition guard for class "Parallel_Orbitals"
//--------------------------------------------------------------
class ParallelOrbitalsCompositionTest : public testing::Test
{
protected:
std::ofstream ofs_running;
std::ofstream ofs_warning;
std::vector<int> iat2iwt{0, 10, 20};
const int nat = 3;

/// Refresh state derived from the current para_2d() layout.
void run_derived_layer(Parallel_Orbitals& po, const int nlocal_global, const int nbands_global)
{
po.set_atomic_trace(iat2iwt.data(), nat, nlocal_global);
#ifdef __MPI
ASSERT_EQ(po.set_nloc_wfc_Eij(nbands_global, ofs_running, ofs_warning), 0);
po.set_desc_wfc_Eij(nlocal_global, nbands_global, po.para_2d().get_row_size());
#endif
}

/// Assert that derived state matches the current para_2d() layout.
void assert_sync_with(const Parallel_Orbitals& po, const int nlocal_global, const int nbands_global)
{
// The trailing sentinels must follow the new distribution.
EXPECT_EQ(po.atom_begin_row[nat], po.para_2d().nrow);
EXPECT_EQ(po.atom_begin_col[nat], po.para_2d().ncol);
// Each atom must either start locally or be marked absent on this rank.
for (int iat = 0; iat < nat; ++iat)
{
if (po.atom_begin_row[iat] == -1)
{
EXPECT_EQ(po.get_nrow_atom(iat), 0);
}
else
{
EXPECT_GE(po.atom_begin_row[iat], 0);
EXPECT_LT(po.atom_begin_row[iat], po.para_2d().nrow);
}
if (po.atom_begin_col[iat] == -1)
{
EXPECT_EQ(po.get_ncol_atom(iat), 0);
}
else
{
EXPECT_GE(po.atom_begin_col[iat], 0);
EXPECT_LT(po.atom_begin_col[iat], po.para_2d().ncol);
}
}
#ifdef __MPI
// Band metadata must be re-derived from the current distribution.
EXPECT_EQ(po.nrow_bands, po.para_2d().nrow);
EXPECT_EQ(po.nloc_wfc, static_cast<int64_t>(po.ncol_bands) * po.para_2d().nrow);
EXPECT_EQ(po.nloc_Eij, static_cast<int64_t>(po.ncol_bands) * po.ncol_bands);
EXPECT_EQ(po.get_wfc_global_nbands(), po.desc_wfc[3]);
EXPECT_EQ(po.get_wfc_global_nbasis(), po.desc_wfc[2]);
// The embedded descriptor context must match the composed layout.
EXPECT_EQ(po.desc_wfc[1], po.get_blacs_ctxt());
EXPECT_EQ(po.desc_wfc[2], nlocal_global);
EXPECT_EQ(po.desc_wfc[3], nbands_global);
EXPECT_EQ(po.desc_wfc[8], po.para_2d().get_row_size());
#endif
}
};

TEST_F(ParallelOrbitalsCompositionTest, GetterEqualsPara2d)
{
Parallel_Orbitals po;
const int mg = 50;
const int ng = 50;
#ifdef __MPI
ASSERT_EQ(po.para_2d().init(mg, ng, 2, MPI_COMM_WORLD, 1), 0);
#else
po.para_2d().set_serial(mg, ng);
#endif
const Parallel_2D& p2d = po.para_2d();
EXPECT_EQ(p2d.get_row_size(), p2d.nrow);
EXPECT_EQ(p2d.get_col_size(), p2d.ncol);
EXPECT_EQ(p2d.get_local_size(), p2d.nloc);
EXPECT_EQ(p2d.get_local_size(), static_cast<int64_t>(p2d.nrow) * p2d.ncol);
EXPECT_EQ(p2d.get_block_size(), p2d.nb);
EXPECT_EQ(p2d.get_dim0(), p2d.dim0);
EXPECT_EQ(p2d.get_dim1(), p2d.dim1);
#ifdef __MPI
EXPECT_EQ(p2d.get_desc(), &p2d.desc[0]);
EXPECT_EQ(p2d.desc[1], p2d.blacs_ctxt);
EXPECT_EQ(p2d.desc[2], mg);
EXPECT_EQ(p2d.desc[3], ng);
EXPECT_EQ(p2d.desc[4], p2d.nb);
EXPECT_EQ(p2d.desc[5], p2d.nb);
EXPECT_EQ(p2d.desc[8], std::max(p2d.nrow, 1));
// PO 对组合成员唯一的转发 getter:必须与 para_2d() 内部一致
EXPECT_EQ(po.get_blacs_ctxt(), p2d.blacs_ctxt);
#endif
}

#ifdef __MPI
TEST_F(ParallelOrbitalsCompositionTest, DerivedLayerSyncsAfterReinit)
{
Parallel_Orbitals po;
// First use a small distribution.
ASSERT_EQ(po.para_2d().init(30, 30, 1, MPI_COMM_WORLD, 1), 0);
const int old_nrow = po.para_2d().nrow;
run_derived_layer(po, 30, 16);
EXPECT_EQ(po.nrow_bands, old_nrow);
EXPECT_EQ(po.atom_begin_row[nat], old_nrow);

// Reinitialize only the composed layout and leave derived state stale.
ASSERT_EQ(po.para_2d().init(50, 50, 1, MPI_COMM_WORLD, 1), 0);
const int new_nrow = po.para_2d().nrow;
ASSERT_NE(new_nrow, old_nrow);
EXPECT_NE(po.nrow_bands, new_nrow);
EXPECT_NE(po.atom_begin_row[nat], new_nrow);

// Refreshing derived state restores the invariant.
run_derived_layer(po, 50, 16);
assert_sync_with(po, 50, 16);
}

TEST_F(ParallelOrbitalsCompositionTest, DerivedLayerSyncsAfterSet)
{
Parallel_Orbitals po;
ASSERT_EQ(po.para_2d().init(40, 40, 2, MPI_COMM_WORLD, 1), 0);
run_derived_layer(po, 40, 16);
EXPECT_EQ(po.nrow_bands, po.para_2d().nrow);

// Reinitialize through set() while reusing the existing BLACS context.
const int blacs = po.para_2d().blacs_ctxt;
ASSERT_EQ(po.para_2d().set(60, 60, 2, blacs), 0);
ASSERT_NE(po.para_2d().nrow, po.nrow_bands);
run_derived_layer(po, 60, 16);
assert_sync_with(po, 60, 16);
}
#else
TEST_F(ParallelOrbitalsCompositionTest, DerivedLayerSyncsAfterSetSerial)
{
Parallel_Orbitals po;
po.para_2d().set_serial(30, 30);
const int old_nrow = po.para_2d().nrow;
po.set_atomic_trace(iat2iwt.data(), nat, 30);
EXPECT_EQ(po.atom_begin_row[nat], old_nrow);

// Reinitialize only the composed layout and leave derived state stale.
po.para_2d().set_serial(50, 50);
const int new_nrow = po.para_2d().nrow;
ASSERT_NE(new_nrow, old_nrow);
EXPECT_NE(po.atom_begin_row[nat], new_nrow);

// Refresh derived state; serial global-to-local maps are identities.
po.set_atomic_trace(iat2iwt.data(), nat, 50);
EXPECT_EQ(po.atom_begin_row[nat], po.para_2d().nrow);
EXPECT_EQ(po.atom_begin_col[nat], po.para_2d().ncol);
for (int iat = 0; iat < nat; ++iat)
{
EXPECT_EQ(po.atom_begin_row[iat], iat2iwt[iat]);
EXPECT_EQ(po.atom_begin_col[iat], iat2iwt[iat]);
}
}
#endif

TEST_F(ParallelOrbitalsCompositionTest, ValueSemanticsSmoke)
{
Parallel_2D source;
source.set_serial(4, 4);
Comment thread
mohanchen marked this conversation as resolved.
Resolved
EXPECT_EQ(source.nrow, 4);

Parallel_2D moved(std::move(source));
EXPECT_EQ(moved.nrow, 4);

Parallel_2D assigned;
assigned = std::move(moved);
EXPECT_EQ(assigned.nrow, 4);
}

int main(int argc, char** argv)
{
#ifdef __MPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,7 @@ TEST_F(HContainerTest, atompair_funcs)
PO.atom_begin_row[i] = i*2; // nw = 2, value should be i*nw
PO.atom_begin_col[i] = i*2;
}
PO.para_2d().nrow = 4;
PO.para_2d().ncol = 4;
PO.para_2d().set_serial(4, 4);
const int natom = 2;
const int rx_shift = 1, ry_shift = 1, rz_shift = 1;
hamilt::AtomPair<double> atom_ij(0, 0, &PO, nullptr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,7 @@ TEST_F(HContainerTest, atompair_funcs)
PO.atom_begin_row[i] = i*2; // nw = 2, value should be i*nw
PO.atom_begin_col[i] = i*2;
}
PO.para_2d().nrow = 4;
PO.para_2d().ncol = 4;
PO.para_2d().set_serial(4, 4);
hamilt::AtomPair<std::complex<double>> atom_ij(0, 0, &PO, nullptr);
hamilt::AtomPair<std::complex<double>> atom_ij2(0, 1, 1, 1, 1, &PO, nullptr);
hamilt::AtomPair<std::complex<double>> atom_ij3(1, 0, PO.atom_begin_row.data(), PO.atom_begin_col.data(), 2, nullptr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ TEST_F(OutputHContainerTest, Write)
ParaV.atom_begin_row[i] = i * 2;
ParaV.atom_begin_col[i] = i * 2;
}
ParaV.para_2d().nrow = 4;
ParaV.para_2d().ncol = 4;
std::ofstream ofs("output_hcontainer.log");
ParaV.para_2d().set_serial(4, 4);
// std::cout << "ParaV.global2local_row = " << ParaV.global2local_row(0) << " " << ParaV.global2local_row(1) << " "
Expand Down
9 changes: 2 additions & 7 deletions source/source_hsolver/unittests/test_diago_pexsi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,8 @@ template <class T> class PexsiPrepare
exit(1);
}

// set po variables
po.para_2d().ncol = hmtest.ncol;
po.para_2d().nrow = hmtest.nrow;
po.para_2d().nb = nb2d;
po.para_2d().blacs_ctxt = icontxt;
po.para_2d().dim0 = nprows;
po.para_2d().dim1 = npcols;
// set po variables from the same BLACS grid used for hmtest
po.para_2d().set(nlocal, nlocal, nb2d, icontxt);

if (DETAILINFO && myrank == 0)
{
Expand Down
15 changes: 6 additions & 9 deletions source/source_io/module_ctrl/ctrl_scf_lcao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,8 @@ void ModuleIO::ctrl_scf_lcao(UnitCell& ucell,
// Mode-2 MAT/ subdirectory is created lazily at write time.
ModuleBase::ensure_directory(global_mat_dir);
const int precision = inp.out_dmr[1];
// File-name selection and append/truncate are independent decisions:
// mode 0 keeps the fixed filename and overwrites it at every write,
// mode 1 keeps the fixed filename and appends later steps, and mode 2
// embeds the ionic step in the g{step} filename.
ModuleIO::write_dmr(dm->get_dmr_vec(), &ucell, precision, pv, out_app_flag,
ucell.get_iat2iwt(), ucell.nat, global_mat_dir, istep, ofs_running);
ModuleIO::write_dmr(dm->get_dmr_vec(), &ucell, precision, pv.para_2d(), out_app_flag,
ucell.get_iat2iwt(), ucell.nat, global_mat_dir, istep, ofs_running);
}

//------------------------------------------------------------------
Expand All @@ -211,7 +207,8 @@ void ModuleIO::ctrl_scf_lcao(UnitCell& ucell,
}
const int precision = inp.out_dmk[1];

ModuleIO::write_dmk(dm->get_dmk_vec(), kv, precision, efermis, &(ucell), pv, global_mat_dir, istep, out_app_flag, ofs_running);
ModuleIO::write_dmk(dm->get_dmk_vec(), kv, precision, efermis, &(ucell), pv.para_2d(),
global_mat_dir, istep, out_app_flag, ofs_running);
}

//------------------------------------------------------------------
Expand Down Expand Up @@ -298,7 +295,7 @@ void ModuleIO::ctrl_scf_lcao(UnitCell& ucell,
std::vector<hamilt::HContainer<TR>*> hr_vec = p_hamilt->getHR_vector();
const hamilt::HContainer<TR>* sr = p_hamilt->getSR();

ModuleIO::write_hsr(hr_vec, sr, &ucell, inp.out_hsr[0], precision, pv,
ModuleIO::write_hsr(hr_vec, sr, &ucell, inp.out_hsr[0], precision, pv.para_2d(),
out_app_flag, gamma_only, ucell.get_iat2iwt(), ucell.nat, istep,
global_mat_dir, pelec->eferm,
ofs_running);
Expand Down Expand Up @@ -582,7 +579,7 @@ void ModuleIO::ctrl_scf_lcao(UnitCell& ucell,
1, // true for upper triangle matrix
(inp.out_app_flag == 1),
t_fn,
pv,
pv.para_2d(),
GlobalV::DRANK,
PARAM.inp.ks_solver);

Expand Down
2 changes: 1 addition & 1 deletion source/source_io/module_dhs/write_dh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void write_dh_perI(WriteDHParams& params,
false,
append_fk,
fk,
pv,
pv.para_2d(),
GlobalV::DRANK,
PARAM.inp.ks_solver);
}
Expand Down
2 changes: 0 additions & 2 deletions source/source_io/module_dm/test/test_write_dmr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ void init_serial_orbitals(Parallel_Orbitals& pv)
pv.atom_begin_row[1] = 2;
pv.atom_begin_col[0] = 0;
pv.atom_begin_col[1] = 2;
pv.para_2d().nrow = 2;
pv.para_2d().ncol = 2;
pv.para_2d().set_serial(2, 2);
}

Expand Down
Loading
Loading