A quick question about pointers.
Hi there,
I have a quick question about a code I'm trying to understand. I see strange declarations in the code that involve 2 or 3 asterisks. Please see below (under /*Global declarations/*).
Here is the example code:
Code:
#include "headers/chemistry.h"
#include "headers/fluxes.h"
#include "headers/general.h"
#include "headers/input_init_var.h"
/* Global declarations */
CELL ***cell;
FLUX **x1_fluxes, *x2_fluxes, x3_fluxes;
int temp_nx_cells, temp_ny_cells, temp_nz_cells, nx_cells, ny_cells,
nz_cells, rtnewt_check, t_index, x_index, y_index, z_index, **proc_lwrb;
int equal_gamma=1, finished=0, rank, n_proc_1, n_proc_2, n_proc_3, nproc,
lower_x2_bdry, lower_x1_bdry, lower_x3_bdry, nx_cells_tot,
ny_cells_tot, nz_cells_tot, x1_position, x2_position, x3_position,
low_x1_nbr, high_x1_nbr, low_x2_nbr, high_x2_nbr, low_x3_nbr, high_x3_nbr;
long int cell_counter=0;
Would someone be able to explain their meaning and function to me?
Cheers,
Wayne.