mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 12:54:50 +01:00
Substitute worker.c with ChemWorker.cpp
This commit is contained in:
parent
0ed1ea9fd8
commit
6905154f5e
@ -179,7 +179,7 @@ int main(int argc, char *argv[]) {
|
|||||||
// cout << "CPP: DHT significant digits = " << dht_significant_digits <<
|
// cout << "CPP: DHT significant digits = " << dht_significant_digits <<
|
||||||
// endl;
|
// endl;
|
||||||
|
|
||||||
params.dht_log = cmdl["dht-log"];
|
params.dht_log = !(cmdl["dht-nolog"]);
|
||||||
// cout << "CPP: DHT logarithm before rounding: " << ( dht_logarithm ? "ON"
|
// cout << "CPP: DHT logarithm before rounding: " << ( dht_logarithm ? "ON"
|
||||||
// : "OFF" ) << endl;
|
// : "OFF" ) << endl;
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,8 @@ void ChemWorker::prepareSimulation(MPI_Comm dht_comm) {
|
|||||||
(double *)calloc(wp_size * (grid.getCols()), sizeof(double));
|
(double *)calloc(wp_size * (grid.getCols()), sizeof(double));
|
||||||
|
|
||||||
if (world_rank == 1)
|
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) {
|
if (dht_enabled) {
|
||||||
int data_size = grid.getCols() * sizeof(double);
|
int data_size = grid.getCols() * sizeof(double);
|
||||||
@ -36,7 +37,7 @@ void ChemWorker::prepareSimulation(MPI_Comm dht_comm) {
|
|||||||
|
|
||||||
if (world_rank == 1)
|
if (world_rank == 1)
|
||||||
cout << "CPP: Worker: data size: " << data_size << " bytes" << endl
|
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
|
<< "CPP: Worker: buckets per process " << dht_buckets_per_process
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user