ggciag / mandyoc

MANDYOC is a finite element code written on top of the PETSc library to simulate thermo-chemical convection of the Earth's mantle
https://ggciag.github.io/mandyoc/
BSD 3-Clause "New" or "Revised" License
27 stars 5 forks source link

Wrong parse of "-seed" and "-strain_seed" command values #97

Closed rafaelmds closed 2 years ago

rafaelmds commented 2 years ago

The number of parsed values for the commands -seed and -strain_seed is equal to the number of interfaces. Hence, if specified a number of values equal to the number of layers, the last value is ignored.

To fix this issue, it is just needed to adjust the size of the arrays (used to store the strain values) to the size of layers (number of interfaces + 1).