Author Topic: write(iow,*) doesn't work  (Read 5159 times)

ngucong

  • Jr. Member
  • **
  • Posts: 10
write(iow,*) doesn't work
« on: March 20, 2013, 02:33:35 AM »
Dear all,

I use write(iow,*) to debug my element (write to output file the informations I need when running the la program). But sometimes it doesn't work.
May anyone have any idea about this? Or is there any better solution to debug the program?

Thanks

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: write(iow,*) doesn't work
« Reply #1 on: March 20, 2013, 10:27:42 PM »
This should always work.  Perhaps your write(iow,*) line is not being reached? or there is an error that occurs before the buffer is flushed?  Try replacing with write(*,*) just to get output to the screen to make sure you are getting to you line. 

But better would be to use gdb to step through your subroutine to see what is happening.