[cig-commits] r4846 - in long/3D/Gale/trunk/src/StGermain: .
Discretisation/Mesh/src
walter at geodynamics.org
walter at geodynamics.org
Wed Oct 11 13:46:57 PDT 2006
Author: walter
Date: 2006-10-11 13:46:57 -0700 (Wed, 11 Oct 2006)
New Revision: 4846
Modified:
long/3D/Gale/trunk/src/StGermain/
long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/Decomp_Sync.c
long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/Decomp_Sync.h
Log:
r2903 at earth: boo | 2006-10-11 13:42:36 -0700
r2819 at earth (orig r3807): LukeHodkinson | 2006-09-26 20:22:34 -0700
Added a method to retrieve the domain size.
Property changes on: long/3D/Gale/trunk/src/StGermain
___________________________________________________________________
Name: svk:merge
- 1ef209d2-b310-0410-a72d-e20c9eb0015c:/cig:2902
afb6c753-b9d0-0310-b4e7-dbd8d91cdd35:/trunk/StGermain:3806
+ 1ef209d2-b310-0410-a72d-e20c9eb0015c:/cig:2903
afb6c753-b9d0-0310-b4e7-dbd8d91cdd35:/trunk/StGermain:3807
Modified: long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/Decomp_Sync.c
===================================================================
--- long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/Decomp_Sync.c 2006-10-11 20:46:55 UTC (rev 4845)
+++ long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/Decomp_Sync.c 2006-10-11 20:46:57 UTC (rev 4846)
@@ -315,6 +315,15 @@
Decomp_Sync_BuildShared( self );
}
+unsigned Decomp_Sync_GetDomainSize( void* sync ) {
+ Decomp_Sync* self = (Decomp_Sync*)sync;
+
+ assert( self );
+ assert( self->decomp );
+
+ return self->decomp->nLocals + self->nRemotes;
+}
+
Bool Decomp_Sync_IsDomain( void* sync, unsigned global ) {
Decomp_Sync* self = (Decomp_Sync*)sync;
Modified: long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/Decomp_Sync.h
===================================================================
--- long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/Decomp_Sync.h 2006-10-11 20:46:55 UTC (rev 4845)
+++ long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/Decomp_Sync.h 2006-10-11 20:46:57 UTC (rev 4846)
@@ -142,6 +142,7 @@
void Decomp_Sync_SetRemotes( void* sync, unsigned nRemotes, unsigned* remotes );
void Decomp_Sync_Decompose( void* sync, unsigned nRequired, unsigned* required );
+ unsigned Decomp_Sync_GetDomainSize( void* sync );
Bool Decomp_Sync_IsDomain( void* sync, unsigned global );
Bool Decomp_Sync_IsRemote( void* sync, unsigned domain );
Bool Decomp_Sync_IsShared( void* sync, unsigned domain );
More information about the cig-commits
mailing list