PDA

View Full Version : help in vumat



ashu28
2006-11-05, 13:16
Hi!
Can anyone help me with these questions:

1.
I start my VUMAT with these lines:
subroutine vumat(&
! Read only (unmodifiable)variables -
nblock, ndir, nshr, nstatev, nfieldv, nprops, lanneal,&
stepTime, totalTime, dt, cmname, coordMp, charLength,&
props, density, strainInc, relSpinInc,&
tempOld, stretchOld, defgradOld, fieldOld,&
stressOld, stateOld, enerInternOld, enerInelasOld,&
tempNew, stretchNew, defgradNew, fieldNew,&
! Write only (modifiable) variables -
stressNew, stateNew, enerInternNew, enerInelasNew )

But I get the error that some of the quantities are not used in the code. I used to think that one has to keep this piece of code unchanged no matter what. Does this mean that I may as well delete from the above lines, lets say, coordMp if I am not using it?

2.
Another question, I get the msg,
Warning: This name has not been given an explicit type. [NPROPS]
Similar warning messages for every variable. how should I get rid of those? Should I use implicit real *8(a-h,o-z)??

Ashu

Jorgen
2006-11-05, 18:38
1) Depending on what compiler that you use, you might get warning messages about the parameters to the vumat() function that you do not use. These warnings can safely be ignored.

You should not get error messages from this, and no, you cannot delete variables that you do not use (such as coordMp).

2) Do you use the command: include 'vaba_param.inc' in your Fortran file? I personally like to declare all variables, using statements such as:
integer nprops

You do not need to remove those warning messages. Note, however, that many serious Fortran programmers do not like the implicit command.

- Jorgen