I tried to create a small subroutine and I get this error : "SIGSEGV signal (forbidden memory area access) intercepted!"
There's nothing else written in the error file, only this row.
I set the volumic flow rate in GUI and i wrote this code in cs_user_boundary_condition.f90 (with z=axial direction)
Code: Select all
call getfbr('Inlet',nlelt,lstelt)
do ilelt = 1, nlelt
x = cdgfbo(1,ifac)
y = cdgfbo(2,ifac)
z = cdgfbo(3,ifac)
a = atan(y/x)
b = (45/180*3.14)
ifac = lstelt(ilelt)
iel = ifabor(ifac)
itypfb(ifac) = ientre
if (x<0) then
rcodcl(ifac,iu,1) = cos(a+b)
rcodcl(ifac,iv,1) = sin(a+b)
rcodcl(ifac,iw,1) = 0
else
rcodcl(ifac,iu,1) = -cos(a+b)
rcodcl(ifac,iv,1) = -sin(a+b)
rcodcl(ifac,iw,1) = 0
end if
enddo
Regards,
Robert