forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Dromihetex



Joined: 16 Aug 2021
Posts: 2

PostPosted: Mon Aug 16, 2021 5:22 pm    Post subject: What is expression of an old Fortran function INTEG(a,b)? Reply with quote

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
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1884

PostPosted: Mon Aug 16, 2021 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dromihetex



Joined: 16 Aug 2021
Posts: 2

PostPosted: Mon Aug 16, 2021 6:45 pm    Post subject: Re: Reply with quote

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
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1884

PostPosted: Mon Aug 16, 2021 11:11 pm    Post subject: Reply with quote

Are there type declarations in context for ANGACP, INTEG and AGVLPX? Any IMPLICIT declaration?
Back to top
View user's profile Send private message
jlb



Joined: 21 Oct 2020
Posts: 44

PostPosted: Tue Aug 17, 2021 4:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group