PLUTO  4.4-patch2
Functions
runtime_setup.c File Reference

Read runtime information from pluto.ini. More...

#include "pluto.h"

Functions

int RuntimeSetup (Runtime *runtime, cmdLine *cmd_line, char *ini_file)
 
void GetOutputFrequency (Output *output, const char *output_format)
 
void RuntimeSet (Runtime *runtime)
 
RuntimeRuntimeGet (void)
 

Detailed Description

Parse and read runtime information from the initialization file pluto.ini (default) and sets value of the runtime structure.

Authors
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
June 24, 2019

Function Documentation

◆ GetOutputFrequency()

void GetOutputFrequency ( Output output,
const char *  output_format 
)

Set the intervals between output files. This can be done in three different ways:

  • dt: time interval in code units
  • dn: step interval
  • dclock: actual clock time (in hours)

However, dn and dclock are mutually exclusive.

◆ RuntimeGet()

Runtime* RuntimeGet ( void  )

Return a pointer to runtime structure.

◆ RuntimeSet()

void RuntimeSet ( Runtime runtime)

Store a static copy of the runtime structure for later access.

◆ RuntimeSetup()

int RuntimeSetup ( Runtime runtime,
cmdLine *  cmd_line,
char *  ini_file 
)

Open and parse the runtime initialization file. Assign values to the runtime structure.

Parameters
[out]runtimepointer to a Runtime structure
[in]cmd_linepointer to a cmdLine structure (useful, e.g., to resize the domain using the -xres option)
[in]ini_filethe name of the initialization file (default is "pluto.ini") specified with the -i option.