added test in pol_limit for anpl=0 to avoid 0/0 expressions
This commit is contained in:
parent
af5fb208b2
commit
e1ba175efb
10
src/gray.f
10
src/gray.f
@ -5083,8 +5083,14 @@ c
|
|||||||
exom=(ffo*csgam-ui*anpl*sngam)/sqrt(deno)
|
exom=(ffo*csgam-ui*anpl*sngam)/sqrt(deno)
|
||||||
eyom=(-ffo*sngam-ui*anpl*csgam)/sqrt(deno)
|
eyom=(-ffo*sngam-ui*anpl*csgam)/sqrt(deno)
|
||||||
c
|
c
|
||||||
exxm=(ffx*csgam-ui*anpl*sngam)/sqrt(denx)
|
c if anpl=0 the expressions for exxm and eyxm are 0/0
|
||||||
eyxm=(-ffx*sngam-ui*anpl*csgam)/sqrt(denx)
|
if (anpl.eq.0.0_wp_) then
|
||||||
|
exxm=-ui*sngam
|
||||||
|
eyxm=-ui*csgam
|
||||||
|
else
|
||||||
|
exxm=(ffx*csgam-ui*anpl*sngam)/sqrt(denx)
|
||||||
|
eyxm=(-ffx*sngam-ui*anpl*csgam)/sqrt(denx)
|
||||||
|
end if
|
||||||
c
|
c
|
||||||
if (sox.lt.0.0_wp_) then
|
if (sox.lt.0.0_wp_) then
|
||||||
ext=exom
|
ext=exom
|
||||||
|
Loading…
Reference in New Issue
Block a user