1 shmem_2dheat_patch = <<EOF
21 >
if ( !U_Curr_Above || !U_Curr_Below || !U_Send_Buffer)
23 > printf(
"error: shmalloc returned NULL (no memory)");
30 > shfree(U_Send_Buffer);
34 > shfree(U_Curr_Above);
38 > shfree(U_Curr_Below);
42 >
if ( !U_Curr_Above || !U_Curr_Below || !U_Send_Buffer)
44 > printf(
"error: shmalloc returned NULL (no memory)");
51 > shfree(U_Send_Buffer);
55 > shfree(U_Curr_Above);
59 > shfree(U_Curr_Below);
63 >
if ( !U_Curr_Above || !U_Curr_Below || !U_Send_Buffer)
65 > printf(
"error: shmalloc returned NULL (no memory)");
72 > shfree(U_Send_Buffer);
76 > shfree(U_Curr_Above);
80 > shfree(U_Curr_Below);
83 <
for (j = start; j < end; j++)
85 >
for (j = start; j <= end; j++)
88 shmem_zeroget_patch = <<EOF
93 < long double src4[N];
98 > static short src1[N];
100 > static long src3[N];
101 > static long double src4[N];
102 > static long long src5[N];
103 > static double src6[N];
104 > static float src7[N];
106 < src8 = (char *)malloc(N*sizeof(char));
108 > src8 = (char *)shmalloc(N*sizeof(char));
110 < dest8 = (char *)shmalloc( 4 * sizeof(*dest8) );
112 > dest8 = (char *)shmalloc( N * sizeof(*dest8) );