GINO Graphics Suite - GINO v9.0  

gSetErrorFile

Syntax

[C/C++:]
void gSetErrorFile(GFILE *fp);
void gSetErrorFilename(char *filename);
[F90:]
subroutine gSetErrorFile(unit)
subroutine gSetErrorFilename(filename)

integer, intent(in) :: unit
character*(*), intent(in) :: filename

Arguments

fp
Pointer to GINO-C Error/Tracer Message output file

unit
Fortran 90 file unit

filename
Filename or pathname of  new output file

Description

By default, error and tracer messages are sent to the system default output or error channel for the system being used. This may be a file unit or in the case of Windows applications, a specially created error window. The routines gSetErrorFile() and gSetErrorFilename() can be used to change this default, in order to direct these messages to an application dependent destination.

The routine gSetErrorFilename() (re)opens a disk file of the specified filename to which all subsequent messages are written. In the case of gSetErrorFile(), the file must have been opened prior to calling this routine using the function gFopen(), with the file pointer or unit number passed as appropriate to the language being used.

Note that it is not possible to change the destination of the GINO banner message (if generated) as this routine does not take effect until after the banner has been produced.

See Also

gSetErrorFile Usage
gFopen
gSetTracerMode