I am running a mpi CFD code in my sch's cluster using 100 cpu.
Due to my program's structure, this is the max cpu I can use. At the same time, due to the number of grids using in my code, I am reaching the available memory limit.
The code ran and hang at a spot. After debugging, I found that it hangs in one of the subroutines. In this subroutines, I have to update the values of different variables across all cpu using mpi.
There are some local array which I need to create. If I declare them using: