Skip to content

Commit

Permalink
Add transfers to the performance log #5545
Browse files Browse the repository at this point in the history
  • Loading branch information
smharper committed Aug 12, 2015
1 parent ac51f0d commit 716d1cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions framework/src/base/FEProblem.C
Expand Up @@ -2694,7 +2694,11 @@ FEProblem::execMultiApps(ExecFlagType type, bool auto_advance)
std::vector<Transfer *> transfers = _to_multi_app_transfers(type)[0].all();
if (transfers.size())
for (unsigned int i=0; i<transfers.size(); i++)
{
Moose::perf_log.push(transfers[i]->name(), "Transfers");
transfers[i]->execute();
Moose::perf_log.pop(transfers[i]->name(), "Transfers");
}
}

if (multi_apps.size())
Expand Down Expand Up @@ -2724,7 +2728,11 @@ FEProblem::execMultiApps(ExecFlagType type, bool auto_advance)
{
_console << "Starting Transfers From MultiApps" << std::endl;
for (unsigned int i=0; i<transfers.size(); i++)
{
Moose::perf_log.push(transfers[i]->name(), "Transfers");
transfers[i]->execute();
Moose::perf_log.pop(transfers[i]->name(), "Transfers");
}

_console << "Waiting For Transfers To Finish" << std::endl;
MooseUtils::parallelBarrierNotify(_communicator);
Expand Down

0 comments on commit 716d1cc

Please sign in to comment.