View previous topic :: View next topic |
Author |
Message |
Dromihetex
Joined: 16 Aug 2021 Posts: 2
|
Posted: Mon Aug 16, 2021 5:22 pm Post subject: What is expression of an old Fortran function INTEG(a,b)? |
|
|
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 |
|
Back to top |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1895
|
Posted: Mon Aug 16, 2021 6:26 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
Dromihetex
Joined: 16 Aug 2021 Posts: 2
|
Posted: Mon Aug 16, 2021 6:45 pm Post subject: Re: |
|
|
ANGACp - is an array with 3 components
AGVLpx=INTEG(ANGACp(1,1),0)
------------------------------------------
mecej4 wrote: | 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. |
---------------------------------- |
|
Back to top |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1895
|
Posted: Mon Aug 16, 2021 11:11 pm Post subject: |
|
|
Are there type declarations in context for ANGACP, INTEG and AGVLPX? Any IMPLICIT declaration? |
|
Back to top |
|
|
jlb
Joined: 21 Oct 2020 Posts: 48
|
Posted: Tue Aug 17, 2021 4:33 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
|