Skip to content

Commit a844050

Browse files
committed
More granular profiling of the ABLStats
1 parent 4e452e3 commit a844050

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

amr-wind/wind_energy/ABLStats.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ void ABLStats::initialize()
9191

9292
void ABLStats::calc_averages()
9393
{
94+
BL_PROFILE("amr-wind::ABLStats::calc_averages");
9495
m_pa_vel();
9596
m_pa_temp();
9697
m_pa_vel_fine();
@@ -230,6 +231,7 @@ void ABLStats::post_advance_work()
230231

231232
void ABLStats::compute_zi()
232233
{
234+
BL_PROFILE("amr-wind::ABLStats::compute_zi");
233235

234236
auto gradT = (this->m_sim.repo())
235237
.create_scratch_field(3, m_temperature.num_grow()[0]);
@@ -280,6 +282,7 @@ void ABLStats::compute_zi()
280282

281283
void ABLStats::process_output()
282284
{
285+
BL_PROFILE("amr-wind::ABLStats::process_output");
283286

284287
if (m_out_fmt == "ascii") {
285288
write_ascii();
@@ -388,6 +391,7 @@ void ABLStats::prepare_ascii_file()
388391
void ABLStats::prepare_netcdf_file()
389392
{
390393
#ifdef AMR_WIND_USE_NETCDF
394+
BL_PROFILE("amr-wind::ABLStats::prepare_netcdf_file");
391395

392396
const std::string post_dir = m_sim.io_manager().post_processing_directory();
393397
const std::string sname =
@@ -493,6 +497,7 @@ void ABLStats::prepare_netcdf_file()
493497
void ABLStats::write_netcdf()
494498
{
495499
#ifdef AMR_WIND_USE_NETCDF
500+
BL_PROFILE("amr-wind::ABLStats::write_netcdf");
496501

497502
// First calculate sfs stress averages
498503
auto sfs_stress = m_sim.repo().create_scratch_field("sfs_stress", 3);

0 commit comments

Comments
 (0)