<commit_before><commit_msg>Initializing the grid and the boundaries<commit_after>/*
	Author <NAME> & <NAME>
	<EMAIL>
	andreas epost
	
	A parallel Jacobi iteration program using shared variables.
	Adapted for hardware with shared memory.
*/

int main(int argc, char *argv[]){

	/*gridSize, the grid size not including boundaries
	  numIters, the number of iterations to use
	*/
	
	int gridSize, numIters, i, j, k;
	double temp, maxdiff;
	
	gridSize = (argc > 1)? atoi(argv[1]) + 2 : GRIDSIZE;
	numIters = (argc > 2)? atoi(argv[2]) : NUMITERS;
	
	printf("gridSize: %d\n", gridSize);
	printf("numIters: %d\n", numIters);
	
	/*malloc the columns*/
	double **grid = (double **) malloc(gridSize * sizeof(double*));
	double **new = (double **) malloc(gridSize * sizeof(double*));
	/*malloc the rows*/
	for(i = 0; i < gridSize; i++){
		grid[i] = (double *) malloc(gridSize * sizeof(double));
		new[i] = (double *) malloc(gridSize * sizeof(double));
	}
	
	void barrier(int id){
		// stub function for barrier
	}
	
	
	
	
	/*Behöver vi kanske köra free på vartenda element eller duger detta tror du?*/
	free(grid);
	free(new);
}
{'fraction_non_alphanumeric': 0.1504028648164727, 'fraction_numerical': 0.005371530886302597, 'mean_word_length': 4.0588235294117645, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '700703', 'n_tokens_mistral': 419, 'n_tokens_neox': 387, 'n_words': 122}