The routine flush
is a standard Unix routine that flushes any output that has been buffered. The name of this routine may change in different Unix operating systems. ROMS/TOMS has its own flush routine, my_flush
, which is declared in mp_routines.F
, to allow easy change to other routines names with identical functionality.
Notice that whole pupose of the file mp_routines.F
is to provide an interface for all kinds of standard Unix routines that may change their name across operating systems. For example, the function to get arguments from the comand-line is getarg
in mostly all Unix systems but on the Cray is pxfgetarg
. Similar construction is possible for the flush
routine. Already, there is a construction for AIX
systems where the routine name is flush_
You need to look the appropiate name for this routine in your operating system and provide the CPP structure in my_flush
). Notice that each computer has it own environmental name flag. Use this name in the #if
CPP structure. I usually put this name in the Makefile CPPFLAGS
macro. If there is not a flush routine in you system, you can leave this entry blank so nothing is done to flush the output buffer.