<div dir="ltr"><div>Hi all,<br><br></div>I am running FLASH4 on Mac os x version 10.7.5 and I am using mpich-3.0.4 and I got the following error:<br><br>Fatal error in MPI_Comm_create: Other MPI error, error stack:<br>
MPI_Comm_create(600)..........<div>.......: MPI_Comm_create(comm=0x84000002, group=0xc8001349, new_comm=0x7fff606a8614) failed<br>MPI_Comm_create(577).................: <br>MPIR_Comm_create_intra(241)..........: <br>MPIR_Get_contextid(799)..............: <br>
MPIR_Get_contextid_sparse_group(1146): Cannot allocate context ID because of fragmentation (169/2048 free on this process; ignore_id=0)<br>Fatal error in MPI_Comm_create: Other MPI error, error stack:<br>MPI_Comm_create(600).................: MPI_Comm_create(comm=0x84000002, group=0xc80012b6, new_comm=0x7fff670cc614) failed<br>
MPI_Comm_create(577).................: <br>MPIR_Comm_create_intra(241)..........: <br>MPIR_Get_contextid(799)..............: <br>MPIR_Get_contextid_sparse_group(1146): Cannot allocate context ID because of fragmentation (316/2048 free on this process; ignore_id=0)<br>
Fatal error in MPI_Comm_create: Other MPI error, error stack:<br>MPI_Comm_create(600).................: MPI_Comm_create(comm=0x84000004, group=0xc800000e, new_comm=0x7fff629d5614) failed<br>MPI_Comm_create(577).................: <br>
MPIR_Comm_create_intra(241)..........: <br>MPIR_Get_contextid(799)..............: <br>MPIR_Get_contextid_sparse_group(1146): Cannot allocate context ID because of fragmentation (2020/2048 free on this process; ignore_id=0)<br>
Fatal error in MPI_Comm_create: Other MPI error, error stack:<br>MPI_Comm_create(600).................: MPI_Comm_create(comm=0x84000002, group=0xc8000020, new_comm=0x7fff639ae614) failed<br>MPI_Comm_create(577).................: <br>
MPIR_Comm_create_intra(241)..........: <br>MPIR_Get_contextid(799)..............: <br>MPIR_Get_contextid_sparse_group(1146): Cannot allocate context ID because of fragmentation (2002/2048 free on this process; ignore_id=0<br>
<br></div><div>People from mpich suggested that I should free unsed communicators. So I added in Flash_mpi.h the following line:<br> integer, parameter :: FLASH_COMM = MPI_COMM_FREE<br></div><div>but I got an error meassage: <br>
<br>Flash_mpi.h:9.35:<br> Included at Driver_abortFlash.F90:34:<br><br> integer, parameter :: FLASH_COMM = MPI_COMM_FREE<br> 1<br>Error: Symbol 'flash_comm' at (1) already has basic type of INTEGER<br>
make: *** [Driver_abortFlash.o] Error 1<br><br></div><div>Is there a way to free the unsed communicators in Flash code?<br><br></div><div>Thanks,<br></div><div>Reem <br></div><div><br>
</div><br></div>