diff options
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r-- | src/post-refinement.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 9054ed89..12a29cb2 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -147,10 +147,11 @@ static double volume_fraction_rgradient(double r, double pr, case PMODEL_SCGAUSSIAN : return gaussian_fraction_rgradient(r, pr); - } - ERROR("No pmodel in volume_fraction_rgradient!\n"); - return 1.0; + default : + ERROR("No pmodel in volume_fraction_rgradient!\n"); + return 1.0; + } } @@ -167,10 +168,11 @@ static double volume_fraction(double rlow, double rhigh, double pr, case PMODEL_SCGAUSSIAN : return gaussian_fraction(rlow, rhigh, pr); - } - ERROR("No pmodel in volume_fraction!\n"); - return 1.0; + default : + ERROR("No pmodel in volume_fraction!\n"); + return 1.0; + } } |