Commit Graph

74 Commits

Author SHA1 Message Date
Pietro Delugas efe0f2e5dd updating schema version for pw and cp 2020-07-18 14:42:36 +02:00
Pietro Delugas e1a558b41c updating the schema to the new release
very few changes
2019-12-06 16:40:52 +01:00
Paolo Giannozzi fd7123038b XML file is always read by one processor, broadcast to all others, not
only when final data is read but also in case of restart, nscf calculations.
Function qexsd_readschema is now a subroutine, following the rule that
- functions should be preferred when only one variable is changed,
- subroutines should be used instead in all other cases.
2019-10-06 19:19:23 +02:00
Paolo Giannozzi 01c759e5ab Routine pw_read_schema, reading the xml file, moved to qexsd_module with new
name qexsd_readschema. Still not working for CP: it requires a way to read
CP-specific stuff without introducing CP-specific variables. Note: the routine
is now a function returning an error code (-1: no input, 0: all right, 1: no
file, 2-4: error reading general, parallel, output objects) that must be tested
in the calling program.
2019-08-13 11:48:51 +02:00
Paolo Giannozzi 587b2f5dc7 Some more xml cleanup
Definition of xml input object moved into module qexsd_input
2019-08-12 15:17:25 +02:00
Paolo Giannozzi 9a3e1dc7b1 More I/O cleanup (or messup)
Routines filling xml objects: qexsd_init_*, with QE variables passed as
arguments, taken out from qexsd_module and moved to a separate qexsd_init
module in file Modules/qexsd_init.f90. In the process, some unused variables
have been removed and make.depend updated.
No true changes and no side effect expected, just some re-ordering.
There are still some qexsd_init_* routines that either follow a different
logic, or that are called inside routines in qexsd_module (notably: general,
parallel, timing info, MD steps) that write the xml file, or that contain
references to QE modules. These will be fixed sooner or later.
2019-08-12 12:39:12 +02:00
Paolo Giannozzi 60ca6eff36 Some more xml cleanup: routines writing the xml file collected into the
same region of code; comments better explaining what is going on
2019-08-10 15:10:21 +02:00
Paolo Giannozzi ea0d58461b XML and FoX cleanup and simplification
No need to set a unit for I/O
2019-08-10 09:33:39 +02:00
Paolo Giannozzi 95681ee19e Misc fixes:
- some compilers don't like to pass pointers that are neither set nor explicitly nullified
- configure updated to reflect the latest changes
2019-08-03 08:37:46 +02:00
Pietro Delugas 2b61bc1bbc fixing printout of ibrav in xml data file
* The printout of ibrav in xml data file could be wrong if the
initializing routine had to be called multiple times because of the
missed  iinitialization of optional pointers to NULL pointer.

* to describe cases with  ibrav < 0 the  new boolean attribute
  use_alternative_axes has been  added to the atomic_structure element
  in the xml schema, ibrav < 0 corresponds to bravais_index = abs(ibrav)
  and use_alternative_axes = .true.

* more pointers to optional arguments are now initialized run time for
  the same reason
2019-08-02 18:20:53 +00:00
Paolo Giannozzi efb97211c4 Unexpected side effects of removal of "input_parameters" in phonon:
it is used in an obscure and nonlocal way. Reverted for the time being.
Some more cleanupo here and there
2019-07-17 16:55:45 +02:00
giannozz 5787b68afd More input_paraneters removal 2019-07-15 18:29:50 +02:00
Paolo Giannozzi d9bbc5e1bf I/O cleanup: routines used to copy xml into QE variables moved to
Modules. They should replace all "readschema" routines in PW.
make.depend updated
2019-06-10 21:35:55 +02:00
giannozz 0463c2aefc misspells 2019-04-18 12:58:34 +02:00
Pietro Delugas cb8be269f3 updating schema filename with last changes
* the type n_opt_steps in convergence info has been moved from
  positiveInteger to integer the allow the 0 value that is printed when
  the structural relaxation makes no steps ( computet forces and stress
  are already below the threshold )
