Skip to content

Commit 02ffc81

Browse files
author
Alessandro Fanfarillo
committed
Fixed few bugs on
1 parent 881cc26 commit 02ffc81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mpi/mpi_caf.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ void *
633633
/* int ierr; */
634634
void *mem;
635635
size_t actual_size;
636-
int l_var=0, *init_array=NULL;
636+
int l_var=0, *init_array=NULL,ierr=0;
637637

638638
if (unlikely (caf_is_finalized))
639639
goto error;
@@ -689,7 +689,7 @@ void *
689689
MPI_Win_lock(MPI_LOCK_EXCLUSIVE, caf_this_image-1, 0, *p);
690690
# endif // CAF_MPI_LOCK_UNLOCK
691691
MPI_Put (init_array, size, MPI_INT, caf_this_image-1,
692-
0, size, MPI_INT, *p);
692+
0, size, MPI_INT, *p);
693693
# ifdef CAF_MPI_LOCK_UNLOCK
694694
MPI_Win_unlock(caf_this_image-1, *p);
695695
# else // CAF_MPI_LOCK_UNLOCK
@@ -706,7 +706,7 @@ void *
706706
error_called = 0;
707707
ierr = STAT_FAILED_IMAGE;
708708
}
709-
709+
710710
caf_static_t *tmp = malloc (sizeof (caf_static_t));
711711
tmp->prev = caf_tot;
712712
tmp->token = *token;
@@ -722,7 +722,7 @@ void *
722722

723723
if (stat)
724724
*stat = 0;
725-
else if(ierr == STAT_FAILED_IMAGE)
725+
else if (ierr == STAT_FAILED_IMAGE)
726726
error_stop (ierr);
727727

728728
return mem;

0 commit comments

Comments
 (0)