Skip to content

Commit

Permalink
Debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich committed Sep 8, 2023
1 parent fa17734 commit 1aef42c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Realm.C
Original file line number Diff line number Diff line change
Expand Up @@ -1911,6 +1911,7 @@ Realm::evaluate_properties()
void
Realm::advance_time_step()
{
printf("-----------------\n");
// leave if we do not need to solve
const int timeStepCount = get_time_step_count();
const bool advanceMe = (timeStepCount % solveFrequency_) == 0 ? true : false;
Expand Down
2 changes: 2 additions & 0 deletions src/TimeIntegrator.C
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ TimeIntegrator::pre_realm_advance_stage1(size_t inonlin)
if (secondOrderTimeAccurate_)
compute_gamma();

printf("######\n");
NaluEnv::self().naluOutputP0()
<< "*******************************************************" << std::endl
<< "Time Step Count: " << timeStepCount_
Expand Down Expand Up @@ -386,6 +387,7 @@ TimeIntegrator::integrate_realm()
interstep_updates(k);

for (ii = realmVec_.begin(); ii != realmVec_.end(); ++ii) {
printf("Realm %s\n", (*ii)->name_.c_str());
(*ii)->advance_time_step();
(*ii)->process_multi_physics_transfer();
}
Expand Down
3 changes: 2 additions & 1 deletion src/edge_kernels/ContinuityEdgeSolverAlg.C
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ ContinuityEdgeSolverAlg::execute()
edgeFaceVelMag = fieldMgr.get_field<double>(edgeFaceVelMag_);
edgeFaceVelMag.sync_to_device();
}
coordinates.sync_to_device();
printf("Cont: Coord state ModHost: %d NumSyncs: %d ModDevice: %d NumSyncs: %d \n", coordinates.need_sync_to_host(), coordinates.num_syncs_to_host(), coordinates.need_sync_to_device(),coordinates.num_syncs_to_device());
// coordinates.sync_to_device();
velocity.sync_to_device();
Gpdx.sync_to_device();
density.sync_to_device();
Expand Down
3 changes: 2 additions & 1 deletion src/ngp_algorithms/MdotEdgeAlg.C
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ MdotEdgeAlg::execute()
auto mdot = fieldMgr.get_field<double>(massFlowRate_);

mdot.clear_sync_state();
coordinates.sync_to_device();
printf("Mdot: Coord state ModHost: %d NumSyncs: %d ModDevice: %d NumSyncs: %d \n", coordinates.need_sync_to_host(), coordinates.num_syncs_to_host(), coordinates.need_sync_to_device(),coordinates.num_syncs_to_device());
// coordinates.sync_to_device();
velocity.sync_to_device();
Gpdx.sync_to_device();
density.sync_to_device();
Expand Down

0 comments on commit 1aef42c

Please sign in to comment.