Commit Graph

1974 Commits

Author SHA1 Message Date
ayakon 222238d32b Added an option to output real part of WFs with phases.
This is available only for Gamma-point calculations.
2023-08-03 20:13:28 +09:00
David Bowler 90471318b0
Merge pull request #239 from OrderN/update-LibXC-default
Update system.make
2023-08-03 10:36:15 +01:00
ayakon b6557f6f08
Merge pull request #217 from OrderN/improvement_output_STM_PP
PP: Added output of Efermi in eV unit
2023-08-03 18:28:21 +09:00
ayakon aebf7dc792
Merge pull request #216 from OrderN/f-PP_fermi_offset
PP: Add Fermi_offset
2023-08-03 18:20:10 +09:00
ayakon d6de513632 Changed the digit of the output for Efermi in eV unit to f10.3. 2023-08-03 18:17:10 +09:00
ayakon 72f8c9f644 Changed the digit of output of fermi_offset, Emin and Emax to f10.3. 2023-08-03 18:07:01 +09:00
David Bowler 69c8f66103
Update system.make for PAO generation
Bring into line with main source with LibXC v5 as default
2023-08-03 09:59:34 +01:00
David Bowler 1ff014ef27
Update system.make
Change the default version of LibXC to v5
2023-08-03 09:56:03 +01:00
ayakon 4ac32cc5a1 Changed to output the fermi_offset value regardless of nspin. 2023-08-03 17:44:43 +09:00
tsuyoshi38 89c4e2b8f7
Merge pull request #237 from OrderN/bugfix-calling_dump_pos_and_matrices
Bug(?) in the if-statement before calling dump_pos_and_matrices
2023-08-03 16:33:34 +09:00
tsuyoshi38 bbdeaa5a1a
Merge pull request #238 from OrderN/f-proj_PHM_BlockSize
Subruotine check_block_parameters was introduced.
2023-08-03 14:44:44 +09:00
Tsuyoshi Miyazaki b1d259c7f2 Subruotine check_block_parameters was introduced.
A few conditions related to the number of processes, dimension of Hamiltonian Matrix and Block Size are now checked. At present, CONQUEST simply stops if inappropriate setting for the block size and MPI processes is given.

Main one is ..
proc_cols must be smaller than blocks_c = (matrix_size_padH/ block size)
2023-08-03 14:35:51 +09:00
Tsuyoshi Miyazaki 9412fa6bce Bug in the if-statement before calling dump_pos_and_matrices has been removed.
After I updated the MacOS, I encountered a problem in the following part with the option (-O3).

if (n_dumpL>0 .and. mod (n_iter, n_dumpL) == 0) then
call dump_pos_and_matrices(index=unit_DM_save)
endif

The problem seems to come from the 2nd one when n_dumpL=0.
I thought it is not used since we also checked n_dumpL. But, it is probably safer to change it to

if (n_dumpL>0) then
if(mod (n_iter, n_dumpL) == 0) call dump_pos_and_matrices(index=unit_DM_save)
endif
2023-08-03 11:11:39 +09:00
David Bowler 609fb76cc6
Merge pull request #235 from OrderN/docs-add-energy-force-stress
Add documentation on energy, forces and stresses
2023-08-02 14:54:26 +01:00
David Bowler 524b6cd0c9 Add documentation on energy, forces and stresses
This is background theory for the manual which will be
expanded later.
2023-08-02 12:20:37 +01:00
tsuyoshi38 dc1065f31d
Merge pull request #233 from OrderN/f-proj_PHM_DiagModule
Changed the size of 'w', and renamed 'w' and 'local_w'.
2023-08-02 11:03:06 +09:00
Tsuyoshi Miyazaki 1618c1437a Changed the size of 'w', and renamed 'w' and 'local_w'.
Changed the size of 'w' from matrix_size_padH to matrix_size.
-> This has removed the bug related to the inconsistency about the size of this array.
In addition, the name of the array 'w' and 'local_w' were changed to 'evals' and 'local_evals', respectively.
2023-08-02 10:52:46 +09:00
Lionel e070bc7524
Merge pull request #232 from OrderN/f-ase-doc
F ase doc
2023-08-01 18:08:22 +02:00
Lionel f62dcd3fb1
Delete conquest.rst
we don't need this file
2023-08-01 17:49:05 +02:00
Lionel 2683261b31 a few modifications on headings (2) 2023-08-01 16:28:29 +02:00
Lionel dbb772b066 a few modifications on headings 2023-08-01 16:24:51 +02:00
Lionel 4d1e7c0c68 added ase-conquest.rst to index/rst 2023-08-01 16:17:37 +02:00
Lionel 64f894ac9a added documentation for ASE+CONQUEST 2023-08-01 16:08:44 +02:00
Lionel 04606377e7 added more doc on ASE/CONQUEST 2023-08-01 16:02:13 +02:00
tsuyoshi38 648210a97f
Merge pull request #231 from OrderN/f-proj_PHM_DiagModule
A bug related to gsum is removed.
2023-08-01 15:55:31 +09:00
Tsuyoshi Miyazaki a039a94aea A bug related to gsum is removed.
A bug related to gsum is removed.
The part using "ceiling" has been also changed. (no effect)
2023-08-01 15:40:05 +09:00
David Bowler 128446cda8
Merge pull request #229 from OrderN/bugfix-non-NA-stress
Fix non-NA and non-SCF stress issues
2023-07-31 08:02:15 +01:00
tsuyoshi38 52a19be79b
Merge pull request #228 from OrderN/f-proj_PHM_DiagModule
A bug in the case where  Diag.KProcGroups > 1 has been removed.
2023-07-28 16:29:04 +09:00
Tsuyoshi Miyazaki 0eaef36590 A bug in the case where Diag.KProcGroups > 1 has been removed.
A bug in the case where  Diag.KProcGroups > 1 has been removed.
Size of w in gsum is also changed following the comment by Dave.
2023-07-28 16:13:26 +09:00
Lionel e398616504 ASE/conquest doc modified (first part) 2023-07-27 19:58:58 +02:00
David Bowler 4081dfa00f Further updates to stress
These changes are actually for non-SCF GGA calculations, but fall
under the general umbrella of stress bug fixes.