2019-03-04 10:19:11 +01:00
Pietro Delugas bd1fedf22f update of release notes and small fixes to xml 2019-02-28 15:21:19 +01:00
Pietro Delugas 158ffd51dd updating version and xml format version info
version is now 6.4rc
xml format version 19.02.07
2019-02-27 00:29:08 +01:00
Pietro Delugas f44185e5c7 fixing the interface of localization with xml file 2019-02-27 00:03:01 +01:00
normarivano ed6b7bde90 Fix allocation size of str_pol_obj in qexsd_init_berryPhaseOutput
The routine crashes wherever the number of strings used to compute the polarization is larger than the number of atoms within the system. The reason is an error in the allocation of memory associated to the str_pol_obj.
2019-02-25 16:11:30 +00:00
Pietro Delugas 1f88e9061f adding LUMO value to band structure when available 2019-02-19 14:18:00 +01:00
Pietro Delugas 3b20b0ff9f modified xml printout for vdw element
* fixed reporting for xdm cases
* added Grimme-d3 case
2019-02-12 18:07:17 +00:00
Pietro Delugas dd533d9363 invert order of real_space_beta and real_space_q
these two arguments in the call of qes_init_algorithmic_info were
inverted.
2018-08-28 13:43:52 +02:00
Pietro Delugas 2df01e13ca fixed header and cpu_time for CP in xml data file 2018-08-23 11:01:17 +02:00
Pietro Delugas b7539005a1 few additions to pw xml schema and other fixes
1. Added in input/electron_control the element real_space_beta.
   It is equivalent to real_space = .true. in the namelist input
2. Added in algorithmic info a real_space_beta which indicates whether
   beta projectors are applied in direct space.
3. Fixed the real_space_q variable in which now copied in the file the value of
   tqr internal variable of pw
4. Added to output/convergence_info/scf_conv the boolean element convergence_achieved
5. Added to ouptut/convergence_info/opt_conv the boolean element convergence_achieved
6. The output/convergence_info element has been set as optional in the schema and now
   in printed only by pw while cp omits printing it.
2018-08-23 11:01:17 +02:00
Pietro Delugas 9ac0fbb8b5 on exit punch all must deallocate qexsd_steps
in case of multiple pw runs made by the same image, after each run
the allocatatable steps in qexsd_module must be deallocated.
2018-05-16 17:37:29 +02:00
Paolo Giannozzi eb8f4f9b11 Removal of useless calls to iotk; replace two-line module qes_module with
two lines; one XLM corrected to XML; make.depend updated
2018-05-15 15:05:08 +02:00
Pietro Delugas f43e72c9aa Yet another funny bug of PGI compiler workaround 2018-04-19 18:21:19 +02:00
Pietro Delugas 3d7450011e no more scalar arguments as size=1 arrays 2018-04-17 11:07:34 +02:00
Pietro Delugas 66f51495cd gate info printed to xml output file
added the gate element to the electric field section of the xml file.
the initialization of the electric field element in pw_restart new
has been reorganized.
2018-04-16 09:28:10 +02:00
Pietro Delugas 680e1a7277 Optional args of qexsd_init_* redefined as arrays
the insertion of optional arguments in qexsd_init subroutines has been
modified. Instead of having a different call for each case with
differentdifferente arguments now a single call is done. Optional
arguments may be allocated according the case. To keep compatibility
with older gfortran versions allocatable scalars are treated as one
dimensional arrays.

