Skip to content

Commit 241d45e

Browse files
committed
Removed derivatives of the coordinate axis from calculation of the
hessian.
1 parent c72925a commit 241d45e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎src/hesian.f90‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ subroutine hesian( NGdof, position, Mvol, mn, LGdof )
3535
dFFdRZ,HdFFdRZ, dBBdmp, dmupfdx, hessian, dessian, Lhessianallocated, psifactor, &
3636
hessian2D,dessian2D,Lhessian2Dallocated, &
3737
Lhessian3Dallocated,denergydrr, denergydrz,denergydzr,denergydzz, &
38-
LocalConstraint
38+
LocalConstraint, dRodR, dRodZ, dZodR, dZodZ, dRadR, dRadZ, dZadR, dZadZ
3939

4040
use sphdf5, only : write_stability
4141

@@ -241,6 +241,15 @@ subroutine hesian( NGdof, position, Mvol, mn, LGdof )
241241
!endif
242242
!This step cleared.
243243

244+
dRodR = 0.0
245+
dZodR = 0.0
246+
dRodZ = 0.0
247+
dZodZ = 0.0
248+
dRadR = 0.0
249+
dRadZ = 0.0
250+
dZadR = 0.0
251+
dZadZ = 0.0
252+
244253
LComputeDerivatives = .true. !; position(0) = zero ! this is not used; 11 Aug 14;
245254
LComputeAxis = .false.
246255
WCALL( hesian, dforce, ( NGdof, position(0:NGdof), force(0:NGdof), LComputeDerivatives, LComputeAxis) ) ! calculate force-imbalance & hessian;

0 commit comments

Comments
 (0)