About rhs subroutine

About rhs subroutine

oleglebedev's picture

Good day, I have a question about rhs-subroutine. Short introduction: Coding a program I have to specify this rhs like an external procedure, if I compile it as a separete file or do not do if it is a module procedure. Q: In this rhs-procedure I must declare whole f(1:n) function being the right hand side of my system of ODE. But my rhs functions f(*) are complicatedfunction calling another procedure. Should I keep a calling tree of f(i) like a: !psedo-code f(i) = -F_some(i, dt, t, y) / foo(i) !end psedo-code where F_some is a function of an independed variable t and IN function y(1:n)? Or I`d better code another function that will return the number values of y(*) which are using as an intent(IN) in the rhs-subroutine? Best, Oleg.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.