Skip to content

Commit

Permalink
added a number of Hessian-related field modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
aoterodelaroza committed Mar 14, 2024
1 parent 480be06 commit 686c5a6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,7 @@ end function isstructvar
!> the evaluation failed.
recursive function fieldeval(fid,fder,errmsg,x0,syl,periodic)
use systemmod, only: system
use tools_math, only: det3sym
use tools_io, only: string, isinteger, lower
use types, only: scalar_value
real*8 :: fieldeval
Expand Down Expand Up @@ -1163,7 +1164,7 @@ recursive function fieldeval(fid,fder,errmsg,x0,syl,periodic)
nder = 0
case ("x","y","z","g")
nder = 1
case ("xx","xy","xz","yx","yy","yz","zx","zy","zz","l","lv","lc")
case ("xx","xy","xz","yx","yy","yz","zx","zy","zz","l","lv","lc","h1","h2","h3","hd","s","r")
nder = 2
case default
! let feval interpret fder - field-specific (e.g. a MO)
Expand Down Expand Up @@ -1222,6 +1223,18 @@ recursive function fieldeval(fid,fder,errmsg,x0,syl,periodic)
fieldeval = res%del2f - res%del2fval
case ("g")
fieldeval = res%gfmod
case ("h1")
fieldeval = res%hfeval(1)
case ("h2")
fieldeval = res%hfeval(2)
case ("h3")
fieldeval = res%hfeval(3)
case ("hd")
fieldeval = det3sym(res%hf)
case ("r")
fieldeval = res%r
case ("s")
fieldeval = res%s
case default
fieldeval = res%fspc
end select
Expand Down

0 comments on commit 686c5a6

Please sign in to comment.