31 SUBROUTINE volpfv(IVOLU,RVOLU ,VOL,FSAV,NPC,
32 2 TF ,PMAIN, WFEXT,PYTHON,NFUNCT)
38#include "implicit_f.inc"
48 INTEGER NPC(*),IVOLU(*), PMAIN
50 DOUBLE PRECISION,
INTENT(INOUT) :: WFEXT
51 TYPE(python_),
intent(inout) :: PYTHON
52 INTEGER,
intent(in) :: NFUNCT
57 my_real vol,v0,
area,veps,vinc,pold,pext,vold,pres,q,qold,dv,scale,xfun
77 xfun = (v0-vinc)/(vol-vinc)
81 xfun = (vol-vinc) / (v0-vinc)
85 pres = scale * finter_mixed(python,nfunct,itfun,xfun,npc,tf)
86 IF (itypfun == 3)
THEN
87 pres = pres * (v0-vinc) / (vol-vinc)
90 IF (ispmd+1==pmain)
THEN
92 wfext=wfext+(half*(q+qold+pres+pold))*dv
subroutine volpfv(ivolu, rvolu, vol, fsav, npc, tf, pmain, wfext, python, nfunct)