Skip to Content.
Sympa Menu

forum - Re: [abinit-forum] How to print to file?

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Re: [abinit-forum] How to print to file?


Chronological Thread 
  • From: Clovis Darrigan <clovis.darrigan@univ-pau.fr>
  • Cc: forum@abinit.org
  • Subject: Re: [abinit-forum] How to print to file?
  • Date: Tue, 5 Oct 2004 18:11:36 +0200

but nothing is printed in ab_out (output file) nor in "log" file.
strange

Sometimes, a "write" doesn't write... because the write buffer is not full.
You can force the buffer to be flushed on a file by using the "flush" function with the logic number of the file as an argument, look :

write(ab_out,*) "hello"
call flush(ab_out)

Well, don't put flush function after each write of a big program, because it could slow down the program.
Bye
Clovis.




Archive powered by MHonArc 2.6.16.

Top of Page