PW/src/add_qexsd_step.f90 has been modified and now expects input
argumenarguments in Hartree units.
2018-04-16 09:28:10 +02:00
Paolo Giannozzi d270c907b5 qexsd_init_total_energy was internally converting energies to Ha from Ry.
In CP, this was leading to printing of (harless but incorrect) half ot the
true value of all energy terms. I think that interface routines in qexsd.f90
should accepot Hartree both when reading and when writing.
NOTE: the call to qexsd_init_total_energy in qexsd_step_addstep was in my
opinion not correct before (now I think it is)
2018-04-08 22:50:39 +02:00
giannozz ce6c3df12b Some #ifdef converted to #if defined
Added "vector" version of metaGGA routines (Hsin-Yu Ho, Marcos Calegari Andrade)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@14020 c92efa57-630b-4861-b058-cf58834340f0
2017-11-29 06:16:32 +00:00
giannozz 9a34491c93 My compiler doesn't like "named" IFs. Made simpler, should do the same job
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13989 c92efa57-630b-4861-b058-cf58834340f0
2017-11-10 16:34:16 +00:00
pietrodelugas f249273f82 in qexsd.f90 the optional argument pot_stat_contr was passed directly as mandatory argument to qes_init_total_energy even when it was not actually present. This created some confusion to Cray fortran compiler. This energy term must in any case be converted from Ry to Ha units before beig passed to the initialization routine. Thanks to Samuel Ponce for reporting the problem
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13984 c92efa57-630b-4861-b058-cf58834340f0
2017-11-10 08:08:46 +00:00
paulatto 9e337f3ba9 New code to compute total energy and phonons in 2D materials by enforcing 2D periodic boundary conditions. Inter-layer Coulomb interaction is truncated. Vacuum space need to be larger than the layer size. Also check phonon example17 and input documentation.
Developed by Thibault Sohier, Matteo Calandra, Francesco Mauri



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13952 c92efa57-630b-4861-b058-cf58834340f0
2017-10-25 10:40:59 +00:00
pietrodelugas 0aeb0422f8 in the xml output for molecular dynamics coordinates at each md step were printed in alat units instead of bohr
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13899 c92efa57-630b-4861-b058-cf58834340f0
2017-10-08 14:20:14 +00:00
pietrodelugas 6f63cf30c9 lattice parameters are printed in atomic units also in the step elements; fake comment is added in case the xml input is copied from an external file
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13898 c92efa57-630b-4861-b058-cf58834340f0
2017-10-06 14:34:20 +00:00
kokalj 679413cfa0 allowing the london_c(i) = 0.0 specs to mean what it does (0.0 and not default C6 value)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13880 c92efa57-630b-4861-b058-cf58834340f0
2017-09-27 15:20:49 +00:00
pietrodelugas 29dbc5ddac module was writing wrong location for xsd schema
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13773 c92efa57-630b-4861-b058-cf58834340f0
2017-08-25 07:16:40 +00:00
pietrodelugas 4f47d85348 XML: improved the write out of starting_k and other fields which currently must be read on restart. This improvement seems to solve some issues related reading info from non self consistent computations started by phonon and other linear response codes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13697 c92efa57-630b-4861-b058-cf58834340f0
2017-08-07 10:53:12 +00:00
pietrodelugas da6932e77f added in qes_libs an interface to initialize the matrix and integerMatrix types with arrays of different rank. This should solve the out of bounds error.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13692 c92efa57-630b-4861-b058-cf58834340f0
2017-08-05 19:18:48 +00:00
pietrodelugas 3d899b7d2c renaming the polarization element of BerryPhase to totalPolarization
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13687 c92efa57-630b-4861-b058-cf58834340f0
2017-08-04 13:35:02 +00:00
pietrodelugas 6d7405311a added an k_point_IBZ object to store starting k point for non runs spawned by linear response codes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13660 c92efa57-630b-4861-b058-cf58834340f0
2017-07-31 07:51:10 +00:00
pietrodelugas c961d6b145 for XML I/O in pw.x and cp.x iotk has been replaced with FoX
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13654 c92efa57-630b-4861-b058-cf58834340f0
2017-07-30 17:59:35 +00:00
ferretti f1e6b8464a fixed inconsistency spotted with debug flags
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13542 c92efa57-630b-4861-b058-cf58834340f0
2017-06-01 16:11:24 +00:00
giannozz 31f6186fec Glitches with new xml file after recent changes for CP compatibility.
IMPORTANT NOTE: in LSDA nbnd is the sum of up and down nbnd, as it should be,
so it must be divided by 2 in PW when it is read from file


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13499 c92efa57-630b-4861-b058-cf58834340f0
2017-05-09 07:16:58 +00:00
giannozz 2da16230f7 New xml for CP seems to work for spin-polarized case as well. A change to
qexsd_init_band_structure was needed in order to allow the number of bands
for spin up and for spin down to be different. Some cleanup (a tiny fraction 
of what is needed) in cp_restart_new.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13483 c92efa57-630b-4861-b058-cf58834340f0
2017-05-02 17:57:08 +00:00
giannozz a99c49ed8a Simplification: no need to pass first dimension of an array
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13460 c92efa57-630b-4861-b058-cf58834340f0
2017-04-08 10:45:34 +00:00
giannozz 4043569d3e Various small changes, updated acknowledgments and make.depend:
- error message in latgen also for negative ibrav
- double grid warning for NCPP only if no core charge (Hyungjun Lee)
- PGI problem with new xml format: do not pass unallocated arrays
- more updates to (still unfinished) cp_restart_new



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13459 c92efa57-630b-4861-b058-cf58834340f0
2017-04-08 06:24:01 +00:00
giannozz 9ef1b00e40 The new xml format with schema is now the default. Use configure option
"--disable-xml", or add -D__OLDXML to MANUAL_FLAGS in make.inc, to revert
to the old xml format (note: configure is not yet updated). IMPORTANT NOTICE: 
some codes *.e.g CP) will no longer work with the default choice, until fixed. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13405 c92efa57-630b-4861-b058-cf58834340f0
2017-03-16 09:42:22 +00:00