Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(testN_t), | intent(in) | :: | self | |||
real(kind=wp), | intent(in), | dimension(:) | :: | x | Must be dimension(2) |
function eval_testN(self,x) result(o)
class(testN_t),intent(in)::self
real(wp),dimension(:),intent(in)::x
!! Must be dimension(2)
real(wp)::o
if( kLog<=size(xLog,1) ) then
xLog(kLog,1:2) = x(1:2)
kLog = kLog+1
end if
o = norm2( (x(1:2)-self%c0)*self%s0 )**2-1.0_wp
end function eval_testN