Output in Fortran
Tim Prince
n8tm@aol.com
Thu Jan 31 15:02:00 GMT 2013
On 1/31/2013 8:40 AM, mp22222222222 wrote:
> Hi everybody,
>
> am trying to make an output in a text file in my Fortran VUMAT file.
> it works well, when by writting the output on the screen :
> WRITE(*,*) 'Gamma=MVf=', gamma
> but when i want it to write the variable gamma in a text file, the code is
> running well but there is no .txt file produced!
>
> here is my main loop where i tried to write the output request.
>
> 2000 continue
> call elastic(x,celas,c2,cdach,smises,e,xnu,emoda,
> & emodm,enua,enum,totstrain,gamma,detrans)
> OPEN(UNIT=12,FILE="MVolFrac.txt",status='new',ACTION="write")
> WRITE(12,*)'Gamma=MVf=',gamma
>
> Does anybody have any idea regarding this problem ?
Did you check whether the file is opened successfully? With 'new' you
would have to remove the file prior to each attempt.
--
Tim Prince
More information about the Fortran
mailing list