PLUTO  4.4-patch2
Functions
set_indexes.c File Reference

Perform index permutation and set domain integration indexes. More...

#include "pluto.h"

Functions

void SetVectorIndices (int dir)
 
void ResetState (const Data *d, Sweep *sweep, Grid *grid)
 

Detailed Description

The function SetIndexes() performs a cyclic permutation of the array indices corresponding to vector components (velocity, momentum, magnetic field, etc...). Indices are stored as global variables, see globals.h

Author
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
July 09, 2019

Function Documentation

◆ ResetState()

void ResetState ( const Data d,
Sweep sweep,
Grid grid 
)

Initialize some of the elements of the Sweep structure to zero in order to speed up computations. These includes:

  • source term
  • left and right eigenvectors
  • the maximum eigenvalue ???
Parameters
[in]dpointer to Data structure
[out]sweeppointer to a Sweep structure
[in]gridpointer to an array of Grid structures

◆ SetVectorIndices()

void SetVectorIndices ( int  dir)

Set vector indices and integration index range.

Parameters
[in]dirthe direction index