Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep 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
Apr 26, 2012
10
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?
 
Replies continue below

Recommended for you

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