diff options
author | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2001-10-28 08:34:16 +0000 |
---|---|---|
committer | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2001-10-28 08:34:16 +0000 |
commit | dc358f1b9e33122f4bf9589b671bfbec14356846 (patch) | |
tree | 006cf6897359a5d2fa12ae61b64a3709cb984ddd /src/PughUtils.c | |
parent | 363425eb520803a5a4f11b9fe5aed36cecc6becd (diff) |
Filled out the maxskew variable which wasn't being set.
Also added a private parameter "info", at the moment it can take the values
none or load, if load is chosen it shows the actual load on each processor.
I want to add more options for printing out the local domain etc on each processor.
Documented the maxskew variable, and how to spot if you are using MPI or not.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@355 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/PughUtils.c')
-rw-r--r-- | src/PughUtils.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/PughUtils.c b/src/PughUtils.c index 398e2f8..d935cd3 100644 --- a/src/PughUtils.c +++ b/src/PughUtils.c @@ -120,6 +120,23 @@ void PUGH_Report(CCTK_ARGUMENTS) } sprintf(mess,"%s%d]",mess,pughGH->GFExtras[dim]->lnsize[i]); CCTK_INFO(mess); + + if (CCTK_Equals(info,"load")) + { + for (in=0; in<pughGH->nprocs; in++) + { + sprintf(mess," Local load on processor %d: %d [", + in,pughGH->GFExtras[dim]->rnpoints[in]); + for (i=0;i<dim;i++) + { + sprintf(mess,"%s%d x ",mess, + pughGH->GFExtras[dim]->rnsize[in][i]); + } + sprintf(mess,"%s%d]",mess,pughGH->GFExtras[dim]->rnsize[in][i]); + CCTK_INFO(mess); + } + } + } else { /* manual partition */ @@ -137,6 +154,7 @@ void PUGH_Report(CCTK_ARGUMENTS) } CCTK_VInfo(CCTK_THORNSTRING, " Maximum load skew: %f", pughGH->GFExtras[dim]->maxskew); + #endif } |