Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Abaqus subroutine debug

Status
Not open for further replies.

yunlin

Structural
Joined
Apr 26, 2012
Messages
10
Location
US
I am writing a Dflux subroutine for heat transfer problem. I am only on the testing stage. Heat flux is assigned as simple as flux(1) = sol*10
However I want to use write command to debug. so I added
common xys(1)
xys(1) = 1/296
write(7,*)"the value of xys(1) is:", xys(1)
(I just want to see if the equations are functioning well)

Subroutine went through with abaqus no problem.
But it seems like if the value of xys is less than 1, it would be displayed as "0". Always 0. Why?

Maybe the output format is wrong?
 
I have to use the equation like 1/(273+sol) and hopefully display it. is there a way to make it happen? also, can you explain 0.0036d0? I am very new to fortran.
 
Thanks for the help. I appreciate any detail if any one.
 
Try 'xys(1) = 1./296.'. You need to make sure you use reals not integers to avoid rounding problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top