I need to switch from Nek5000 to NekRS.
subroutine userchk()
implicit none
include 'SIZE'
include 'TOTAL'
! velocity gradients
real dwdx(lx1, ly1, lz1, lelv),
& dwdy(lx1, ly1, lz1, lelv),
& dwdz(lx1, ly1, lz1, lelv)
! calculate velocity gradients
call gradm1(dwdx, dwdy, dwdz, vz)
! make derivatives smooth
n = nx1*ny1*nz1*nelv
call col2(dwdy, bm1, n)
call dssum(dwdy, nx1, ny1, nz1)
call col2(dwdy, bintm1, n)
return
end
At this point, I do not want to consider calling userchk() from UDF_ExecuteStep (I want to have "pure" c++ implementation since there are some more things that I will do later there).