Skip to content
Snippets Groups Projects
Commit e8b4b88b authored by Karsten Rink's avatar Karsten Rink
Browse files

domain ICs are can be read from file

parent eeff4dea
No related branches found
No related tags found
No related merge requests found
......@@ -140,13 +140,16 @@ void BoostXmlCndInterface::readDistributionTag(boost::property_tree::ptree const
else if (dis_tag.first.compare("Value") == 0) {
FiniteElement::DistributionType const& dt(cond->getProcessDistributionType());
if (dt == FiniteElement::CONSTANT || dt == FiniteElement::CONSTANT_NEUMANN) {
if (dt == FiniteElement::CONSTANT ||
dt == FiniteElement::CONSTANT_NEUMANN ||
dt == FiniteElement::NODESCONSTANT) {
cond->setConstantDisValue(BaseLib::str2number<double>(dis_tag.second.data()));
return;
}
if (dt == FiniteElement::LINEAR || dt == FiniteElement::LINEAR_NEUMANN
|| dt == FiniteElement::DIRECT) {
if (dt == FiniteElement::LINEAR ||
dt == FiniteElement::LINEAR_NEUMANN ||
dt == FiniteElement::DIRECT) {
std::vector<std::size_t> dis_node_ids;
std::vector<double> dis_values;
......
......@@ -126,7 +126,8 @@ void XmlCndInterface::readConditions(const QDomNode &listRoot,
std::vector<size_t> disNodes;
std::vector<double> disValues;
if (c->getProcessDistributionType()==FiniteElement::CONSTANT ||
c->getProcessDistributionType()==FiniteElement::CONSTANT_NEUMANN)
c->getProcessDistributionType()==FiniteElement::CONSTANT_NEUMANN ||
c->getProcessDistributionType()==FiniteElement::NODESCONSTANT)
disValues.push_back( distProps.at(j).toElement().text().toDouble() );
else if (c->getProcessDistributionType()==FiniteElement::LINEAR ||
c->getProcessDistributionType()==FiniteElement::LINEAR_NEUMANN ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment