Added: INT_FORCES solution mode (internal forces only)

This commit is contained in:
Knut Morten Okstad 2016-10-25 11:14:33 +02:00
parent b1b42ebb92
commit f889e27c6c
2 changed files with 3 additions and 2 deletions

View File

@ -32,8 +32,8 @@
LocalIntegral* IntegrandBase::getLocalIntegral (size_t nen, size_t, LocalIntegral* IntegrandBase::getLocalIntegral (size_t nen, size_t,
bool neumann) const bool neumann) const
{ {
ElmMats* result = new ElmMats(!neumann && m_mode != SIM::RECOVERY); ElmMats* result = new ElmMats(!neumann && m_mode < SIM::RECOVERY);
result->rhsOnly = m_mode == SIM::RHS_ONLY || m_mode == SIM::RECOVERY; result->rhsOnly = m_mode >= SIM::RHS_ONLY;
result->resize(neumann ? 0 : 1, 1); result->resize(neumann ? 0 : 1, 1);
result->redim(npv*nen); result->redim(npv*nen);

View File

@ -37,6 +37,7 @@ namespace SIM //! Simulation scope
STIFF_ONLY, STIFF_ONLY,
MASS_ONLY, MASS_ONLY,
RHS_ONLY, RHS_ONLY,
INT_FORCES,
RECOVERY RECOVERY
}; };