Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Very simple if you know but hard if you don't

Status
Not open for further replies.

Debeast

Programmer
Joined
Jul 18, 2002
Messages
28
Location
GB
Hi there,

I have some simple q's for anyone that does know about fortran . Unfortunately i do not :(

My question are:

Q1) What does 2.* varname mean?

I understand its 2 times the variable but what is the full stop for/do?

Q2) What does (Dabs(y/dy).lt.tol) actaully mean?

Is dabs an array or is a * implicit in the declaration. Again what are the full stops?

Very many thanks for anyone that helps :)

/n

 
Q1) Possibly the variable after the 2.* is an integer.
If a real is desired (float) conversion is sometimes done by multiplying by 2. which is a real in stead of by 2 which is an integer.
Q2)I think you need a fortran manual
 
Thanks :)

q1) i think is sorted and the . after 2 indeed means its a real number :)

q2) been looking through manuals but am still at a loss :( Shall look through this one too. Anyone elses help would be great

thanks

/n

 
Just in case anyone else ever needs this

.LT. = Less than

Dabs = an intrinsic fortran function

problem solved woot

/n
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top