Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Debugging Abaqus User Element while using parallel processing

Status
Not open for further replies.

sonia93

Student
Aug 29, 2022
1
Hello, I am compiling an ABAQUS subroutine coded in Fortran 90, when I try to either Print some values for debugging or writing these values to a text file, I get wrong order of the output. Sometimes the same Print/Write statement is repeated many times, and some values are skipped in some iterations. I have read about Flushing the output buffers, but still the same problem. Someone suggested that the problem comes from parallel processing, how can I deactivate it, in order to get the correct debugging order?
Thank you!

This is the code I use for writing some values to a text file. First I start with this code to indicate the beginning of a while loop(outside the loop):
Code:
IF (KINC .EQ. 5) THEN
   OPEN(1, file='/home/ABAQUS/phies.txt' , action='write',position='append')
   write(1,*) 'Start while loop'
   call flush(1)
   close(1)
ENDIF
Then inside the loop, I print an angle value:
Code:
IF (KINC .EQ. 5) THEN
   OPEN(1, file='/hom/ABAQUS/phies.txt' , action='write',position='append')
   write(1,*) phi
   CALL flush(1)
   close(1)
ENDIF
Finally, outside the loop, I write a statement to indicates its end and the number of done iterations:
Code:
IF (KINC .EQ. 5) THEN
    OPEN(1, file='/home/ABAQUS/phies.txt' , action='write',position='append')
    write(1,*) 'end while loop'
    CALL flush(1)
    write(1,*) iterator
    CALL flush(1)
    close(1)
ENDIF
And here is a sample of the text file I get:
33_bfi19c.png
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor