mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 04:48:23 +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 <<
|
||||
// endl;
|
||||
|
||||
params.dht_log = cmdl["dht-log"];
|
||||
params.dht_log = !(cmdl["dht-nolog"]);
|
||||
// cout << "CPP: DHT logarithm before rounding: " << ( dht_logarithm ? "ON"
|
||||
// : "OFF" ) << endl;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user