Describe the bug
A segmentation fault occurs randomly across different nodes when running ideal.exe for the em_tropical_cyclone case in MPI (parallel) environment. This issue persists even with the default namelist settings (201x201 grid).
To Reproduce
- configure with INTEL compiler (dmpr; option 15)
- ./compile em_tropical_cyclone
- mpiexec.hydra -np 12 ./ideal.exe
Screenshots

Additional context
I suspect this is related to an incorrect handling of the halo depth in module_initialize_tropical_cyclone.F. Specifically, some loops appear to be hardcoded to start from index 1 without properly accounting for the decomposed sub-domain ghost cells required by MPI.
Attachments
I modified the code to address this issue, please search for the label "wpuho" in the attached file to review the changes.
module_initialize_tropical_cyclone.txt
Describe the bug
A segmentation fault occurs randomly across different nodes when running ideal.exe for the em_tropical_cyclone case in MPI (parallel) environment. This issue persists even with the default namelist settings (201x201 grid).
To Reproduce
Screenshots

Additional context
I suspect this is related to an incorrect handling of the halo depth in module_initialize_tropical_cyclone.F. Specifically, some loops appear to be hardcoded to start from index 1 without properly accounting for the decomposed sub-domain ghost cells required by MPI.
Attachments
I modified the code to address this issue, please search for the label "wpuho" in the attached file to review the changes.
module_initialize_tropical_cyclone.txt