Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix main() Profile Region #711

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ int main(int argc, char* argv[])
// it here so users can pass command line arguments
impactx::initialization::default_init_AMReX(argc, argv);

BL_PROFILE_VAR("main()", pmain);
{
BL_PROFILE_VAR("main()", pmain);
impactx::ImpactX impactX;
impactX.init_grids();
impactX.initBeamDistributionFromInputs();
impactX.initLatticeElementsFromInputs();
impactX.evolve();
BL_PROFILE_VAR_STOP(pmain);
ax3l marked this conversation as resolved.
Show resolved Hide resolved
impactX.finalize();
ax3l marked this conversation as resolved.
Show resolved Hide resolved
}
BL_PROFILE_VAR_STOP(pmain);

#if defined(AMREX_USE_MPI)
AMREX_ALWAYS_ASSERT(MPI_SUCCESS == MPI_Finalize());
Expand Down
Loading