Commit aaedaaaf authored by Godoy, William F's avatar Godoy, William F
Browse files

Fix #1541 formatting

parent 474c1fb0
......@@ -35,8 +35,7 @@ int main(int argc, char *argv[])
{
if (!settings.myRank && settings.verbose)
{
std::cout << "Use ADIOS without XML configuration "
<< std::endl;
std::cout << "Use ADIOS without XML configuration " << std::endl;
}
adios = adios2::ADIOS(settings.appComm, adios2::DebugON);
}
......@@ -44,11 +43,11 @@ int main(int argc, char *argv[])
{
if (!settings.myRank && settings.verbose)
{
std::cout << "Use ADIOS xml file "
<< settings.adiosConfigFileName << std::endl;
std::cout << "Use ADIOS xml file " << settings.adiosConfigFileName
<< std::endl;
}
adios = adios2::ADIOS(settings.adiosConfigFileName,
settings.appComm, adios2::DebugON);
adios = adios2::ADIOS(settings.adiosConfigFileName, settings.appComm,
adios2::DebugON);
}
Config cfg;
size_t currentConfigLineNumber = 0;
......@@ -182,12 +181,11 @@ int main(int argc, char *argv[])
{
case Operation::Sleep:
{
auto cmdS =
dynamic_cast<const CommandSleep *>(cmd.get());
auto cmdS = dynamic_cast<const CommandSleep *>(cmd.get());
if (!settings.myRank && settings.verbose)
{
double t = static_cast<double>(cmdS->sleepTime_us) /
1000000.0;
double t =
static_cast<double>(cmdS->sleepTime_us) / 1000000.0;
std::cout << " Sleep for " << t << " seconds "
<< std::endl;
}
......@@ -197,20 +195,18 @@ int main(int argc, char *argv[])
}
case Operation::Busy:
{
auto cmdS =
dynamic_cast<const CommandBusy *>(cmd.get());
auto cmdS = dynamic_cast<const CommandBusy *>(cmd.get());
std::chrono::high_resolution_clock::time_point start =
std::chrono::high_resolution_clock::now();
if (!settings.myRank && settings.verbose)
{
double t = static_cast<double>(cmdS->busyTime_us) /
1000000.0;
double t =
static_cast<double>(cmdS->busyTime_us) / 1000000.0;
std::cout << " Be busy for " << t << " seconds "
<< std::endl;
}
while (std::chrono::high_resolution_clock::now() <
start +
std::chrono::microseconds(cmdS->busyTime_us))
start + std::chrono::microseconds(cmdS->busyTime_us))
;
break;
}
......@@ -314,4 +310,3 @@ int main(int argc, char *argv[])
MPI_Finalize();
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment