Question: C PROGRAMMING QUESTION. Hi i am coding up a program that solves the 1D linear convection equation in C. I am running into some issues
C PROGRAMMING QUESTION. Hi i am coding up a program that solves the 1D linear convection equation in C. I am running into some issues in my final nested loop which applies the update equation. (see code below). I dont know what going wrong. I have the problem coded up and working in python i also have attached that code below for reference. I followed that as psudeo code but my C program does not work as planned. Can anyone fix my C code. I would appreciate it a lot.
This is the C code

THIS IS THE WORKING PYTHON SCRIPT

# include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
