Silverfrost Forums

Welcome to our forums

What is expression of an old Fortran function INTEG(a,b)?

16 Aug 2021 4:22 #28188

Dears,

I want to compile old Fortran code, but it show errors for a nonexistent function c=INTEG(a,b). What is the expression of this kind of function? Attention is needed 2 parameters. The second parameter seems to be an integer. (for ex: b=0) Number 'a' seems to be a simple real number (a = REAL) Could be a function for integrate, similar to python? But has only 2 arguments!!!

Of course, it could be an external function also...but maybe wasn't...

Best regards, Ciprian

16 Aug 2021 5:26 #28189

INTEG is not a standard Fortran function, and it is not a good idea to guess what it was intended to mean. If you show the whole context of the function invocation or, if feasible, the entire source code, there may be a better chance of successfully guessing what it should be.

On the other hand, it is up to the authors of the code to document their code or explain obscure parts when asked.

16 Aug 2021 5:45 #28190

ANGACp - is an array with 3 components

AGVLpx=INTEG(ANGACp(1,1),0)


Quoted from mecej4 INTEG is not a standard Fortran function, and it is not a good idea to guess what it was intended to mean. If you show the whole context of the function invocation or, if feasible, the entire source code, there may be a better chance of successfully guessing what it should be.

On the other hand, it is up to the authors of the code to document their code or explain obscure parts when asked.


16 Aug 2021 10:11 #28191

Are there type declarations in context for ANGACP, INTEG and AGVLPX? Any IMPLICIT declaration?

17 Aug 2021 3:33 #28192

The Fortran code you are dealing with might be a translation of a modelisation done with ACSL (Advanced Continuous Simulation Language). ACSL has/had an INTEG operator with two arguments, which returns a value determined by the numerical integration of the derivative contained in the first input argument, with an initial condition specified by the value of the second input argument.

Please login to reply.