About rhs subroutine

About rhs subroutine

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-codef(i) = -F_some(i, dt, t, y) / foo(i)!end psedo-codewhere 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 / novo 0
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.