12#include "gadgetconfig.h"
19#include "../data/allvars.h"
20#include "../data/dtypes.h"
21#include "../debug_md5/Md5.h"
22#include "../logs/logs.h"
23#include "../main/simulation.h"
30 unsigned char digest[16];
38 for(
int i = 0; i < 16; i++)
39 u.digest[i] = sum.
digest[i];
41 for(
int i = 0; i < 4; i++)
50 unsigned char digest[16];
58 for(
int i = 0; i < 16; i++)
59 u.digest[i] = sum.
digest[i];
61 MPI_Allreduce(u.val, uglob.val, 4, MPI_INT, MPI_SUM,
Communicator);
65 fprintf(FdDebug,
"\n");
67 for(
int i = 0; i < 16; i++)
68 fprintf(FdDebug,
"%02x", uglob.digest[i]);
69 fprintf(FdDebug,
"\n");
78 unsigned char digest[16];
80 } u, uglob_P, uglob_SphP;
86 for(
int i = 0; i < 16; i++)
87 u.digest[i] = sum.
digest[i];
89 MPI_Allreduce(u.val, uglob_P.val, 4, MPI_INT, MPI_SUM,
Communicator);
95 for(
int i = 0; i < 16; i++)
96 u.digest[i] = sum.
digest[i];
98 MPI_Allreduce(u.val, uglob_SphP.val, 4, MPI_INT, MPI_SUM,
Communicator);
102 fprintf(FdDebug,
"\n");
104 for(
int i = 0; i < 16; i++)
105 fprintf(FdDebug,
"%02x", uglob_P.digest[i]);
106 fprintf(FdDebug,
"\n");
108 fprintf(FdDebug,
" SphP[] %s: ", msg);
109 for(
int i = 0; i < 16; i++)
110 fprintf(FdDebug,
"%02x", uglob_SphP.digest[i]);
111 fprintf(FdDebug,
"\n");
void MD5UpdateLong(MD5_CTX *mdContext, unsigned char *inBuf, unsigned long long inLenLong)
void MD5Init(MD5_CTX *mdContext)
void MD5Final(MD5_CTX *mdContext)
global_data_all_processes All
void block_checksum(void *base, size_t bytes, int res[4])
void calc_memory_checksum(const char *msg, void *base, size_t bytes)
void log_debug_md5(const char *msg)