@@ -62,6 +62,10 @@ void DefineCellCenteredMultiFab(const int nx, const int ny,
62
62
// assigns processor to each box in the box array
63
63
amrex::DistributionMapping distribution_mapping (cell_box_array);
64
64
65
+ // amrex::Print() << "max_chunk_size: " << max_chunk_size << std::endl;
66
+ // amrex::Print() << "cell_box_array: " << cell_box_array << std::endl;
67
+ // amrex::Print() << "distribution mapping: " << distribution_mapping << std::endl;
68
+
65
69
// number of components for each array
66
70
int Ncomp = 1 ;
67
71
@@ -324,6 +328,8 @@ void UpdateIntermediateVariables(amrex::Real dx, amrex::Real dy, const amrex::Ge
324
328
const amrex::MultiFab& p, const amrex::MultiFab& u, const amrex::MultiFab& v,
325
329
amrex::MultiFab& cu, amrex::MultiFab& cv, amrex::MultiFab& h, amrex::MultiFab& z)
326
330
{
331
+ BL_PROFILE (" UpdateIntermediateVariables()" );
332
+
327
333
const double fsdx = 4.0 /dx;
328
334
const double fsdy = 4.0 /dy;
329
335
@@ -363,6 +369,7 @@ void UpdateNewVariables(const double dx, const double dy, const double tdt, cons
363
369
const amrex::MultiFab& cu, const amrex::MultiFab& cv, const amrex::MultiFab& h, const amrex::MultiFab& z,
364
370
amrex::MultiFab& p_new, amrex::MultiFab& u_new, amrex::MultiFab& v_new)
365
371
{
372
+ BL_PROFILE (" UpdateNewVariables()" );
366
373
367
374
// defined here because tdt changes after first time step
368
375
const double tdtsdx = tdt / dx;
@@ -410,6 +417,7 @@ void UpdateOldVariables(const double alpha, const int time_step, const amrex::Ge
410
417
const amrex::MultiFab& p_new, const amrex::MultiFab& u_new, const amrex::MultiFab& v_new,
411
418
amrex::MultiFab& p_old, amrex::MultiFab& u_old, amrex::MultiFab& v_old)
412
419
{
420
+ BL_PROFILE (" UpdateOldVariables()" );
413
421
if (time_step > 0 ) {
414
422
for (amrex::MFIter mfi (p); mfi.isValid (); ++mfi)
415
423
{
@@ -455,6 +463,7 @@ void UpdateVariables(const amrex::Geometry& geom,
455
463
const amrex::MultiFab& u_new, const amrex::MultiFab& v_new, const amrex::MultiFab& p_new,
456
464
amrex::MultiFab& u, amrex::MultiFab& v, amrex::MultiFab& p)
457
465
{
466
+ BL_PROFILE (" UpdateVariables()" );
458
467
Copy (u_new, u);
459
468
Copy (v_new, v);
460
469
Copy (p_new, p);
0 commit comments