constr_cell_relax.F - variable cell constrained relax
Posted: Fri Jan 29, 2016 5:44 pm
Hi all.
I have a question concerning the relaxation of the cell constraining the xy axis to fix and letting only the Z axis to relax.
In CONSTR_CELL_RELAX.F I uncomment like that
compiled vasp (5.4.1 patched) and run it with ISIF = 3.
It seems to me from the MAIN.F that the above routine is called only for ISIF==7 and that from the calculation I did all the three lattice constant have been relaxed.
Am I doing something wrong?
Thanks for the attention
Federico Iori
Universite' Paris Sud - CNRS
I have a question concerning the relaxation of the cell constraining the xy axis to fix and letting only the Z axis to relax.
In CONSTR_CELL_RELAX.F I uncomment like that
Code: Select all
SUBROUTINE CONSTR_CELL_RELAX(FCELL)
USE prec
REAL(q) FCELL(3,3)
! just one simple example
! relaxation in x directions only
! SAVE=FCELL(1,1)
! FCELL=0 ! F90 style: set the whole array to zero
! FCELL(1,1)=SAVE
! relaxation in z direction only
SAVE=FCELL(3,3)
FCELL=0 ! F90 style: set the whole array to zero
FCELL(3,3)=SAVE
RETURN
END SUBROUTINE
It seems to me from the MAIN.F that the above routine is called only for ISIF==7 and that from the calculation I did all the three lattice constant have been relaxed.
Am I doing something wrong?
Thanks for the attention
Federico Iori
Universite' Paris Sud - CNRS