Skip to content

Commit

Permalink
Another set of debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
oehmke committed Nov 22, 2024
1 parent a1d4f9f commit 195b57e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/Infrastructure/Mesh/src/Regridding/ESMCI_Conserve2ndInterp.C
Original file line number Diff line number Diff line change
Expand Up @@ -1269,15 +1269,15 @@ namespace ESMCI {
#if 1
if (src_elem->get_id() == 19) {
// Check output
printf("BOB: %d# src_elem=%d is_local=%d active=%d nbrs= ",Par::Rank(),src_elem->get_id(),GetAttr(*src_elem).is_locally_owned(),GetAttr(*src_elem).GetContext().is_set(Attr::ACTIVE_ID));
printf("BOB: %d# sid=%d is_local=%d active=%d nbrs= ",Par::Rank(),src_elem->get_id(),GetAttr(*src_elem).is_locally_owned(),GetAttr(*src_elem).GetContext().is_set(Attr::ACTIVE_ID));
for (int i=0; i<nbrs->size(); i++) {
NBR_ELEM *nbr=&((*nbrs)[i]);

printf(" %d %g",nbr->elem->get_id(),nbr->angle);
}
printf("\n");

printf("BOB: %d# src_elem=%d sm_cells->size()=%d\n",Par::Rank(),src_elem->get_id(),sm_cells->size());
printf("BOB: %d# sid=%d sm_cells->size()=%d\n",Par::Rank(),src_elem->get_id(),sm_cells->size());

}
#endif
Expand All @@ -1300,7 +1300,7 @@ namespace ESMCI {

#if 0
// Check output
printf("src_elem=%d nbrs= \n",src_elem->get_id());
printf("sid=%d nbrs= \n",src_elem->get_id());
for (int i=0; i<nbrs.size(); i++) {
NBR_ELEM *nbr=&((*nbrs)[i]);

Expand Down Expand Up @@ -1345,7 +1345,7 @@ namespace ESMCI {

if ((src_elem->get_id() == 19) &&
(tmp_hcw.dst_id == 3083)) {
printf("BOB: %d# src_elem=%d dst_elem=%d weight=%20.17E",Par::Rank(),src_elem->get_id(),tmp_hcw.dst_id,weight);
printf("BOB: %d# sid=%d did=%d weight=%20.17E\n",Par::Rank(),src_elem->get_id(),tmp_hcw.dst_id,weight);
}


Expand All @@ -1363,7 +1363,11 @@ namespace ESMCI {

if ((src_elem->get_id() == 19) &&
(tmp_hcw.dst_id == 3083)) {
printf("BOB: %d# src_elem=%d dst_elem=%d n=%d swgt=%20.17E",Par::Rank(),src_elem->get_id(),tmp_hcw.dst_id,n,sintd_wgt);
printf("BOB: %d# sid=%d did=%d n=%d nbr sid=%d\n",Par::Rank(),src_elem->get_id(),tmp_hcw.dst_id,n,tmp_hcw.src_id);
printf("BOB: %d# sid=%d did=%d n=%d diff_cntr=%20.17E %20.17E %20.17E\n",Par::Rank(),src_elem->get_id(),tmp_hcw.dst_id,n,MU_LST_VEC3D(diff_cntr));
printf("BOB: %d# sid=%d did=%d n=%d grad=%20.17E %20.17E %20.17E\n",Par::Rank(),src_elem->get_id(),tmp_hcw.dst_id,n,MU_LST_VEC3D(nbr->grad));
printf("BOB: %d# sid=%d did=%d n=%d ar=%20.17E\n",Par::Rank(),src_elem->get_id(),tmp_hcw.dst_id,n,area_ratio);
printf("BOB: %d# sid=%d did=%d n=%d swgt=%20.17E\n",Par::Rank(),src_elem->get_id(),tmp_hcw.dst_id,n,sintd_wgt);
}

}
Expand Down

0 comments on commit 195b57e

Please sign in to comment.