From 5a52d50176c15fa8e483b82e84bb0cc49dff9677 Mon Sep 17 00:00:00 2001 From: Philipp Nuske <philipp.nuske@mailbox.org> Date: Fri, 5 Oct 2012 09:44:17 +0000 Subject: [PATCH] make a warning a static assert again. The warning was dealing with a case that cannot happen in stable, therefore not really interesting for everybody to read. git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@9215 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/boxmodels/mpnc/mass/mpnclocalresidualmass.hh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dumux/boxmodels/mpnc/mass/mpnclocalresidualmass.hh b/dumux/boxmodels/mpnc/mass/mpnclocalresidualmass.hh index 80eb5dcc7a..77adf69355 100644 --- a/dumux/boxmodels/mpnc/mass/mpnclocalresidualmass.hh +++ b/dumux/boxmodels/mpnc/mass/mpnclocalresidualmass.hh @@ -320,7 +320,7 @@ public: // The computeflux() of the Energy module needs a // component-wise flux (for the diffusive enthalpy transport) // It makes some sense calling energy from here, because energy - // is carried by mass However, it is not really a clean + // is carried by mass. However, it is not really a clean // solution. // energy transport in fluid phases @@ -340,9 +340,10 @@ public: static void computeSource(PrimaryVariables &source, const VolumeVariables &volVars) { -#warning In the case of kinetic energy transfer the advective energy transport between the phases has to be considered. \ - It is hard (technically) to say how much mass got transfered in the case of chemical equilibrium. \ - Therefore, kineticEnergy and no kinetic mass does not fit (yet).; + static_assert(not enableKineticEnergy, // enableKinetic is disabled, in this specialization + "In the case of kinetic energy transfer the advective energy transport between the phases has to be considered. " + "It is hard (technically) to say how much mass got transfered in the case of chemical equilibrium. " + "Therefore, kineticEnergy and no kinetic mass does not fit (yet)."); // mass transfer is not considered in this mass module for (int compIdx = 0; compIdx < numComponents; ++compIdx) -- GitLab