Note that the XC_GGA_stress (which comes from changes in the XC
energy related to cell-induced changes in the density gradient)
are not quite correctly implemented.  For non-SCF there should
be a mix of input and output densities (and Exc and Vxc) used
for this term, but this is very complex to implement, so for
now we have an approximation: we mix the stress contribution
found using input and output densities.  The proportion can
be set using an input flag (but should not really be changed
from 0.5)
2023-07-26 12:24:21 +01:00
David Bowler 5de2765181 Updates for non-SCF stress
Mainly adding GGA XC contribution but also tidying and simplifying
non-SCF force routine to enable checking of formulae.

This appears to have a small error in the stress when using GGA
with non-SCF (and probably with PCC) at the level of 0.15GPa
which I'm unable to find at the moment
2023-07-25 15:10:50 +01:00
David Bowler 5cedbc1402 Updates to non-SCF NA stress
Fixing bugs for non-SCF stress with neutral atom (mainly a problem
with the formulation rather than code)
2023-07-24 16:10:30 +01:00
tsuyoshi38 ea57a4a7f2
Merge pull request #227 from OrderN/f-proj_PHM_DiagModule
Pull request to proj_PadHamiltonianMatrix (should work with a given block size)
2023-07-24 18:25:35 +09:00
Tsuyoshi Miyazaki 6f83727177 Small change in DistributeSC_to_ref.
I think the change make the code a little neater,
by replacing a do loop into a line with the expression for arrays.
(for the last block including the padded part.)
2023-07-24 17:54:20 +09:00
Tsuyoshi Miyazaki e366d0760c Debugged DiagModule.f90
Debugged DiagModule.f90 and add minor changes (some comments) to ScalapackFormat.f90 and DiagModule.f90
(Main bug in DiagModule.f90 was in PrepareRecv.
2023-07-24 17:29:43 +09:00
Tsuyoshi Miyazaki 664369273d A bug in generating eigenvectors in the case of "padH" has been removed.
A bug in generating eigenvectors in the case of "padH" has been removed.
Now, the results are consistent with the former version of CONQUEST, but it still has a problem after the movement of atoms.
2023-07-21 16:37:18 +09:00
Tsuyoshi Miyazaki b44ae037e9 Some bugs in DiagModule.f90 have been removed. (though we still have some problems.)
Some bugs in DiagModule.f90 have been removed. (though we still have some problems.)
2023-07-21 14:55:29 +09:00
Tsuyoshi Miyazaki 6b895d5f32 DiagModule.f90 has been changed to pad H or S matrices.
Subroutines (initDiag, distrib_and_diag, DistributeSC_to_ref ) have been changed.
2023-07-20 20:16:53 +09:00
tsuyoshi38 efee3c477a
Merge pull request #225 from OrderN/f-proj_PHM_ScalapackFormat
Let me proceed with this Pull request for f-proj_PadHamiltonianMatrix, since I want to generate the next-step branch from this branch.
2023-07-20 18:57:58 +09:00
Tsuyoshi Miyazaki dc2c53902f Changes for "Padding H and S matrices" have been introduced.
find_SC_row_atoms, find_ref_row_atoms, find_SC_col_atoms are changed to have the extended tables for the padded parts.
2023-07-20 15:50:18 +09:00
Tsuyoshi Miyazaki 1b98ec13e7 double(matrix_size) -> real(matrix_size,double) 2023-07-20 14:08:10 +09:00
Tsuyoshi Miyazaki 15f95b5feb For implementing "padding H and S matrices", flag_padH and matrix_size_padH have been introduced. 2023-07-20 13:46:21 +09:00
David Bowler dc6fcbaeef
Merge pull request #218 from OrderN/bugfix-non-scf-forces-and-structural-optimisation
Fixed problems with non-SCF forces and structural optimisation
2023-07-20 09:24:16 +09:00
David Bowler 2ee10a315b Fixed problems with non-SCF forces and structural optimisation
There was a missing minus sign in the PCC part of the non-SCF
forces, and a missing non-SCF exception when rebuilding the
charge density from the DM after atomic movement.
2023-07-19 10:59:09 +09:00
ayakon 3f8f65b528 Added output of Efermi in eV unit. 2023-07-18 20:21:08 +09:00
ayakon 558337b270 Write out the fermi_offset value (if not zero) in Conquest_out 2023-07-18 18:58:40 +09:00
ayakon 520d989a6b Added fermi_offset to Emin and Emax in sub:tersoff_hamann. 2023-07-18 16:21:39 +09:00
David Bowler 63fa156ebe
Merge pull request #212 from OrderN/f-tidy-band-densities
Tidied defaults for band densities
2023-07-11 18:00:58 +09:00
David Bowler bd6afc0b78 Tidied defaults for band densities
Changed band output so that defaults are now consistent.
Removed unnecessary output when bands are not output.
2023-07-07 13:33:55 +01:00