the title already states what I would like to find out. I have a global variable which is used by OpenMp and declared threadprivate.
Within the parallel loop, the code may find the need to dynamically reload data from the disk. In this case the code currently
extends the data in in allocatable array of the custom type.
This seems to have been working for some time, however now after the parallel region I added some code for extra analysis and
suddenly I get access violations from time to time (not every run) and I think that this might be due to growing the real array within the custom type.
Even if this is non-standard (and I should probably code something around it), I am still wondering why this would be a violation, as the results from the parallel loop look as excepted and once the omp parallel do is finished, I would have thought that memory that belongs to a hibernating thread should be freed?
Thanks for any help you can provide!