I have now a program for thermodynamic calculations that runs well for most calculations but when it is used in large scale simulations (millions of calculations of equilibria with many components) it sometimes crashes due to lack of memory, i.e. there are some memory leaks.
I know this is probably an impossible questions but is there a way to find such leaks? The whole program is available as the opencalphad repository at github if anyone wants to test, running the parallel2 macro in an infinite loop shows the use of memory is gradually increasing.
The problem is more critical when the software is used by a code written in C++ via an isoC interface. Are there any known memory problems using this?
I use OpenMP for parallelization, any memory issues with that?
The rest is plain Fortran 08.
Thanks for any suggestions
I know this is probably an impossible questions but is there a way to find such leaks? The whole program is available as the opencalphad repository at github if anyone wants to test, running the parallel2 macro in an infinite loop shows the use of memory is gradually increasing.
The problem is more critical when the software is used by a code written in C++ via an isoC interface. Are there any known memory problems using this?
I use OpenMP for parallelization, any memory issues with that?
The rest is plain Fortran 08.
Thanks for any suggestions