This fixes the memory leak found in #178 .
Fortran was allocating memory for an options array of variable length, but never deallocating it. I thought memory for allocatable arrays was automatically deallocated, but I guess valgrind doesn't think so. So I just allocated memory at compile time, with a check to make sure mwaves never exceeds 20 (size of static array).
This fixes the memory leak found in #178 . Fortran was allocating memory for an options array of variable length, but never deallocating it. I thought memory for allocatable arrays was automatically deallocated, but I guess valgrind doesn't think so. So I just allocated memory at compile time, with a check to make sure
mwaves
never exceeds 20 (size of static array).