20 if ( localaxifield == NULL ) {
21 mastererr (
"Error: Not enough memory in mpi_make1Dprofile().");
24 for ( i = 0; i <
NRAD; i++ )
25 localaxifield[i] = 0.;
27 for( j = 0; j <
NSEC; j++ ) {
29 localaxifield[i] += gridfield[l];
31 localaxifield[i] /= (
real)NSEC;
35 axifield[i] = localaxifield[i];
40 if ( i < Max_or_active )
41 axifield[i] = localaxifield[i];
52 axifield[i+
IMIN] = localaxifield[i];
double real
Definition of the type 'real' used throughout the code.
void mastererr(const char *template,...)
Contains all the include directives requested by the code.
void mpi_make1Dprofile(real *gridfield, real *axifield)