26 fprintf(stderr,
"Error in SparseGridsSimulation::interpolate(): unequal nvars\n");
30 double *ug_dst = NULL;
35 (
void*) &(a_dst->
mpi),
36 (a_dst->
mpi.
rank ? NULL : ug_dst),
64 double**
const a_u_dst,
68 if ((*a_u_dst) != NULL) {
69 fprintf(stderr,
"Error in SparseGridsSimulation::interpolate() - \n");
70 fprintf(stderr,
" a_u_dst is not NULL!\n");
83 double *ug_src = NULL;
86 (
void*) &(a_src->
mpi),
94 std::vector<int> periodic_arr(
m_ndims);
107 periodic_arr.data());
109 fprintf(stderr,
"InterpolateGlobalnDVar() returned with error!\n");
int MPIPartitionArraynDwGhosts(int, void *, double *, double *, int *, int *, int, int)
Structure defining a simulation.
Contains function definitions for common mathematical functions for C++ code.
std::vector< int > GridDimensions
void allocateDataArrays(const GridDimensions &a_dim, const int a_nvars, double **const a_u, const int a_ngpt=0)
int MPIGatherArraynDwGhosts(int, void *, double *, double *, int *, int *, int, int)
int InterpolateGlobalnDVar(const int *const, double **const, const int *const, double *const, const int, const int, const int, const int *const)
std::vector< bool > m_is_periodic
Contains some vector ops.
void interpolate(SimulationObject *const, const SimulationObject *const)
Contains macros and function definitions for common array operations.
void copyFrom(std::vector< int > &a_iv, const int *const a_iv_carr, int a_n)