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
Compilation warnings due to conditionally defined values #93
Open
rafaelmds opened 2 years ago
In some machines, the compiler warns about
-Wmaybe-uninitialized
variables.This is caused by some variables whose values are conditionally defined, although a no-matching scenario is never to be expected.
So, this need some improvement to define a default value and some improvement in the series of
if
conditionals.Some variables presenting this issue:
dh_v_mod
inCalc_dt_calor
(main.cpp)temper_aux
inThermal_init_3d
(DM1_3d.cpp)p_prox
inSwarm_add_remove_2d
(DMSwarm_move.cpp)p_prox_total
andchosen
inSwarm_add_remove_3d
(DMSwarm_move.cpp)