Added: Force scalar parsing of neumann condition if direction > nsd

This commit is contained in:
Eivind Fonn
2017-02-10 14:23:19 +01:00
committed by Arne Morten Kvarving
parent e894688ecf
commit 2250ca5d45

View File

@@ -982,7 +982,7 @@ bool SIMinput::setTracProperty (int code, Property::Type ptype,
bool SIMinput::setNeumann (const std::string& prop, const std::string& type,
int direction, int code)
{
if (direction == 0 && this->getNoFields() == 1)
if ((direction == 0 && this->getNoFields() == 1) || direction > nsd)
{
RealFunc* f = utl::parseRealFunc(prop,type);
if (!f)