Skip to content
Snippets Groups Projects
Commit ae6f5714 authored by Ruonan Wang's avatar Ruonan Wang
Browse files

Removed while loop in helloDataManReader_nompi.cpp to prevent deadlock

parent 18a380e2
No related branches found
No related tags found
1 merge request!62Removed while loop in helloDataManReader_nompi.cpp to prevent deadlock
......@@ -51,11 +51,11 @@ int main(int argc, char *argv[])
// if not defined by user, we can change the default settings
datamanSettings.SetEngine("DataManReader");
datamanSettings.SetParameters("peer-to-peer=yes");
datamanSettings.AddTransport("Mdtm", "localIP=128.0.0.0.1",
"remoteIP=128.0.0.0.2",
datamanSettings.AddTransport("Mdtm", "localIP=127.0.0.1",
"remoteIP=127.0.0.1",
"tolerances=1,2,3");
// datamanSettings.AddTransport( "ZeroMQ", "localIP=128.0.0.0.1.1",
// "remoteIP=128.0.0.0.2.1", "tolerances=1,2,3" ); not yet supported
// datamanSettings.AddTransport( "ZeroMQ", "localIP=127.0.0.1",
// "remoteIP=127.0.0.1", "tolerances=1,2,3" ); not yet supported
// ,
// will throw an exception
}
......
......@@ -43,14 +43,12 @@ int main(int argc, char *argv[])
{
// if not defined by user, we can change the default settings
datamanSettings.SetEngine("DataManReader");
datamanSettings.SetParameters(
"real_time=yes", "method_type=stream", "method=zmq",
"local_ip=127.0.0.1", "remote_ip=127.0.0.1", "local_port=12307",
"remote_port=12306");
// datamanSettings.AddTransport( "Mdtm", "localIP=128.0.0.0.1",
// "remoteIP=128.0.0.0.2", "tolerances=1,2,3" );
// datamanSettings.AddTransport( "ZeroMQ", "localIP=128.0.0.0.1.1",
// "remoteIP=128.0.0.0.2.1", "tolerances=1,2,3" ); not yet supported
datamanSettings.SetParameters("real_time=yes", "method_type=stream",
"method=dump");
// datamanSettings.AddTransport( "Mdtm", "localIP=127.0.0.1",
// "remoteIP=127.0.0.1", "tolerances=1,2,3" );
// datamanSettings.AddTransport( "ZeroMQ", "localIP=127.0.0.1",
// "remoteIP=127.0.0.1", "tolerances=1,2,3" ); not yet supported
// ,
// will throw an exception
}
......@@ -67,8 +65,9 @@ int main(int argc, char *argv[])
datamanReader->SetCallBack(getcb);
while (1)
for (int i = 0; i < 3; i++)
{
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
}
adios::Variable<double> *ioMyDoubles =
......
......@@ -52,10 +52,10 @@ int main(int argc, char *argv[])
"real_time=yes", "method_type=stream", "method=dump",
"monitoring=yes", "local_ip=127.0.0.1", "remote_ip=127.0.0.1",
"local_port=12306", "remote_port=12307");
// datamanSettings.AddTransport( "Mdtm", "localIP=128.0.0.0.1",
// "remoteIP=128.0.0.0.2", "tolerances=1,2,3" );
// datamanSettings.AddTransport( "ZeroMQ", "localIP=128.0.0.0.1.1",
// "remoteIP=128.0.0.0.2.1", "tolerances=1,2,3" ); not yet supported
// datamanSettings.AddTransport( "Mdtm", "localIP=127.0.0.1",
// "remoteIP=127.0.0.1", "tolerances=1,2,3" );
// datamanSettings.AddTransport( "ZeroMQ", "localIP=127.0.0.1",
// "remoteIP=127.0.0.1", "tolerances=1,2,3" ); not yet supported
// ,
// will throw an exception
}
......
......@@ -38,7 +38,7 @@ void DataMan::add_file(std::string p_method) {}
void DataMan::add_stream(json p_jmsg)
{
std::string method = "zmq";
std::string method;
if (p_jmsg["method"] != nullptr)
method = p_jmsg["method"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment