I am trying to compile a debug version but I am getting an error in Domain.cpp in the pressure constraint.
bool
Domain::addPressure_Constraint(Pressure_Constraint *pConstraint)
{
#ifdef _G3DEBUG
// check the Node exists in the Domain
int nodeTag = pConstraint->getNodeConstrained();
Node *nodePtr = this->getNode(nodeTag);
if (nodePtr == 0) {
opserr << "Domain::addPressure_Constraint - cannot add as node with tag";
opserr << nodeTag << "does not exist in model\n";
return false;
}
#endif
It appears that Pressure_Constraint does not have a member function called getNodeConstrained. There was a private member called findNodeTag. I tried moving the member to public and then changed the line to as follows:
int nodeTag = pConstraint->findNodeTag();
But I need to pass the domain to this function. I didn't know how to do that.
Debug
Moderators: silvia, selimgunay, Moderators
Re: Debug
Yes, it is fixed now. We've been compiling without _G3DEBUG defined, so never noticed. Thanks!