Adjust the effective domain size when the -xNjet option is given. More...
#include "pluto.h"
Functions | |
static int | GetRightmostIndex (int, double ***) |
void | SetJetDomain (const Data *d, int dir, int log_freq, Grid *grid) |
void | UnsetJetDomain (const Data *d, int dir, Grid *grid) |
The SetJetDomain() function shortens the domain integration index in the direction specified by either '-x1jet', '-x2jet' or '-x3jet' to save computational time. This is done by setting the final integration index in the direction of jet propagation to that of the first zone (counting from the top) with non-zero pressure gradient (GetRightmostIndex()). The function UnsetJetDomain() restores the initial computational domain size. Useful for problems involving jet propagation.
|
static |
Find the local index j where grad(p) exceeds a ceratin threshold