Substitute worker.c with ChemWorker.cpp

This commit is contained in:
Max Lübke 2021-01-08 17:53:16 +01:00
parent 0ed1ea9fd8
commit 6905154f5e
2 changed files with 4 additions and 3 deletions

View File

@ -179,7 +179,7 @@ int main(int argc, char *argv[]) {
// cout << "CPP: DHT significant digits = " << dht_significant_digits <<
// endl;
params.dht_log = cmdl["dht-log"];
params.dht_log = !(cmdl["dht-nolog"]);
// cout << "CPP: DHT logarithm before rounding: " << ( dht_logarithm ? "ON"
// : "OFF" ) << endl;

View File

@ -25,7 +25,8 @@ void ChemWorker::prepareSimulation(MPI_Comm dht_comm) {
(double *)calloc(wp_size * (grid.getCols()), sizeof(double));
if (world_rank == 1)
cout << "Worker: DHT usage is " << (dht_enabled ? "ON" : "OFF") << endl;
cout << "CPP: Worker: DHT usage is " << (dht_enabled ? "ON" : "OFF")
<< endl;
if (dht_enabled) {
int data_size = grid.getCols() * sizeof(double);
@ -36,7 +37,7 @@ void ChemWorker::prepareSimulation(MPI_Comm dht_comm) {
if (world_rank == 1)
cout << "CPP: Worker: data size: " << data_size << " bytes" << endl
<< "CPP: Worker: key size: " << key_size << "bytes" << endl
<< "CPP: Worker: key size: " << key_size << " bytes" << endl
<< "CPP: Worker: buckets per process " << dht_buckets_per_process
<< endl;