Deck & include commands in Fortran
Deck & include commands in Fortran
(OP)
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?
Program contains the following commands
*deck,
#include
What are these commands do? Where can I find information about them?
RE: Deck & include commands in Fortran
*deck is only a comment! I have forgotten that in f77, * indicates comment line too!
RE: Deck & include commands in Fortran
not in any dialect of fortran that I have ever seen in the past 30+ years !
RE: Deck & include commands in Fortran
RE: Deck & include commands in Fortran
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Deck & include commands in Fortran
*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 *************************************
RE: Deck & include commands in Fortran
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.
RE: Deck & include commands in Fortran
RE: Deck & include commands in Fortran
h
TTFN
FAQ731-376: Eng-Tips.com Forum Policies