--- forces-edip.1.9.f Fri Apr 19 10:44:07 2002 +++ forces-edip.1.10.f Fri Apr 19 10:44:21 2002 @@ -2,7 +2,7 @@ C forces-edip.f C ------------- -C Version 1.9f +C Version 1.10f C Force and Energy Calculation with the C Environment-Dependent Interatomic Potential @@ -163,6 +163,12 @@ & E_potential, f) implicit none + +c#define FIXZ +#undef FIXZ +c switch on/off option using fixed Z + + C ------------------------- VARIABLE DECLARATIONS ------------------------- @@ -177,14 +183,13 @@ integer i,j,k,l,n double precision dx,dy,dz,r,rsqr,asqr - double precision rinv,rmainv,xinv,xinv3,den,Z,fZ + double precision rinv,rmainv,Z double precision dV2j,dV2ijx,dV2ijy,dV2ijz,pZ,dp double precision temp0,temp1,temp2 double precision Qort,muhalf,u5 double precision rmbinv,winv,dwinv,tau,dtau,lcos,x,H double precision winv_2lam,TdW_WdT_over_W double precision dV3rij,dV3rik,dV3l - double precision dVdZ_sum double precision dEdrl,dEdrlx,dEdrly,dEdrlz double precision bmc,cmb3inv double precision fjx,fjy,fjz,fkx,fky,fkz @@ -215,6 +220,9 @@ integer num3(MAX_NBRS_1) C atom ID numbers for s3[] +#ifndef FIXZ + double precision xinv,xinv3,den,fZ + double precision dVdZ_sum double precision sz_df(MAX_NBRS_1) double precision sz_dx(MAX_NBRS_1) double precision sz_dy(MAX_NBRS_1) @@ -224,6 +232,10 @@ C size of sz[] integer numz(MAX_NBRS_1) C atom ID numbers for sz[] +#else + integer tricks_Zfix + parameter (tricks_Zfix = 5) +#endif integer nj,nk,nl C indices for the store arrays @@ -233,8 +245,6 @@ double precision coord_total - integer fixZ, tricks_Zfix - parameter (fixZ = 0, tricks_Zfix = 5) L_x_div_2 = L_x/2.0D0 L_y_div_2 = L_y/2.0D0 @@ -349,8 +359,7 @@ s3_rinv(n3) = rinv s3_r(n3) = r - if(fixZ .eq. 0) then - +#ifndef FIXZ C COORDINATION AND NEIGHBOR FUNCTION par_c