I need help with the yellow highlighted in section 3, stoppingiteration after there is no change in 2 generations.
//Parallel Code
#include <stdio.h>
#include <string.h>
#include <omp.h>
#include <stdlib.h>
#include <assert.h>
#define MAX_N 2000
int board[2][(MAX_N + 2) * (MAX_N + 2)];
int nex = 0;
int n;
int liveCells(int ind)
{
return (board[nex][ind – n – 3]
+ board[nex][ind – n – 2]
+ board[nex][ind – n – 1]
+ board[nex][ind – 1]
+ board[nex][ind + 1]
+ board[nex][ind + n + 1]
+ board[nex][ind + n + 2]
OR
OR