My code has a problem about deallocation. If the memory occupied by the allocatable matrix/pointer is less or equal to 1 MB, i.e. a 32x32x16x16 4D real matrix, FROTRAN does not free the memory even I deallocate the matrix. However, if I increase the matrix demensions to 32x32x32x16 (2MB), then "deallocate" can successfully free the memory.
My code needs to allocate and then deallocate a huge number of small matrices and pointers, and the memory of occupied by these small matrices and pointers are accumulating there. Does anyone has similar experience or advices for this situation?
Thanks a lot!