PLUTO  4.4-patch2
Functions
output_log.c File Reference

Output log file driver. More...

#include "pluto.h"
#include <sys/stat.h>
#include <sys/types.h>

Functions

static void Particles_Log (Data *, timeStep *, Grid *)
 
void OutputLogPre (Data *data, timeStep *Dts, Runtime *ini, Grid *grid)
 
void OutputLogPost (Data *data, timeStep *Dts, Runtime *ini, Grid *grid)
 
void LogFileClose (void)
 
void LogFileFlush (void)
 
void LogFileOpen (char *log_dir, char *mode)
 
void print (const char *fmt,...)
 
void printLog (const char *fmt,...)
 

Detailed Description

The integration log file is divided into a "pre-step" and a "post-step" output.

Authors
A. Mignone(migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
B. Vaidya
Date
Jul 28, 2020

Function Documentation

◆ LogFileClose()

void LogFileClose ( void  )

Close a previously opened log file

◆ LogFileFlush()

void LogFileFlush ( void  )

Flushes the output buffer of a log file stream.

◆ LogFileOpen()

void LogFileOpen ( char *  log_dir,
char *  mode 
)

Open log file name in parallel mode. Each processor has its own log file "pluto.prank.log", unless the MULTIPLE_LOG_FILES flag has been set to FALSE.

Parameters
[in]output_dirthe name of the output directory
[in]cmdpointer to cmd line option structure.

◆ OutputLogPost()

void OutputLogPost ( Data data,
timeStep Dts,
Runtime ini,
Grid grid 
)

Provide log-file information after integration ends

◆ OutputLogPre()

void OutputLogPre ( Data data,
timeStep Dts,
Runtime ini,
Grid grid 
)

Provide log-file information before integration starts

◆ Particles_Log()

void Particles_Log ( Data data,
timeStep Dts,
Grid grid 
)
static

Global MPI reduction operations for PARTICLES Diagnostics

◆ print()

void print ( const char *  fmt,
  ... 
)

Define print function for the static grid version of PLUTO. The Chombo version is defined in Chombo/amrPLUTO.cpp

Note: when MULTIPLE_LOG_FILES == FALSE, only proc #0 can execute this function.

◆ printLog()

void printLog ( const char *  fmt,
  ... 
)

Define printLog function for the static grid version of PLUTO [All processors will write]