Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Variable in a subroutine - definition

Status
Not open for further replies.

polak7

Materials
Jan 23, 2015
52
I have a question related to the UEXPAN subroutine. The example from Abaqus Verification Manual is given below:
Code:
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:
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor