MANDYOC is a finite element code written on top of the PETSc library to simulate thermo-chemical convection of the Earth's mantle
BSD 3-Clause "New" or "Revised" License
27
stars
5
forks
source link
Improve if conditionals and set a default case to evaluate viscosity in calc_visc #92
Open
rafaelmds opened 2 years ago
Currently, in
calc_visc.cpp
there is a series ofif
s conditionals to match a rheology and then to evaluate the viscosity.This need to be improved. A first improvement could be using a switch-case pattern with a default case.