summaryrefslogtreecommitdiff
path: root/src/main/CactusDefaultShutdown.c
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-06-22 21:22:25 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-06-22 21:22:25 +0000
commite957ca01e5cba4e948c5f0603dec2d81842df9e2 (patch)
tree939e0296af538b89cd79de159d581cc2086b1b56 /src/main/CactusDefaultShutdown.c
parentb519a745b94b7b3786062ab95f95667a03d25cf1 (diff)
Use CCTK_MyProc before traversing termination routines
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1691 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/CactusDefaultShutdown.c')
-rw-r--r--src/main/CactusDefaultShutdown.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/CactusDefaultShutdown.c b/src/main/CactusDefaultShutdown.c
index 2569bd8e..3522d5e3 100644
--- a/src/main/CactusDefaultShutdown.c
+++ b/src/main/CactusDefaultShutdown.c
@@ -60,6 +60,8 @@ int CactusDefaultShutdown(tFleshConfig *config)
{
int myproc,conv_level;
+ myproc = CCTK_MyProc(config->GH[0]);
+
/* Execute termination for all convergence levels */
for(conv_level = 0 ; conv_level < config->nGHs; conv_level++)
{
@@ -72,8 +74,6 @@ int CactusDefaultShutdown(tFleshConfig *config)
CCTK_Traverse(config->GH[conv_level], "CCTK_SHUTDOWN");
}
- myproc = CCTK_MyProc(config->GH[0]);
-
#ifdef MPI
if(MPI_Active)
{