Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions docs/advanced/input_files/input-main.md
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@
### diag_subspace

- **Type**: Integer
- **Availability**: *[`basis_type`](#basis_type)==pw and [`ks_solver`](#ks_solver)==dav_subspace*
- **Description**: The method to diagonalize subspace in dav_subspace method.
- 0: by LAPACK
- 1: by GenELPA
Expand Down
2 changes: 1 addition & 1 deletion docs/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ parameters:
* 2: by ScaLAPACK
default_value: "0"
unit: ""
availability: ""
availability: basis_type==pw and ks_solver==dav_subspace
- name: erf_ecut
category: Plane wave related variables
type: Real
Expand Down
1 change: 1 addition & 0 deletions source/source_io/module_parameter/read_inp_sys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,7 @@ Available options are:
* 1: by GenELPA
* 2: by ScaLAPACK)";
item.default_value = "0";
item.set_availability("basis_type==pw and ks_solver==dav_subspace");
read_sync_int(input.diag_subspace);
this->add_item(item);
}
Expand Down
4 changes: 4 additions & 0 deletions source/source_io/test_serial/read_input_item_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,10 @@ TEST_F(InputTest, Item_test2)
output = testing::internal::GetCapturedStdout();
EXPECT_THAT(output, testing::HasSubstr("NOTICE"));
}
{ // diag_subspace
auto it = find_label("diag_subspace", readinput.input_lists);
EXPECT_EQ(it->second.get_availability(), "basis_type==pw and ks_solver==dav_subspace");
}
{ // md_nstep
auto it = find_label("md_nstep", readinput.input_lists);
param.input.mdp.md_nstep = 0;
Expand Down
Loading