PLUTO  4.4-patch2
Functions
bckgrnd_field.c File Reference

Compute background magnetic field at the desired location. More...

#include "pluto.h"

Functions

void GetBackgroundField (const State *state, int beg, int end, int where, Grid *grid)
 

Detailed Description

This function is normally called from Riemann solvers to compute the background magnetic field into the *state structure.

Authors
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
March 05, 2017

Function Documentation

◆ GetBackgroundField()

void GetBackgroundField ( const State state,
int  beg,
int  end,
int  where,
Grid grid 
)
Parameters
[out]*statepointer to state structure.
[in]begstarting index of computation.
[in]endfinal index of computation.
[in]wherethe grid location (CELL_CENTER/FACE_CENTER)
[in]*gridpointer to Grid structure.