Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v2.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniBussi committed May 28, 2024
2 parents abe78d1 + bef668d commit 86ce556
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions patches/qespresso-5.0.2.diff/PW/src/plugin_forces.f90
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@ SUBROUTINE plugin_forces()
USE plugin_flags
!
USE cell_base, ONLY : alat, at
USE ions_base, ONLY : tau, nat,amass
USE ions_base, ONLY : tau, nat, amass, ityp
USE force_mod, ONLY : force,sigma
USE control_flags, ONLY : istep
USE ener, ONLY : etot
!
IMPLICIT NONE
!
INTEGER:: i,j
INTEGER:: i,j,ia
REAL(DP) :: at_plumed(3,3)
REAL(DP) :: virial(3,3)
REAL(DP) :: volume
REAL(DP), ALLOCATABLE :: tau_plumed(:,:)
REAL(DP) :: masses_plumed(nat)
!
masses_plumed = 0.0_DP
IF(use_plumed) then
IF(ionode)THEN
at_plumed=alat*at; ! the cell, rescaled properly
Expand All @@ -44,9 +46,12 @@ SUBROUTINE plugin_forces()
-at_plumed(1,2)*at_plumed(3,3)*at_plumed(2,1) &
-at_plumed(1,3)*at_plumed(3,1)*at_plumed(2,2)
virial=-sigma*volume

! the masses in QE are stored per type, see q-e//Modules/ions_base.f90
do ia=1,nat
masses_plumed(ia)=amass(ityp(ia))
end do
CALL plumed_f_gcmd("setStep"//char(0),istep)
CALL plumed_f_gcmd("setMasses"//char(0),amass)
CALL plumed_f_gcmd("setMasses"//char(0),masses_plumed)
CALL plumed_f_gcmd("setForces"//char(0),force)
CALL plumed_f_gcmd("setPositions"//char(0),tau_plumed)
CALL plumed_f_gcmd("setBox"//char(0),at_plumed)
Expand Down

1 comment on commit 86ce556

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/ANGLES.tmp
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/CAVITY.tmp
Found broken examples in automatic/CLASSICAL_MDS.tmp
Found broken examples in automatic/CLUSTER_DIAMETER.tmp
Found broken examples in automatic/CLUSTER_DISTRIBUTION.tmp
Found broken examples in automatic/CLUSTER_PROPERTIES.tmp
Found broken examples in automatic/CONSTANT.tmp
Found broken examples in automatic/CONTACT_MATRIX.tmp
Found broken examples in automatic/CONTACT_MATRIX_PROPER.tmp
Found broken examples in automatic/COORDINATIONNUMBER.tmp
Found broken examples in automatic/DFSCLUSTERING.tmp
Found broken examples in automatic/DISTANCE_FROM_CONTOUR.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FIND_CONTOUR.tmp
Found broken examples in automatic/FIND_CONTOUR_SURFACE.tmp
Found broken examples in automatic/FIND_SPHERICAL_CONTOUR.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/GPROPERTYMAP.tmp
Found broken examples in automatic/HBOND_MATRIX.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/INCYLINDER.tmp
Found broken examples in automatic/INENVELOPE.tmp
Found broken examples in automatic/INTERPOLATE_GRID.tmp
Found broken examples in automatic/LOCAL_AVERAGE.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/MULTICOLVARDENS.tmp
Found broken examples in automatic/OUTPUT_CLUSTER.tmp
Found broken examples in automatic/PAMM.tmp
Found broken examples in automatic/PCA.tmp
Found broken examples in automatic/PCAVARS.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in automatic/PYCVINTERFACE.tmp
Found broken examples in automatic/PYTHONFUNCTION.tmp
Found broken examples in automatic/Q3.tmp
Found broken examples in automatic/Q4.tmp
Found broken examples in automatic/Q6.tmp
Found broken examples in automatic/QUATERNION.tmp
Found broken examples in automatic/SIZESHAPE_POSITION_LINEAR_PROJ.tmp
Found broken examples in automatic/SIZESHAPE_POSITION_MAHA_DIST.tmp
Found broken examples in automatic/SPRINT.tmp
Found broken examples in automatic/TETRAHEDRALPORE.tmp
Found broken examples in automatic/TORSIONS.tmp
Found broken examples in automatic/WHAM_WEIGHTS.tmp
Found broken examples in AnalysisPP.md
Found broken examples in CollectiveVariablesPP.md
Found broken examples in MiscelaneousPP.md

Please sign in to comment.