quantum-espresso/PW/Makefile

351 lines
5.7 KiB
Makefile
Raw Normal View History

# Makefile for PW
include ../make.sys
PWOBJS = \
a2fmod.o \
add_bfield.o \
add_efield.o \
add_vuspsi.o \
add_vuspsi_nc.o \
addusdens.o \
addusforce.o \
addusstress.o \
allocate_bp_efield.o \
allocate_fft.o \
allocate_locpot.o \
allocate_nlpot.o \
allocate_wfc.o \
atomic_rho.o \
atomic_wfc.o \
atomic_wfc_nc.o \
average_pp.o \
becmod.o \
bp_c_phase.o \
bp_calc_btq.o \
bp_qvan3.o \
bp_strings.o \
buffers.o \
c_bands.o \
c_phase_field.o \
ccalbec.o \
ccalbec_nc.o \
ccgdiagg.o \
cdiagh.o \
cdiaghg.o \
cegterg.o \
cft3.o \
cft3s.o \
checkallsym.o \
checksym.o \
cinitcgg.o \
clean_pw.o \
close_files.o \
compute_dip.o \
compute_rho.o \
compute_rho_new.o \
compute_fes_grads.o \
compute_scf.o \
compute_qdipol.o \
compute_qdipol_so.o \
compute_ux.o \
coset.o \
cryst_to_car.o \
cubicsym.o \
d_matrix.o \
data_structure.o \
davcio.o \
deriv_drhoc.o \
divide_class.o \
divide_class_so.o \
realus.o \
diropn.o \
divide.o \
divide_et_impera.o \
dndepsilon.o \
dndtau_of_k.o \
dprojdepsilon.o \
dprojdtau.o \
dqvan2.o \
drhoc.o \
dvloc_of_g.o \
dynamics_module.o \
efermig.o \
efermit.o \
electrons.o \
eqvect.o \
error_handler.o \
ewald.o \
ewald_dipole.o \
exx.o \
find_group.o \
force_cc.o \
force_corr.o \
force_ew.o \
force_hub.o \
force_lc.o \
force_us.o \
forces.o \
g_psi.o \
g_psi_mod.o \
gen_at_dj.o \
gen_at_dy.o \
gen_us_dj.o \
gen_us_dy.o \
get_locals.o \
ggen.o \
gk_sort.o \
gradcorr.o \
SCF with Projector-Augmented Wave Pseudopotential (PAW) routines added. This means that a lot of routines have been modified and a few files have been added. During the year several people have contributed to this code, mainly Guido Fratesi, Ricardo Mazzarello, Stefano de Gironcoli, Andrea Dal Corso and me (Lorenzo Paulatto). A brief report of modified or added files follows, further down you will find a loger report of modifications that was necessary to merge develop_PAW branch with the current CVS version. Current version is not 100% functional, but it doesn't brake anything else and can be used to generate and test PAW pseudopotential. ************************************* *** Brief report of modifications *** ************************************* Modified files: PW/clean_pw.f90 PW/electrons.f90 PW/print_clock_pw.f90 PW/hinit0.f90 PW/potinit.f90 PW/newd.f90 PW/summary.f90 PW/setup.f90 PW/read_pseudo.f90 PW/init_us_1.f90 PW/init_run.f90 PW/mix_rho.f90 atomic/atomic_paw.f90 atomic/write_paw_recon.f90 atomic/ld1_writeout.f90 atomic/write_resultsps.f90 atomic/ld1inc.f90 atomic/ld1_readin.f90 atomic/gener_pseudo.f90 atomic/parameters.f900 atomic/run_pseudo.f900 atomic/set_rho_core.f90 atomic/pseudovloc.f90 Modules/read_upf.f90 Modules/uspp.f90 Modules/pseudo_types.f90 Modules/parameters.f90 Added files: PW/grid_paw_routines.f90 PW/rad_paw_routines.f90 Modules/grid_paw_variables.f90 Modules/read_paw.f90 Added files that will be removed: PW/rad_paw_trash.f90 PW/paw_xc.f90 Examples: examples/PAWexample contains a full test of PAW pseudopotential for Oxygen. The test consist in these tasks: - 2 norm conserving, 2 US and 4 PAW pseudopotentials are generated and tested in ld1 - pw test for an isolated O atom at different cutoffs - pw test for an O2 molecule at different O-O distance please read examples/PAWexample/README for (a few) details. NOTES: 1. new modifications to atomic_paw (and related) from ADC have been rolled back, as they were breaking a lot of things, I will reintroduce them later when I am sure that everything works properly. 2. the files PW/paw_xc.f90 and Modules/rad_paw_trash.f90 will be removed in the next few weeks. TODO: 1. use new ld1 XC code as much as possible, and remove legacy XC routines from rad_paw_routines 2. full self-consistency with radial energies 3. make new Harris-Foulkes estimate paw-aware 4. provide some kind error estimate 5. FORCES and stress!! (require symmetrization of becsums) 6. cleanup ************************ *** merge of PW code *** ************************ Versions notation: OLD=version from 2 years ago used as reference to generate the patches NEW=CURRENT=current trunk version PAW=current develop_PAW version Note: pseudo-potential input and allocation routines changed a lot in the last years, this is a diagram: OLD:PW/readin ~~> PAW:PW/read_pseudo --> disappears pops out --> PAW:PW/readin ~~> NEW:PW/read_pseudo added files: Modules/read_paw.f90 (contains module read_paw_module with subroutines paw_io nullify_pseudo_paw, allocate_pseudo_paw and deallocate_pseudo_paw previously in removed file Modules/readpseudo.f90. Also contains module paw_to_internal with subroutine set_pseudo_paw, previously in upf_to_internal.f90) PW/paw_xc.f90 (contains OLD=PAW xc and gcxc routines as adapting paw grid code to use new routines was very error prone and quite worthless, as it has to be removed anyway) Conflicts reported by CVS during merge: DONE */Makefiles (all replaced with new, redone by hand) DONE flib/functionals.f90 (nothing to do) DONE Modules/functionals.f90 (RNV == replaced with NEW version) DONE Modules/atom.f90 (trivial: duped rgrid) DONE Modules/autopilot.f90 (trivial) DONE Modules/bfgs_module.f90 (RNV) DONE Modules/cell_base.f90 (RNV) DONE Modules/check_stop.f90 (RNV) DONE Modules/constants.f90 (RNV) DONE Modules/constraints_module.f90 (RNV) DONE Modules/energies.f90 (RNV) DONE Modules/input_parameters.f90 (RNV) DONE Modules/ions_base.f90 (RNV, has 3 new subs) DONE Modules/ions_nose.f90 (RNV) DONE Modules/parameters.f90 (actually RNV) DONE Modules/path_base.f90 (RNV) DONE Modules/path_opt_routines.f90 (RNV) DONE Modules/path_reparametrisation.f90 (RNV) DONE Modules/path_variables.f90 (RNV) DONE Modules/pseudo_types.f90 (cleaned double def of paw_t) DONE Modules/read_cards.f90 (RNV) DONE Modules/read_namelists.f90 (checked and RNV) DONE Modules/uspp.f90 (trivial) DONE Modules/xml_io_base.f90 (RNV) DONE PW/read_pseudo.f90 (merged by hand with PAW PW/readin) DONE PW/bp_calc_btq.f90 (trivial) DONE PW/c_bands.f90 (actually RNV) DONE PW/ccgdiagg.f90 (RNV) DONE PW/cegterg.f90 (RNV) DONE PW/cft3s.f90 (RNV) DONE PW/cinitcgg.f90 (RNV) DONE PW/c_phase_field.f90 (RNV) DONE PW/divide_et_impera.f90 (nothing to do?) DONE PW/exx.f90 (RNV) DONE PW/hinit0.f90 (easy) DONE PW/h_psi.f90 (RNV) DONE PW/init_run.f90 (easy) DONE PW/kpoint_grid.f90 (nothing to do?) DONE PW/newd.f90 (required mod in newd_paw_grid, CHECK!!) DONE PW/openfil.f90 (actually RNV) DONE PW/paw.f90 (actually RNV) DONE PW/punch.f90 (RNV) DONE PW/pwscf.f90 (quite RNV) DONE PW/set_kup_and_kdw.f90 (RNV) DONE PW/setup.f90 (RNV + 2 line merged by hand) DONE PW/sgama.f9 (actually RNV) DONE PW/sgam_at_mag.f90 (actually RNV) DONE PW/stop_run.f90 (actually RNV) DONE PW/stres_gradcorr.f90 (actually RNV) DONE PW/symrho_mag.f90 (nothing to do) DONE PW/v_of_rho.f90 (RNV) DONE PW/compute_fes_grads.f90 (RNV) DONE PW/gradcorr.f90 (RNV) DONE PW/input.f90 (RNV) DONE PW/pw_restart.f90 (RNV) DONE PW/read_ncpp.f90 (actually RNV) DONE PW/summary.f90 (RNV + inserted new PP type) DONE PW/wfcinit.f90 (RNV) the hard ones: DONE PW/electrons.f90 (adapted code to new syntaxes, a lot of cleanup, removed some PAW junk that can be readded later, removed parts that were applyed twice, or had been removed in trunk, the rhog allocations and usage may need fixes) DONE PW/mix_rho.f90 (merged tauk and paw additions, a bit of cleanup and smarter variables names) DONE PW/init_us_1.f90 (qtot redefined with "triangular" index nb,mb-->ijv) modified for compiling: Modules/io_files.f90 (depatched) PW/pwcom.f90 (depatched) Modules/parameters.f90 (temporary readded cp_lmax = lmaxx+1) PW/newd.f90 (merge was wrong, redone mostly by hand) PW/read_ncpp.f90 (depatched) PW/read_pseudo (small fixes) PW/sgam_at_mag.f90 (depatched) PW/sgama.f90 (depatched) PW/stres_gradcorr.f90 (depatched) modified for running: PW/clean_pw.f90 (added call to deallocate_paw_internals) Modifications to PAW routines: 1. compute_onecenter_charges and compute_onecenter_charges modified to comply with new structure of v_xc (in v_of_rho.f90), requiring new g-space densities to be saved and computed --> using old xc routines as this code will be removed. 2. qrad size has changed, prad and ptrad had to be changed accordingly. 3. several minor modifications to use new radial grid structure. 4. infomsg arguments changed, very funny bug followed. 5. added new routine deallocate_paw_internals, called by PW/clean_pw.f90 required to run pp.x with more than one q-point(and good programming practice) ************************* *** merge of LD1 code *** ************************* 2nd try: atomic code replaced with current version, then merge by hand the files that are used by paw subsystem: * atomic_paw.f90 (replaced with most recent version from develop_PAW routine us2paw and paw2us taken from newer trunk version, a lot of minor changes.) * gener_pseudo.f90 (fixes) * ld1inc.f90 (PAW variables added) * ld1_readin.f90 (PAW variables added, I am not sure if lpaw should go in input or inputp namelist) * ld1_writeout.f90 (it was only necessary to add a few lines) * pseudovloc.f90 (nothing to do) * run_pseudo.f90 (almost nothing to do) * set_rho_core.f90 (readded a few lines for lnc2paw) * write_paw_recon.f90 (nothing to do) * write_resultsps.f90 (nothing to do: trunk version is more PAW-aware than PAW version) Main problems were found in subroutines run_pseudo and gen_pseudo, a little code had to be rewritten to comply with new variable names and fix with merge. TODO: fix atomic_paw routines to use minimal allocated arrays insetad of ndmx sized ones; try to use the pawet as much as possible. Remove test lines and other garbage. Find a fix for PAW2. The first week of september Andrea Dal Corso uploaded a few modifications to the atomic_paw routines. I had to rollback them as the structure of atomic_paw has changed a lot and reimplementing them is probably easier and definitely safer than fixing everything. I will do it soon, I swear! LP git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4257 c92efa57-630b-4861-b058-cf58834340f0
2007-09-18 18:05:46 +08:00
grid_paw_routines.o \
gweights.o \
g2_kin.o \
h_epsi_her_apply.o \
h_epsi_her_set.o \
h_1psi.o \
h_psi.o \
h_psi_nc.o \
h_psi_meta.o \
hexsym.o \
hinit0.o \
hinit1.o \
init_ns.o \
init_paw_1.o \
init_paw_2.o \
init_run.o \
init_us_1.o \
init_us_2.o \
init_at_1.o \
init_vloc.o \
input.o \
interpolate.o \
inverse_s.o \
io_rho_xml.o \
ions.o \
irrek.o \
iweights.o \
kpoint_grid.o \
lchk_tauxk.o \
make_pointlists.o \
makov_payne.o \
memory_report.o \
mix_pot.o \
mix_rho.o \
mode_group.o \
move_ions.o \
multable.o \
n_plane_waves.o \
new_ns.o \
ns_adj.o \
newd.o \
noncol.o \
non_scf.o \
openfil.o \
orthoatwfc.o \
output_tau.o \
para.o \
paw.o \
SCF with Projector-Augmented Wave Pseudopotential (PAW) routines added. This means that a lot of routines have been modified and a few files have been added. During the year several people have contributed to this code, mainly Guido Fratesi, Ricardo Mazzarello, Stefano de Gironcoli, Andrea Dal Corso and me (Lorenzo Paulatto). A brief report of modified or added files follows, further down you will find a loger report of modifications that was necessary to merge develop_PAW branch with the current CVS version. Current version is not 100% functional, but it doesn't brake anything else and can be used to generate and test PAW pseudopotential. ************************************* *** Brief report of modifications *** ************************************* Modified files: PW/clean_pw.f90 PW/electrons.f90 PW/print_clock_pw.f90 PW/hinit0.f90 PW/potinit.f90 PW/newd.f90 PW/summary.f90 PW/setup.f90 PW/read_pseudo.f90 PW/init_us_1.f90 PW/init_run.f90 PW/mix_rho.f90 atomic/atomic_paw.f90 atomic/write_paw_recon.f90 atomic/ld1_writeout.f90 atomic/write_resultsps.f90 atomic/ld1inc.f90 atomic/ld1_readin.f90 atomic/gener_pseudo.f90 atomic/parameters.f900 atomic/run_pseudo.f900 atomic/set_rho_core.f90 atomic/pseudovloc.f90 Modules/read_upf.f90 Modules/uspp.f90 Modules/pseudo_types.f90 Modules/parameters.f90 Added files: PW/grid_paw_routines.f90 PW/rad_paw_routines.f90 Modules/grid_paw_variables.f90 Modules/read_paw.f90 Added files that will be removed: PW/rad_paw_trash.f90 PW/paw_xc.f90 Examples: examples/PAWexample contains a full test of PAW pseudopotential for Oxygen. The test consist in these tasks: - 2 norm conserving, 2 US and 4 PAW pseudopotentials are generated and tested in ld1 - pw test for an isolated O atom at different cutoffs - pw test for an O2 molecule at different O-O distance please read examples/PAWexample/README for (a few) details. NOTES: 1. new modifications to atomic_paw (and related) from ADC have been rolled back, as they were breaking a lot of things, I will reintroduce them later when I am sure that everything works properly. 2. the files PW/paw_xc.f90 and Modules/rad_paw_trash.f90 will be removed in the next few weeks. TODO: 1. use new ld1 XC code as much as possible, and remove legacy XC routines from rad_paw_routines 2. full self-consistency with radial energies 3. make new Harris-Foulkes estimate paw-aware 4. provide some kind error estimate 5. FORCES and stress!! (require symmetrization of becsums) 6. cleanup ************************ *** merge of PW code *** ************************ Versions notation: OLD=version from 2 years ago used as reference to generate the patches NEW=CURRENT=current trunk version PAW=current develop_PAW version Note: pseudo-potential input and allocation routines changed a lot in the last years, this is a diagram: OLD:PW/readin ~~> PAW:PW/read_pseudo --> disappears pops out --> PAW:PW/readin ~~> NEW:PW/read_pseudo added files: Modules/read_paw.f90 (contains module read_paw_module with subroutines paw_io nullify_pseudo_paw, allocate_pseudo_paw and deallocate_pseudo_paw previously in removed file Modules/readpseudo.f90. Also contains module paw_to_internal with subroutine set_pseudo_paw, previously in upf_to_internal.f90) PW/paw_xc.f90 (contains OLD=PAW xc and gcxc routines as adapting paw grid code to use new routines was very error prone and quite worthless, as it has to be removed anyway) Conflicts reported by CVS during merge: DONE */Makefiles (all replaced with new, redone by hand) DONE flib/functionals.f90 (nothing to do) DONE Modules/functionals.f90 (RNV == replaced with NEW version) DONE Modules/atom.f90 (trivial: duped rgrid) DONE Modules/autopilot.f90 (trivial) DONE Modules/bfgs_module.f90 (RNV) DONE Modules/cell_base.f90 (RNV) DONE Modules/check_stop.f90 (RNV) DONE Modules/constants.f90 (RNV) DONE Modules/constraints_module.f90 (RNV) DONE Modules/energies.f90 (RNV) DONE Modules/input_parameters.f90 (RNV) DONE Modules/ions_base.f90 (RNV, has 3 new subs) DONE Modules/ions_nose.f90 (RNV) DONE Modules/parameters.f90 (actually RNV) DONE Modules/path_base.f90 (RNV) DONE Modules/path_opt_routines.f90 (RNV) DONE Modules/path_reparametrisation.f90 (RNV) DONE Modules/path_variables.f90 (RNV) DONE Modules/pseudo_types.f90 (cleaned double def of paw_t) DONE Modules/read_cards.f90 (RNV) DONE Modules/read_namelists.f90 (checked and RNV) DONE Modules/uspp.f90 (trivial) DONE Modules/xml_io_base.f90 (RNV) DONE PW/read_pseudo.f90 (merged by hand with PAW PW/readin) DONE PW/bp_calc_btq.f90 (trivial) DONE PW/c_bands.f90 (actually RNV) DONE PW/ccgdiagg.f90 (RNV) DONE PW/cegterg.f90 (RNV) DONE PW/cft3s.f90 (RNV) DONE PW/cinitcgg.f90 (RNV) DONE PW/c_phase_field.f90 (RNV) DONE PW/divide_et_impera.f90 (nothing to do?) DONE PW/exx.f90 (RNV) DONE PW/hinit0.f90 (easy) DONE PW/h_psi.f90 (RNV) DONE PW/init_run.f90 (easy) DONE PW/kpoint_grid.f90 (nothing to do?) DONE PW/newd.f90 (required mod in newd_paw_grid, CHECK!!) DONE PW/openfil.f90 (actually RNV) DONE PW/paw.f90 (actually RNV) DONE PW/punch.f90 (RNV) DONE PW/pwscf.f90 (quite RNV) DONE PW/set_kup_and_kdw.f90 (RNV) DONE PW/setup.f90 (RNV + 2 line merged by hand) DONE PW/sgama.f9 (actually RNV) DONE PW/sgam_at_mag.f90 (actually RNV) DONE PW/stop_run.f90 (actually RNV) DONE PW/stres_gradcorr.f90 (actually RNV) DONE PW/symrho_mag.f90 (nothing to do) DONE PW/v_of_rho.f90 (RNV) DONE PW/compute_fes_grads.f90 (RNV) DONE PW/gradcorr.f90 (RNV) DONE PW/input.f90 (RNV) DONE PW/pw_restart.f90 (RNV) DONE PW/read_ncpp.f90 (actually RNV) DONE PW/summary.f90 (RNV + inserted new PP type) DONE PW/wfcinit.f90 (RNV) the hard ones: DONE PW/electrons.f90 (adapted code to new syntaxes, a lot of cleanup, removed some PAW junk that can be readded later, removed parts that were applyed twice, or had been removed in trunk, the rhog allocations and usage may need fixes) DONE PW/mix_rho.f90 (merged tauk and paw additions, a bit of cleanup and smarter variables names) DONE PW/init_us_1.f90 (qtot redefined with "triangular" index nb,mb-->ijv) modified for compiling: Modules/io_files.f90 (depatched) PW/pwcom.f90 (depatched) Modules/parameters.f90 (temporary readded cp_lmax = lmaxx+1) PW/newd.f90 (merge was wrong, redone mostly by hand) PW/read_ncpp.f90 (depatched) PW/read_pseudo (small fixes) PW/sgam_at_mag.f90 (depatched) PW/sgama.f90 (depatched) PW/stres_gradcorr.f90 (depatched) modified for running: PW/clean_pw.f90 (added call to deallocate_paw_internals) Modifications to PAW routines: 1. compute_onecenter_charges and compute_onecenter_charges modified to comply with new structure of v_xc (in v_of_rho.f90), requiring new g-space densities to be saved and computed --> using old xc routines as this code will be removed. 2. qrad size has changed, prad and ptrad had to be changed accordingly. 3. several minor modifications to use new radial grid structure. 4. infomsg arguments changed, very funny bug followed. 5. added new routine deallocate_paw_internals, called by PW/clean_pw.f90 required to run pp.x with more than one q-point(and good programming practice) ************************* *** merge of LD1 code *** ************************* 2nd try: atomic code replaced with current version, then merge by hand the files that are used by paw subsystem: * atomic_paw.f90 (replaced with most recent version from develop_PAW routine us2paw and paw2us taken from newer trunk version, a lot of minor changes.) * gener_pseudo.f90 (fixes) * ld1inc.f90 (PAW variables added) * ld1_readin.f90 (PAW variables added, I am not sure if lpaw should go in input or inputp namelist) * ld1_writeout.f90 (it was only necessary to add a few lines) * pseudovloc.f90 (nothing to do) * run_pseudo.f90 (almost nothing to do) * set_rho_core.f90 (readded a few lines for lnc2paw) * write_paw_recon.f90 (nothing to do) * write_resultsps.f90 (nothing to do: trunk version is more PAW-aware than PAW version) Main problems were found in subroutines run_pseudo and gen_pseudo, a little code had to be rewritten to comply with new variable names and fix with merge. TODO: fix atomic_paw routines to use minimal allocated arrays insetad of ndmx sized ones; try to use the pawet as much as possible. Remove test lines and other garbage. Find a fix for PAW2. The first week of september Andrea Dal Corso uploaded a few modifications to the atomic_paw routines. I had to rollback them as the structure of atomic_paw has changed a lot and reimplementing them is probably easier and definitely safer than fixing everything. I will do it soon, I swear! LP git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4257 c92efa57-630b-4861-b058-cf58834340f0
2007-09-18 18:05:46 +08:00
paw_xc.o \
potinit.o \
print_clock_pw.o \
print_ks_energies.o \
psymrho.o \
psymrho_mag.o \
punch.o \
pw_gemm.o \
pw_restart.o \
pwcom.o \
qvan2.o \
SCF with Projector-Augmented Wave Pseudopotential (PAW) routines added. This means that a lot of routines have been modified and a few files have been added. During the year several people have contributed to this code, mainly Guido Fratesi, Ricardo Mazzarello, Stefano de Gironcoli, Andrea Dal Corso and me (Lorenzo Paulatto). A brief report of modified or added files follows, further down you will find a loger report of modifications that was necessary to merge develop_PAW branch with the current CVS version. Current version is not 100% functional, but it doesn't brake anything else and can be used to generate and test PAW pseudopotential. ************************************* *** Brief report of modifications *** ************************************* Modified files: PW/clean_pw.f90 PW/electrons.f90 PW/print_clock_pw.f90 PW/hinit0.f90 PW/potinit.f90 PW/newd.f90 PW/summary.f90 PW/setup.f90 PW/read_pseudo.f90 PW/init_us_1.f90 PW/init_run.f90 PW/mix_rho.f90 atomic/atomic_paw.f90 atomic/write_paw_recon.f90 atomic/ld1_writeout.f90 atomic/write_resultsps.f90 atomic/ld1inc.f90 atomic/ld1_readin.f90 atomic/gener_pseudo.f90 atomic/parameters.f900 atomic/run_pseudo.f900 atomic/set_rho_core.f90 atomic/pseudovloc.f90 Modules/read_upf.f90 Modules/uspp.f90 Modules/pseudo_types.f90 Modules/parameters.f90 Added files: PW/grid_paw_routines.f90 PW/rad_paw_routines.f90 Modules/grid_paw_variables.f90 Modules/read_paw.f90 Added files that will be removed: PW/rad_paw_trash.f90 PW/paw_xc.f90 Examples: examples/PAWexample contains a full test of PAW pseudopotential for Oxygen. The test consist in these tasks: - 2 norm conserving, 2 US and 4 PAW pseudopotentials are generated and tested in ld1 - pw test for an isolated O atom at different cutoffs - pw test for an O2 molecule at different O-O distance please read examples/PAWexample/README for (a few) details. NOTES: 1. new modifications to atomic_paw (and related) from ADC have been rolled back, as they were breaking a lot of things, I will reintroduce them later when I am sure that everything works properly. 2. the files PW/paw_xc.f90 and Modules/rad_paw_trash.f90 will be removed in the next few weeks. TODO: 1. use new ld1 XC code as much as possible, and remove legacy XC routines from rad_paw_routines 2. full self-consistency with radial energies 3. make new Harris-Foulkes estimate paw-aware 4. provide some kind error estimate 5. FORCES and stress!! (require symmetrization of becsums) 6. cleanup ************************ *** merge of PW code *** ************************ Versions notation: OLD=version from 2 years ago used as reference to generate the patches NEW=CURRENT=current trunk version PAW=current develop_PAW version Note: pseudo-potential input and allocation routines changed a lot in the last years, this is a diagram: OLD:PW/readin ~~> PAW:PW/read_pseudo --> disappears pops out --> PAW:PW/readin ~~> NEW:PW/read_pseudo added files: Modules/read_paw.f90 (contains module read_paw_module with subroutines paw_io nullify_pseudo_paw, allocate_pseudo_paw and deallocate_pseudo_paw previously in removed file Modules/readpseudo.f90. Also contains module paw_to_internal with subroutine set_pseudo_paw, previously in upf_to_internal.f90) PW/paw_xc.f90 (contains OLD=PAW xc and gcxc routines as adapting paw grid code to use new routines was very error prone and quite worthless, as it has to be removed anyway) Conflicts reported by CVS during merge: DONE */Makefiles (all replaced with new, redone by hand) DONE flib/functionals.f90 (nothing to do) DONE Modules/functionals.f90 (RNV == replaced with NEW version) DONE Modules/atom.f90 (trivial: duped rgrid) DONE Modules/autopilot.f90 (trivial) DONE Modules/bfgs_module.f90 (RNV) DONE Modules/cell_base.f90 (RNV) DONE Modules/check_stop.f90 (RNV) DONE Modules/constants.f90 (RNV) DONE Modules/constraints_module.f90 (RNV) DONE Modules/energies.f90 (RNV) DONE Modules/input_parameters.f90 (RNV) DONE Modules/ions_base.f90 (RNV, has 3 new subs) DONE Modules/ions_nose.f90 (RNV) DONE Modules/parameters.f90 (actually RNV) DONE Modules/path_base.f90 (RNV) DONE Modules/path_opt_routines.f90 (RNV) DONE Modules/path_reparametrisation.f90 (RNV) DONE Modules/path_variables.f90 (RNV) DONE Modules/pseudo_types.f90 (cleaned double def of paw_t) DONE Modules/read_cards.f90 (RNV) DONE Modules/read_namelists.f90 (checked and RNV) DONE Modules/uspp.f90 (trivial) DONE Modules/xml_io_base.f90 (RNV) DONE PW/read_pseudo.f90 (merged by hand with PAW PW/readin) DONE PW/bp_calc_btq.f90 (trivial) DONE PW/c_bands.f90 (actually RNV) DONE PW/ccgdiagg.f90 (RNV) DONE PW/cegterg.f90 (RNV) DONE PW/cft3s.f90 (RNV) DONE PW/cinitcgg.f90 (RNV) DONE PW/c_phase_field.f90 (RNV) DONE PW/divide_et_impera.f90 (nothing to do?) DONE PW/exx.f90 (RNV) DONE PW/hinit0.f90 (easy) DONE PW/h_psi.f90 (RNV) DONE PW/init_run.f90 (easy) DONE PW/kpoint_grid.f90 (nothing to do?) DONE PW/newd.f90 (required mod in newd_paw_grid, CHECK!!) DONE PW/openfil.f90 (actually RNV) DONE PW/paw.f90 (actually RNV) DONE PW/punch.f90 (RNV) DONE PW/pwscf.f90 (quite RNV) DONE PW/set_kup_and_kdw.f90 (RNV) DONE PW/setup.f90 (RNV + 2 line merged by hand) DONE PW/sgama.f9 (actually RNV) DONE PW/sgam_at_mag.f90 (actually RNV) DONE PW/stop_run.f90 (actually RNV) DONE PW/stres_gradcorr.f90 (actually RNV) DONE PW/symrho_mag.f90 (nothing to do) DONE PW/v_of_rho.f90 (RNV) DONE PW/compute_fes_grads.f90 (RNV) DONE PW/gradcorr.f90 (RNV) DONE PW/input.f90 (RNV) DONE PW/pw_restart.f90 (RNV) DONE PW/read_ncpp.f90 (actually RNV) DONE PW/summary.f90 (RNV + inserted new PP type) DONE PW/wfcinit.f90 (RNV) the hard ones: DONE PW/electrons.f90 (adapted code to new syntaxes, a lot of cleanup, removed some PAW junk that can be readded later, removed parts that were applyed twice, or had been removed in trunk, the rhog allocations and usage may need fixes) DONE PW/mix_rho.f90 (merged tauk and paw additions, a bit of cleanup and smarter variables names) DONE PW/init_us_1.f90 (qtot redefined with "triangular" index nb,mb-->ijv) modified for compiling: Modules/io_files.f90 (depatched) PW/pwcom.f90 (depatched) Modules/parameters.f90 (temporary readded cp_lmax = lmaxx+1) PW/newd.f90 (merge was wrong, redone mostly by hand) PW/read_ncpp.f90 (depatched) PW/read_pseudo (small fixes) PW/sgam_at_mag.f90 (depatched) PW/sgama.f90 (depatched) PW/stres_gradcorr.f90 (depatched) modified for running: PW/clean_pw.f90 (added call to deallocate_paw_internals) Modifications to PAW routines: 1. compute_onecenter_charges and compute_onecenter_charges modified to comply with new structure of v_xc (in v_of_rho.f90), requiring new g-space densities to be saved and computed --> using old xc routines as this code will be removed. 2. qrad size has changed, prad and ptrad had to be changed accordingly. 3. several minor modifications to use new radial grid structure. 4. infomsg arguments changed, very funny bug followed. 5. added new routine deallocate_paw_internals, called by PW/clean_pw.f90 required to run pp.x with more than one q-point(and good programming practice) ************************* *** merge of LD1 code *** ************************* 2nd try: atomic code replaced with current version, then merge by hand the files that are used by paw subsystem: * atomic_paw.f90 (replaced with most recent version from develop_PAW routine us2paw and paw2us taken from newer trunk version, a lot of minor changes.) * gener_pseudo.f90 (fixes) * ld1inc.f90 (PAW variables added) * ld1_readin.f90 (PAW variables added, I am not sure if lpaw should go in input or inputp namelist) * ld1_writeout.f90 (it was only necessary to add a few lines) * pseudovloc.f90 (nothing to do) * run_pseudo.f90 (almost nothing to do) * set_rho_core.f90 (readded a few lines for lnc2paw) * write_paw_recon.f90 (nothing to do) * write_resultsps.f90 (nothing to do: trunk version is more PAW-aware than PAW version) Main problems were found in subroutines run_pseudo and gen_pseudo, a little code had to be rewritten to comply with new variable names and fix with merge. TODO: fix atomic_paw routines to use minimal allocated arrays insetad of ndmx sized ones; try to use the pawet as much as possible. Remove test lines and other garbage. Find a fix for PAW2. The first week of september Andrea Dal Corso uploaded a few modifications to the atomic_paw routines. I had to rollback them as the structure of atomic_paw has changed a lot and reimplementing them is probably easier and definitely safer than fixing everything. I will do it soon, I swear! LP git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4257 c92efa57-630b-4861-b058-cf58834340f0
2007-09-18 18:05:46 +08:00
rad_paw_routines.o \
rcgdiagg.o \
rdiagh.o \
rdiaghg.o \
read_conf_from_file.o \
read_file.o \
read_ncpp.o \
read_pseudo.o \
regterg.o \
remove_atomic_rho.o \
report_mag.o \
reset_k_points.o \
restart_from_file.o \
restart_in_electrons.o \
restart_in_ions.o \
rgen.o \
rho2zeta.o \
rinitcgg.o \
rotate_wfc.o \
rotate_wfc_gamma.o \
rotate_wfc_nc.o \
ruotaijk.o \
s_1psi.o \
s_axis_to_ca.o \
s_psi.o \
s_psi_nc.o \
save_in_cbands.o \
save_in_electrons.o \
save_in_ions.o \
scale_h.o \
seqopn.o \
set_fft_dim.o \
set_hubbard_l.o \
set_kplusq.o \
set_kup_and_kdw.o \
set_rhoc.o \
set_vrs.o \
setlocal.o \
setqf.o \
setup.o \
setupkpt.o \
sgam_at.o \
sgam_at_mag.o \
sgam_ph.o \
sgama.o \
smallg_q.o \
spinor.o \
sph_ind.o \
startup.o \
stop_run.o \
stres_cc.o \
stres_ewa.o \
stres_gradcorr.o \
stres_har.o \
stres_hub.o \
stres_knl.o \
stres_loc.o \
stres_us.o \
stress.o \
struct_fact.o \
sum_band.o \
sumkg.o \
sumkt.o \
summary.o \
symmetrize_at.o \
symrho.o \
symrho_mag.o \
symscalar.o \
symtns.o \
symvect.o \
symz.o \
tabd.o \
transform_becsum_so.o \
transform_becsum_nc.o \
trntns.o \
trnvecc.o \
trnvect.o \
tweights.o \
update_pot.o \
usnldiag.o \
v_of_rho.o \
vcsmd.o \
vcsubs.o \
vhpsi.o \
vhpsi_nc.o \
vloc_of_g.o \
vloc_psi.o \
w0gauss.o \
w1gauss.o \
wfcinit.o \
wgauss.o \
write_ns.o \
wsweight.o \
SCF with Projector-Augmented Wave Pseudopotential (PAW) routines added. This means that a lot of routines have been modified and a few files have been added. During the year several people have contributed to this code, mainly Guido Fratesi, Ricardo Mazzarello, Stefano de Gironcoli, Andrea Dal Corso and me (Lorenzo Paulatto). A brief report of modified or added files follows, further down you will find a loger report of modifications that was necessary to merge develop_PAW branch with the current CVS version. Current version is not 100% functional, but it doesn't brake anything else and can be used to generate and test PAW pseudopotential. ************************************* *** Brief report of modifications *** ************************************* Modified files: PW/clean_pw.f90 PW/electrons.f90 PW/print_clock_pw.f90 PW/hinit0.f90 PW/potinit.f90 PW/newd.f90 PW/summary.f90 PW/setup.f90 PW/read_pseudo.f90 PW/init_us_1.f90 PW/init_run.f90 PW/mix_rho.f90 atomic/atomic_paw.f90 atomic/write_paw_recon.f90 atomic/ld1_writeout.f90 atomic/write_resultsps.f90 atomic/ld1inc.f90 atomic/ld1_readin.f90 atomic/gener_pseudo.f90 atomic/parameters.f900 atomic/run_pseudo.f900 atomic/set_rho_core.f90 atomic/pseudovloc.f90 Modules/read_upf.f90 Modules/uspp.f90 Modules/pseudo_types.f90 Modules/parameters.f90 Added files: PW/grid_paw_routines.f90 PW/rad_paw_routines.f90 Modules/grid_paw_variables.f90 Modules/read_paw.f90 Added files that will be removed: PW/rad_paw_trash.f90 PW/paw_xc.f90 Examples: examples/PAWexample contains a full test of PAW pseudopotential for Oxygen. The test consist in these tasks: - 2 norm conserving, 2 US and 4 PAW pseudopotentials are generated and tested in ld1 - pw test for an isolated O atom at different cutoffs - pw test for an O2 molecule at different O-O distance please read examples/PAWexample/README for (a few) details. NOTES: 1. new modifications to atomic_paw (and related) from ADC have been rolled back, as they were breaking a lot of things, I will reintroduce them later when I am sure that everything works properly. 2. the files PW/paw_xc.f90 and Modules/rad_paw_trash.f90 will be removed in the next few weeks. TODO: 1. use new ld1 XC code as much as possible, and remove legacy XC routines from rad_paw_routines 2. full self-consistency with radial energies 3. make new Harris-Foulkes estimate paw-aware 4. provide some kind error estimate 5. FORCES and stress!! (require symmetrization of becsums) 6. cleanup ************************ *** merge of PW code *** ************************ Versions notation: OLD=version from 2 years ago used as reference to generate the patches NEW=CURRENT=current trunk version PAW=current develop_PAW version Note: pseudo-potential input and allocation routines changed a lot in the last years, this is a diagram: OLD:PW/readin ~~> PAW:PW/read_pseudo --> disappears pops out --> PAW:PW/readin ~~> NEW:PW/read_pseudo added files: Modules/read_paw.f90 (contains module read_paw_module with subroutines paw_io nullify_pseudo_paw, allocate_pseudo_paw and deallocate_pseudo_paw previously in removed file Modules/readpseudo.f90. Also contains module paw_to_internal with subroutine set_pseudo_paw, previously in upf_to_internal.f90) PW/paw_xc.f90 (contains OLD=PAW xc and gcxc routines as adapting paw grid code to use new routines was very error prone and quite worthless, as it has to be removed anyway) Conflicts reported by CVS during merge: DONE */Makefiles (all replaced with new, redone by hand) DONE flib/functionals.f90 (nothing to do) DONE Modules/functionals.f90 (RNV == replaced with NEW version) DONE Modules/atom.f90 (trivial: duped rgrid) DONE Modules/autopilot.f90 (trivial) DONE Modules/bfgs_module.f90 (RNV) DONE Modules/cell_base.f90 (RNV) DONE Modules/check_stop.f90 (RNV) DONE Modules/constants.f90 (RNV) DONE Modules/constraints_module.f90 (RNV) DONE Modules/energies.f90 (RNV) DONE Modules/input_parameters.f90 (RNV) DONE Modules/ions_base.f90 (RNV, has 3 new subs) DONE Modules/ions_nose.f90 (RNV) DONE Modules/parameters.f90 (actually RNV) DONE Modules/path_base.f90 (RNV) DONE Modules/path_opt_routines.f90 (RNV) DONE Modules/path_reparametrisation.f90 (RNV) DONE Modules/path_variables.f90 (RNV) DONE Modules/pseudo_types.f90 (cleaned double def of paw_t) DONE Modules/read_cards.f90 (RNV) DONE Modules/read_namelists.f90 (checked and RNV) DONE Modules/uspp.f90 (trivial) DONE Modules/xml_io_base.f90 (RNV) DONE PW/read_pseudo.f90 (merged by hand with PAW PW/readin) DONE PW/bp_calc_btq.f90 (trivial) DONE PW/c_bands.f90 (actually RNV) DONE PW/ccgdiagg.f90 (RNV) DONE PW/cegterg.f90 (RNV) DONE PW/cft3s.f90 (RNV) DONE PW/cinitcgg.f90 (RNV) DONE PW/c_phase_field.f90 (RNV) DONE PW/divide_et_impera.f90 (nothing to do?) DONE PW/exx.f90 (RNV) DONE PW/hinit0.f90 (easy) DONE PW/h_psi.f90 (RNV) DONE PW/init_run.f90 (easy) DONE PW/kpoint_grid.f90 (nothing to do?) DONE PW/newd.f90 (required mod in newd_paw_grid, CHECK!!) DONE PW/openfil.f90 (actually RNV) DONE PW/paw.f90 (actually RNV) DONE PW/punch.f90 (RNV) DONE PW/pwscf.f90 (quite RNV) DONE PW/set_kup_and_kdw.f90 (RNV) DONE PW/setup.f90 (RNV + 2 line merged by hand) DONE PW/sgama.f9 (actually RNV) DONE PW/sgam_at_mag.f90 (actually RNV) DONE PW/stop_run.f90 (actually RNV) DONE PW/stres_gradcorr.f90 (actually RNV) DONE PW/symrho_mag.f90 (nothing to do) DONE PW/v_of_rho.f90 (RNV) DONE PW/compute_fes_grads.f90 (RNV) DONE PW/gradcorr.f90 (RNV) DONE PW/input.f90 (RNV) DONE PW/pw_restart.f90 (RNV) DONE PW/read_ncpp.f90 (actually RNV) DONE PW/summary.f90 (RNV + inserted new PP type) DONE PW/wfcinit.f90 (RNV) the hard ones: DONE PW/electrons.f90 (adapted code to new syntaxes, a lot of cleanup, removed some PAW junk that can be readded later, removed parts that were applyed twice, or had been removed in trunk, the rhog allocations and usage may need fixes) DONE PW/mix_rho.f90 (merged tauk and paw additions, a bit of cleanup and smarter variables names) DONE PW/init_us_1.f90 (qtot redefined with "triangular" index nb,mb-->ijv) modified for compiling: Modules/io_files.f90 (depatched) PW/pwcom.f90 (depatched) Modules/parameters.f90 (temporary readded cp_lmax = lmaxx+1) PW/newd.f90 (merge was wrong, redone mostly by hand) PW/read_ncpp.f90 (depatched) PW/read_pseudo (small fixes) PW/sgam_at_mag.f90 (depatched) PW/sgama.f90 (depatched) PW/stres_gradcorr.f90 (depatched) modified for running: PW/clean_pw.f90 (added call to deallocate_paw_internals) Modifications to PAW routines: 1. compute_onecenter_charges and compute_onecenter_charges modified to comply with new structure of v_xc (in v_of_rho.f90), requiring new g-space densities to be saved and computed --> using old xc routines as this code will be removed. 2. qrad size has changed, prad and ptrad had to be changed accordingly. 3. several minor modifications to use new radial grid structure. 4. infomsg arguments changed, very funny bug followed. 5. added new routine deallocate_paw_internals, called by PW/clean_pw.f90 required to run pp.x with more than one q-point(and good programming practice) ************************* *** merge of LD1 code *** ************************* 2nd try: atomic code replaced with current version, then merge by hand the files that are used by paw subsystem: * atomic_paw.f90 (replaced with most recent version from develop_PAW routine us2paw and paw2us taken from newer trunk version, a lot of minor changes.) * gener_pseudo.f90 (fixes) * ld1inc.f90 (PAW variables added) * ld1_readin.f90 (PAW variables added, I am not sure if lpaw should go in input or inputp namelist) * ld1_writeout.f90 (it was only necessary to add a few lines) * pseudovloc.f90 (nothing to do) * run_pseudo.f90 (almost nothing to do) * set_rho_core.f90 (readded a few lines for lnc2paw) * write_paw_recon.f90 (nothing to do) * write_resultsps.f90 (nothing to do: trunk version is more PAW-aware than PAW version) Main problems were found in subroutines run_pseudo and gen_pseudo, a little code had to be rewritten to comply with new variable names and fix with merge. TODO: fix atomic_paw routines to use minimal allocated arrays insetad of ndmx sized ones; try to use the pawet as much as possible. Remove test lines and other garbage. Find a fix for PAW2. The first week of september Andrea Dal Corso uploaded a few modifications to the atomic_paw routines. I had to rollback them as the structure of atomic_paw has changed a lot and reimplementing them is probably easier and definitely safer than fixing everything. I will do it soon, I swear! LP git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4257 c92efa57-630b-4861-b058-cf58834340f0
2007-09-18 18:05:46 +08:00
weights.o \
# not actually used
DIIS_OBJS=\
diis_base.o \
cgramg1.o \
real_diis_module.o \
complex_diis_module.o
MODULES = \
../Modules/atom.o \
../Modules/autopilot.o \
../Modules/basic_algebra_routines.o \
../Modules/berry_phase.o \
../Modules/bfgs_module.o \
../Modules/cell_base.o \
../Modules/check_stop.o \
../Modules/clocks.o \
../Modules/constants.o \
../Modules/constraints_module.o \
../Modules/control_flags.o \
../Modules/descriptors.o \
../Modules/dspev_drv.o \
../Modules/electrons_base.o \
../Modules/exc_t.o \
../Modules/fft_base.o \
../Modules/fft_scalar.o \
../Modules/fft_types.o \
../Modules/functionals.o \
SCF with Projector-Augmented Wave Pseudopotential (PAW) routines added. This means that a lot of routines have been modified and a few files have been added. During the year several people have contributed to this code, mainly Guido Fratesi, Ricardo Mazzarello, Stefano de Gironcoli, Andrea Dal Corso and me (Lorenzo Paulatto). A brief report of modified or added files follows, further down you will find a loger report of modifications that was necessary to merge develop_PAW branch with the current CVS version. Current version is not 100% functional, but it doesn't brake anything else and can be used to generate and test PAW pseudopotential. ************************************* *** Brief report of modifications *** ************************************* Modified files: PW/clean_pw.f90 PW/electrons.f90 PW/print_clock_pw.f90 PW/hinit0.f90 PW/potinit.f90 PW/newd.f90 PW/summary.f90 PW/setup.f90 PW/read_pseudo.f90 PW/init_us_1.f90 PW/init_run.f90 PW/mix_rho.f90 atomic/atomic_paw.f90 atomic/write_paw_recon.f90 atomic/ld1_writeout.f90 atomic/write_resultsps.f90 atomic/ld1inc.f90 atomic/ld1_readin.f90 atomic/gener_pseudo.f90 atomic/parameters.f900 atomic/run_pseudo.f900 atomic/set_rho_core.f90 atomic/pseudovloc.f90 Modules/read_upf.f90 Modules/uspp.f90 Modules/pseudo_types.f90 Modules/parameters.f90 Added files: PW/grid_paw_routines.f90 PW/rad_paw_routines.f90 Modules/grid_paw_variables.f90 Modules/read_paw.f90 Added files that will be removed: PW/rad_paw_trash.f90 PW/paw_xc.f90 Examples: examples/PAWexample contains a full test of PAW pseudopotential for Oxygen. The test consist in these tasks: - 2 norm conserving, 2 US and 4 PAW pseudopotentials are generated and tested in ld1 - pw test for an isolated O atom at different cutoffs - pw test for an O2 molecule at different O-O distance please read examples/PAWexample/README for (a few) details. NOTES: 1. new modifications to atomic_paw (and related) from ADC have been rolled back, as they were breaking a lot of things, I will reintroduce them later when I am sure that everything works properly. 2. the files PW/paw_xc.f90 and Modules/rad_paw_trash.f90 will be removed in the next few weeks. TODO: 1. use new ld1 XC code as much as possible, and remove legacy XC routines from rad_paw_routines 2. full self-consistency with radial energies 3. make new Harris-Foulkes estimate paw-aware 4. provide some kind error estimate 5. FORCES and stress!! (require symmetrization of becsums) 6. cleanup ************************ *** merge of PW code *** ************************ Versions notation: OLD=version from 2 years ago used as reference to generate the patches NEW=CURRENT=current trunk version PAW=current develop_PAW version Note: pseudo-potential input and allocation routines changed a lot in the last years, this is a diagram: OLD:PW/readin ~~> PAW:PW/read_pseudo --> disappears pops out --> PAW:PW/readin ~~> NEW:PW/read_pseudo added files: Modules/read_paw.f90 (contains module read_paw_module with subroutines paw_io nullify_pseudo_paw, allocate_pseudo_paw and deallocate_pseudo_paw previously in removed file Modules/readpseudo.f90. Also contains module paw_to_internal with subroutine set_pseudo_paw, previously in upf_to_internal.f90) PW/paw_xc.f90 (contains OLD=PAW xc and gcxc routines as adapting paw grid code to use new routines was very error prone and quite worthless, as it has to be removed anyway) Conflicts reported by CVS during merge: DONE */Makefiles (all replaced with new, redone by hand) DONE flib/functionals.f90 (nothing to do) DONE Modules/functionals.f90 (RNV == replaced with NEW version) DONE Modules/atom.f90 (trivial: duped rgrid) DONE Modules/autopilot.f90 (trivial) DONE Modules/bfgs_module.f90 (RNV) DONE Modules/cell_base.f90 (RNV) DONE Modules/check_stop.f90 (RNV) DONE Modules/constants.f90 (RNV) DONE Modules/constraints_module.f90 (RNV) DONE Modules/energies.f90 (RNV) DONE Modules/input_parameters.f90 (RNV) DONE Modules/ions_base.f90 (RNV, has 3 new subs) DONE Modules/ions_nose.f90 (RNV) DONE Modules/parameters.f90 (actually RNV) DONE Modules/path_base.f90 (RNV) DONE Modules/path_opt_routines.f90 (RNV) DONE Modules/path_reparametrisation.f90 (RNV) DONE Modules/path_variables.f90 (RNV) DONE Modules/pseudo_types.f90 (cleaned double def of paw_t) DONE Modules/read_cards.f90 (RNV) DONE Modules/read_namelists.f90 (checked and RNV) DONE Modules/uspp.f90 (trivial) DONE Modules/xml_io_base.f90 (RNV) DONE PW/read_pseudo.f90 (merged by hand with PAW PW/readin) DONE PW/bp_calc_btq.f90 (trivial) DONE PW/c_bands.f90 (actually RNV) DONE PW/ccgdiagg.f90 (RNV) DONE PW/cegterg.f90 (RNV) DONE PW/cft3s.f90 (RNV) DONE PW/cinitcgg.f90 (RNV) DONE PW/c_phase_field.f90 (RNV) DONE PW/divide_et_impera.f90 (nothing to do?) DONE PW/exx.f90 (RNV) DONE PW/hinit0.f90 (easy) DONE PW/h_psi.f90 (RNV) DONE PW/init_run.f90 (easy) DONE PW/kpoint_grid.f90 (nothing to do?) DONE PW/newd.f90 (required mod in newd_paw_grid, CHECK!!) DONE PW/openfil.f90 (actually RNV) DONE PW/paw.f90 (actually RNV) DONE PW/punch.f90 (RNV) DONE PW/pwscf.f90 (quite RNV) DONE PW/set_kup_and_kdw.f90 (RNV) DONE PW/setup.f90 (RNV + 2 line merged by hand) DONE PW/sgama.f9 (actually RNV) DONE PW/sgam_at_mag.f90 (actually RNV) DONE PW/stop_run.f90 (actually RNV) DONE PW/stres_gradcorr.f90 (actually RNV) DONE PW/symrho_mag.f90 (nothing to do) DONE PW/v_of_rho.f90 (RNV) DONE PW/compute_fes_grads.f90 (RNV) DONE PW/gradcorr.f90 (RNV) DONE PW/input.f90 (RNV) DONE PW/pw_restart.f90 (RNV) DONE PW/read_ncpp.f90 (actually RNV) DONE PW/summary.f90 (RNV + inserted new PP type) DONE PW/wfcinit.f90 (RNV) the hard ones: DONE PW/electrons.f90 (adapted code to new syntaxes, a lot of cleanup, removed some PAW junk that can be readded later, removed parts that were applyed twice, or had been removed in trunk, the rhog allocations and usage may need fixes) DONE PW/mix_rho.f90 (merged tauk and paw additions, a bit of cleanup and smarter variables names) DONE PW/init_us_1.f90 (qtot redefined with "triangular" index nb,mb-->ijv) modified for compiling: Modules/io_files.f90 (depatched) PW/pwcom.f90 (depatched) Modules/parameters.f90 (temporary readded cp_lmax = lmaxx+1) PW/newd.f90 (merge was wrong, redone mostly by hand) PW/read_ncpp.f90 (depatched) PW/read_pseudo (small fixes) PW/sgam_at_mag.f90 (depatched) PW/sgama.f90 (depatched) PW/stres_gradcorr.f90 (depatched) modified for running: PW/clean_pw.f90 (added call to deallocate_paw_internals) Modifications to PAW routines: 1. compute_onecenter_charges and compute_onecenter_charges modified to comply with new structure of v_xc (in v_of_rho.f90), requiring new g-space densities to be saved and computed --> using old xc routines as this code will be removed. 2. qrad size has changed, prad and ptrad had to be changed accordingly. 3. several minor modifications to use new radial grid structure. 4. infomsg arguments changed, very funny bug followed. 5. added new routine deallocate_paw_internals, called by PW/clean_pw.f90 required to run pp.x with more than one q-point(and good programming practice) ************************* *** merge of LD1 code *** ************************* 2nd try: atomic code replaced with current version, then merge by hand the files that are used by paw subsystem: * atomic_paw.f90 (replaced with most recent version from develop_PAW routine us2paw and paw2us taken from newer trunk version, a lot of minor changes.) * gener_pseudo.f90 (fixes) * ld1inc.f90 (PAW variables added) * ld1_readin.f90 (PAW variables added, I am not sure if lpaw should go in input or inputp namelist) * ld1_writeout.f90 (it was only necessary to add a few lines) * pseudovloc.f90 (nothing to do) * run_pseudo.f90 (almost nothing to do) * set_rho_core.f90 (readded a few lines for lnc2paw) * write_paw_recon.f90 (nothing to do) * write_resultsps.f90 (nothing to do: trunk version is more PAW-aware than PAW version) Main problems were found in subroutines run_pseudo and gen_pseudo, a little code had to be rewritten to comply with new variable names and fix with merge. TODO: fix atomic_paw routines to use minimal allocated arrays insetad of ndmx sized ones; try to use the pawet as much as possible. Remove test lines and other garbage. Find a fix for PAW2. The first week of september Andrea Dal Corso uploaded a few modifications to the atomic_paw routines. I had to rollback them as the structure of atomic_paw has changed a lot and reimplementing them is probably easier and definitely safer than fixing everything. I will do it soon, I swear! LP git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4257 c92efa57-630b-4861-b058-cf58834340f0
2007-09-18 18:05:46 +08:00
../Modules/grid_paw_variables.o \
../Modules/input_parameters.o \
../Modules/io_files.o \
../Modules/io_global.o \
../Modules/ions_base.o \
../Modules/ions_nose.o \
../Modules/kind.o \
../Modules/mp_global.o \
../Modules/mp_wave.o \
../Modules/mp.o \
../Modules/metagga.o \
../Modules/metadyn_base.o \
../Modules/metadyn_io.o \
../Modules/metadyn_vars.o \
../Modules/path_base.o \
../Modules/path_formats.o \
../Modules/path_variables.o \
../Modules/path_opt_routines.o \
../Modules/path_io_routines.o \
../Modules/path_reparametrisation.o \
../Modules/parallel_include.o \
../Modules/parameters.o \
../Modules/parser.o \
../Modules/printout_base.o \
../Modules/pseudo_types.o \
../Modules/ptoolkit.o \
../Modules/radial_grids.o \
../Modules/random_numbers.o \
../Modules/read_cards.o \
../Modules/read_namelists.o \
SCF with Projector-Augmented Wave Pseudopotential (PAW) routines added. This means that a lot of routines have been modified and a few files have been added. During the year several people have contributed to this code, mainly Guido Fratesi, Ricardo Mazzarello, Stefano de Gironcoli, Andrea Dal Corso and me (Lorenzo Paulatto). A brief report of modified or added files follows, further down you will find a loger report of modifications that was necessary to merge develop_PAW branch with the current CVS version. Current version is not 100% functional, but it doesn't brake anything else and can be used to generate and test PAW pseudopotential. ************************************* *** Brief report of modifications *** ************************************* Modified files: PW/clean_pw.f90 PW/electrons.f90 PW/print_clock_pw.f90 PW/hinit0.f90 PW/potinit.f90 PW/newd.f90 PW/summary.f90 PW/setup.f90 PW/read_pseudo.f90 PW/init_us_1.f90 PW/init_run.f90 PW/mix_rho.f90 atomic/atomic_paw.f90 atomic/write_paw_recon.f90 atomic/ld1_writeout.f90 atomic/write_resultsps.f90 atomic/ld1inc.f90 atomic/ld1_readin.f90 atomic/gener_pseudo.f90 atomic/parameters.f900 atomic/run_pseudo.f900 atomic/set_rho_core.f90 atomic/pseudovloc.f90 Modules/read_upf.f90 Modules/uspp.f90 Modules/pseudo_types.f90 Modules/parameters.f90 Added files: PW/grid_paw_routines.f90 PW/rad_paw_routines.f90 Modules/grid_paw_variables.f90 Modules/read_paw.f90 Added files that will be removed: PW/rad_paw_trash.f90 PW/paw_xc.f90 Examples: examples/PAWexample contains a full test of PAW pseudopotential for Oxygen. The test consist in these tasks: - 2 norm conserving, 2 US and 4 PAW pseudopotentials are generated and tested in ld1 - pw test for an isolated O atom at different cutoffs - pw test for an O2 molecule at different O-O distance please read examples/PAWexample/README for (a few) details. NOTES: 1. new modifications to atomic_paw (and related) from ADC have been rolled back, as they were breaking a lot of things, I will reintroduce them later when I am sure that everything works properly. 2. the files PW/paw_xc.f90 and Modules/rad_paw_trash.f90 will be removed in the next few weeks. TODO: 1. use new ld1 XC code as much as possible, and remove legacy XC routines from rad_paw_routines 2. full self-consistency with radial energies 3. make new Harris-Foulkes estimate paw-aware 4. provide some kind error estimate 5. FORCES and stress!! (require symmetrization of becsums) 6. cleanup ************************ *** merge of PW code *** ************************ Versions notation: OLD=version from 2 years ago used as reference to generate the patches NEW=CURRENT=current trunk version PAW=current develop_PAW version Note: pseudo-potential input and allocation routines changed a lot in the last years, this is a diagram: OLD:PW/readin ~~> PAW:PW/read_pseudo --> disappears pops out --> PAW:PW/readin ~~> NEW:PW/read_pseudo added files: Modules/read_paw.f90 (contains module read_paw_module with subroutines paw_io nullify_pseudo_paw, allocate_pseudo_paw and deallocate_pseudo_paw previously in removed file Modules/readpseudo.f90. Also contains module paw_to_internal with subroutine set_pseudo_paw, previously in upf_to_internal.f90) PW/paw_xc.f90 (contains OLD=PAW xc and gcxc routines as adapting paw grid code to use new routines was very error prone and quite worthless, as it has to be removed anyway) Conflicts reported by CVS during merge: DONE */Makefiles (all replaced with new, redone by hand) DONE flib/functionals.f90 (nothing to do) DONE Modules/functionals.f90 (RNV == replaced with NEW version) DONE Modules/atom.f90 (trivial: duped rgrid) DONE Modules/autopilot.f90 (trivial) DONE Modules/bfgs_module.f90 (RNV) DONE Modules/cell_base.f90 (RNV) DONE Modules/check_stop.f90 (RNV) DONE Modules/constants.f90 (RNV) DONE Modules/constraints_module.f90 (RNV) DONE Modules/energies.f90 (RNV) DONE Modules/input_parameters.f90 (RNV) DONE Modules/ions_base.f90 (RNV, has 3 new subs) DONE Modules/ions_nose.f90 (RNV) DONE Modules/parameters.f90 (actually RNV) DONE Modules/path_base.f90 (RNV) DONE Modules/path_opt_routines.f90 (RNV) DONE Modules/path_reparametrisation.f90 (RNV) DONE Modules/path_variables.f90 (RNV) DONE Modules/pseudo_types.f90 (cleaned double def of paw_t) DONE Modules/read_cards.f90 (RNV) DONE Modules/read_namelists.f90 (checked and RNV) DONE Modules/uspp.f90 (trivial) DONE Modules/xml_io_base.f90 (RNV) DONE PW/read_pseudo.f90 (merged by hand with PAW PW/readin) DONE PW/bp_calc_btq.f90 (trivial) DONE PW/c_bands.f90 (actually RNV) DONE PW/ccgdiagg.f90 (RNV) DONE PW/cegterg.f90 (RNV) DONE PW/cft3s.f90 (RNV) DONE PW/cinitcgg.f90 (RNV) DONE PW/c_phase_field.f90 (RNV) DONE PW/divide_et_impera.f90 (nothing to do?) DONE PW/exx.f90 (RNV) DONE PW/hinit0.f90 (easy) DONE PW/h_psi.f90 (RNV) DONE PW/init_run.f90 (easy) DONE PW/kpoint_grid.f90 (nothing to do?) DONE PW/newd.f90 (required mod in newd_paw_grid, CHECK!!) DONE PW/openfil.f90 (actually RNV) DONE PW/paw.f90 (actually RNV) DONE PW/punch.f90 (RNV) DONE PW/pwscf.f90 (quite RNV) DONE PW/set_kup_and_kdw.f90 (RNV) DONE PW/setup.f90 (RNV + 2 line merged by hand) DONE PW/sgama.f9 (actually RNV) DONE PW/sgam_at_mag.f90 (actually RNV) DONE PW/stop_run.f90 (actually RNV) DONE PW/stres_gradcorr.f90 (actually RNV) DONE PW/symrho_mag.f90 (nothing to do) DONE PW/v_of_rho.f90 (RNV) DONE PW/compute_fes_grads.f90 (RNV) DONE PW/gradcorr.f90 (RNV) DONE PW/input.f90 (RNV) DONE PW/pw_restart.f90 (RNV) DONE PW/read_ncpp.f90 (actually RNV) DONE PW/summary.f90 (RNV + inserted new PP type) DONE PW/wfcinit.f90 (RNV) the hard ones: DONE PW/electrons.f90 (adapted code to new syntaxes, a lot of cleanup, removed some PAW junk that can be readded later, removed parts that were applyed twice, or had been removed in trunk, the rhog allocations and usage may need fixes) DONE PW/mix_rho.f90 (merged tauk and paw additions, a bit of cleanup and smarter variables names) DONE PW/init_us_1.f90 (qtot redefined with "triangular" index nb,mb-->ijv) modified for compiling: Modules/io_files.f90 (depatched) PW/pwcom.f90 (depatched) Modules/parameters.f90 (temporary readded cp_lmax = lmaxx+1) PW/newd.f90 (merge was wrong, redone mostly by hand) PW/read_ncpp.f90 (depatched) PW/read_pseudo (small fixes) PW/sgam_at_mag.f90 (depatched) PW/sgama.f90 (depatched) PW/stres_gradcorr.f90 (depatched) modified for running: PW/clean_pw.f90 (added call to deallocate_paw_internals) Modifications to PAW routines: 1. compute_onecenter_charges and compute_onecenter_charges modified to comply with new structure of v_xc (in v_of_rho.f90), requiring new g-space densities to be saved and computed --> using old xc routines as this code will be removed. 2. qrad size has changed, prad and ptrad had to be changed accordingly. 3. several minor modifications to use new radial grid structure. 4. infomsg arguments changed, very funny bug followed. 5. added new routine deallocate_paw_internals, called by PW/clean_pw.f90 required to run pp.x with more than one q-point(and good programming practice) ************************* *** merge of LD1 code *** ************************* 2nd try: atomic code replaced with current version, then merge by hand the files that are used by paw subsystem: * atomic_paw.f90 (replaced with most recent version from develop_PAW routine us2paw and paw2us taken from newer trunk version, a lot of minor changes.) * gener_pseudo.f90 (fixes) * ld1inc.f90 (PAW variables added) * ld1_readin.f90 (PAW variables added, I am not sure if lpaw should go in input or inputp namelist) * ld1_writeout.f90 (it was only necessary to add a few lines) * pseudovloc.f90 (nothing to do) * run_pseudo.f90 (almost nothing to do) * set_rho_core.f90 (readded a few lines for lnc2paw) * write_paw_recon.f90 (nothing to do) * write_resultsps.f90 (nothing to do: trunk version is more PAW-aware than PAW version) Main problems were found in subroutines run_pseudo and gen_pseudo, a little code had to be rewritten to comply with new variable names and fix with merge. TODO: fix atomic_paw routines to use minimal allocated arrays insetad of ndmx sized ones; try to use the pawet as much as possible. Remove test lines and other garbage. Find a fix for PAW2. The first week of september Andrea Dal Corso uploaded a few modifications to the atomic_paw routines. I had to rollback them as the structure of atomic_paw has changed a lot and reimplementing them is probably easier and definitely safer than fixing everything. I will do it soon, I swear! LP git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4257 c92efa57-630b-4861-b058-cf58834340f0
2007-09-18 18:05:46 +08:00
../Modules/read_paw.o \
../Modules/read_upf.o \
../Modules/read_uspp.o \
../Modules/recvec.o \
../Modules/shmem_include.o \
../Modules/splinelib.o \
../Modules/stick_base.o \
../Modules/task_groups.o \
../Modules/timestep.o \
../Modules/upf_to_internal.o \
../Modules/uspp.o \
../Modules/version.o \
../Modules/vxc_t.o \
../Modules/vxcgc.o \
../Modules/wavefunctions.o \
../Modules/wave_base.o \
../Modules/xml_io_base.o \
../Modules/zhpev_drv.o
TLDEPS=bindir mods libs libiotk
all : tldeps pw.x
pw.x : pwscf.o libpw.a $(LIBOBJS)
$(LD) $(LDFLAGS) -o $@ \
pwscf.o $(MODULES) libpw.a $(LIBOBJS) $(LIBS)
- ( cd ../bin; ln -fs ../PW/$@ . )
libpw.a : $(PWOBJS)
$(AR) $(ARFLAGS) $@ $?
$(RANLIB) $@
tldeps:
test -n "$(TLDEPS)" && ( cd .. ; $(MAKE) $(MFLAGS) $(TLDEPS) || exit 1) || :
clean :
- /bin/rm -f pw.x *.o *.a *~ *.F90 *.d *.mod *.i *.L
include make.depend
# DO NOT DELETE