Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Deck & include commands in Fortran 1

Status
Not open for further replies.

jiligeo

Geotechnical
Feb 24, 2005
145
Hi, I want to understand a subroutine which is written in Fortran.
Program contains the following commands

*deck,
#include

What are these commands do? Where can I find information about them?

 
Replies continue below

Recommended for you

Thanks, I have found the answer!
*deck is only a comment! I have forgotten that in f77, * indicates comment line too!
 
"* indicates comment line too!"

not in any dialect of fortran that I have ever seen in the past 30+ years !
 
I mean , C or * at the first column indicates a comment line. I have still problem with #include command! what is this command?
 
Are you sure you're looking at a Fortran file?

TTFN

FAQ731-376
 
this is the subroutine:

*deck,usermat parallel user gal
subroutine usermat(
& matId, elemId,kDomIntPt, kLayer, kSectPt,
& ldstep,isubst,keycut,
& nDirect,nShear,ncomp,nStatev,nProp,
& Time,dTime,Temp,dTemp,
& stress,ustatev,dsdePl,sedEl,sedPl,epseq,
& Strain,dStrain, epsPl, prop, coords,
& rotateM, defGrad_t, defGrad,
& tsstif, epsZZ,
& var1, var2, var3, var4, var5,
& var6, var7, var8)
c*************************************************************************
#include "impcom.inc"
c
INTEGER
& matId, elemId,
& kDomIntPt, kLayer, kSectPt,
& ldstep,isubst,keycut,
& nDirect,nShear,ncomp,nStatev,nProp
DOUBLE PRECISION
& Time, dTime, Temp, dTemp,
& sedEl, sedPl, epseq, epsZZ
DOUBLE PRECISION
& stress (ncomp ), ustatev (nStatev),
& dsdePl (ncomp,ncomp),
& Strain (ncomp ), dStrain (ncomp ),
& epsPl (ncomp ), prop (nProp ),
& coords (3), rotateM (3,3),
& defGrad (3,3), defGrad_t(3,3),
& tsstif (2)
c
c***************** User defined part *************************************
 
Jiligeo,

An asterisk is not a valid character to start a comment line.

#include "impcom.inc" would mean that the contents of a file called "impcom.inc" are to be inserted into the source code at this position.

 
Thank you very much for your reply. Could you give me please a reference for more information?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor