PLUTO  4.0
 All Data Structures Files Functions Variables Enumerations Macros Pages
Functions
setup.c File Reference

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

#include "pluto.h"

Functions

static void GetOutputFrequency (Output *, char *)
 
int Setup (Input *input, Cmd_Line *cmd_line, char *ini_file)
 

Detailed Description

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

Authors
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
Oct 29, 2012

Function Documentation

void GetOutputFrequency ( Output output,
char *  output_format 
)
static

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.

int Setup ( Input *  input,
Cmd_Line *  cmd_line,
char *  ini_file 
)

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

Parameters
[out]inputpointer to an Input structure
[in]cmd_linepointer to a Cmd_Line 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.