The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.

Ansys Learning Forum Forums Discuss Simulation LS Dyna Static Variable in User Defined Function Reply To: Static Variable in User Defined Function

Andreas Koutras
Ansys Employee
Hello It seems that you are trying to implement a subroutine "rebar_bondslip_get_force" in the umat package. The umat subroutines are written in Fortran. To define a global variable, you can write a module in the umat file. For example, to define an integer global variable "icounter", you can copy following lines in dyn21.F. You can look online for general information and examples on Fortran commands. I hope this helps.
module example
implicit none
save
integer icounter
end module example