×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Abaqus subroutine debug

Abaqus subroutine debug

Abaqus subroutine debug

(OP)
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?

RE: Abaqus subroutine debug

(OP)
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.

RE: Abaqus subroutine debug

(OP)
Thanks for the help. I appreciate any detail if any one.

RE: Abaqus subroutine debug

Try 'xys(1) = 1./296.'. You need to make sure you use reals not integers to avoid rounding problems.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources