×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Variable in a subroutine - definition

Variable in a subroutine - definition

Variable in a subroutine - definition

(OP)
I have a question related to the UEXPAN subroutine. The example from Abaqus Verification Manual is given below:

CODE --> Fortran

c
c user subroutine uexpan

      subroutine uexpan(expan,dexpandt,temp,time,dtime,predef,dpred,
     $     statev,cmname,nstatv,noel)
c
      include 'aba_param.inc'
c
      character*80 cmname
c
      dimension expan(*),dexpandt(*),temp(2),time(2),predef(*),
     $     dpred(*),statev(nstatv)
c
	alpha = 1.0d-05
c
	expan(1) = alpha*temp(2)
c
      return
      end 

I do not understand this line:

CODE --> Fortran

alpha = 1.0d-05 
Why the variable "alpha" is not defined in the subroutine? I know that the type of a variable is implied by the first letter of the variable name to be integer or real. But the value of "alpha" equals 1.0d-05, the letter "d" means that the double precision definition is used.
How can it be explained?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources