29 double sum = 0, global_sum = 0;
31 static const double tolerance = 1e-15;
34 double* u_diff = (
double*) calloc (size,
sizeof(
double));
37 double solution_norm[3] = {0.0,0.0,0.0};
55 solution_norm[1] = sqrt(global_sum/((
double)solver->
npoints_global));
64 solution_norm[2] = global_sum;
103 if ( (solution_norm[0] > tolerance)
104 && (solution_norm[1] > tolerance)
105 && (solution_norm[2] > tolerance) ) {
int npoints_local_wghosts
INLINE double ArraySumAbsnD(int, int, int *, int, int *, double *)
MPI related function definitions.
int MPISum_double(double *, double *, int, void *)
int MPIMax_double(double *, double *, int, void *)
INLINE double ArraySumSquarenD(int, int, int *, int, int *, double *)
int CalculateROMDiff(void *s, void *m)
#define _ArrayCopy1D_(x, y, size)
long sum(const std::vector< int > &a_iv)
Contains structure definition for hypar.
Contains function declarations for time integration.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
Structure of MPI-related variables.
INLINE double ArrayMaxnD(int, int, int *, int, int *, double *)
#define _ArrayAXPY_(x, a, y, size)
Structure containing all solver-specific variables and functions.
Some common functions used here and there.