diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-11-05 14:43:17 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-11-05 14:43:17 +0000 |
commit | bf2525328d4960c5327011740c2756b536408ae5 (patch) | |
tree | 16ce685ef06be1717ee1e659b3a478de5ca63913 /src/driver/find_horizons.cc | |
parent | a0164d11be544c755024887fdc71e5e1269bdc41 (diff) |
add (very very minimal) support for multiprocessor operation:
if all AHs are entirely within a single processor's chunk of the grid,
then set AHFinderDirect::processor_number = 42
(or whatever that processor's processor number is)
and things should work ok
(this is not yet properly documented :( )
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@882 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/driver/find_horizons.cc')
-rw-r--r-- | src/driver/find_horizons.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/find_horizons.cc b/src/driver/find_horizons.cc index 6ff104b..69fc0dc 100644 --- a/src/driver/find_horizons.cc +++ b/src/driver/find_horizons.cc @@ -114,6 +114,10 @@ extern "C" DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_PARAMETERS +// this thorn is a no-op on all processors *except* a specified one +if (CCTK_MyProc(cctkGH) != processor_number) + then return; + const struct verbose_info& verbose_info = state.verbose_info; struct IO_info& IO_info = state.IO_info; const struct solver_info& solver_info = state.solver_info; |