Commit c21ae1b3 authored by Ansgar Burchardt's avatar Ansgar Burchardt

Merge branch 'fix/nonparallel-build' into 'master'

[bugfix] fix build without MPI

See merge request !58
parents a3ba3bfd 3bced266
......@@ -837,6 +837,7 @@ struct node {
* WARNING: The allocation of the data pointer depends on the format */
void *data;
#ifdef ModelP
const char* message_buffer() const
{ return message_buffer_; }
......@@ -854,6 +855,7 @@ struct node {
std::free(message_buffer_);
message_buffer(nullptr, 0);
}
#endif
};
/** \todo Please doc me! */
......@@ -1518,6 +1520,7 @@ union element {
struct hexahedron he;
#endif
#ifdef ModelP
const char* message_buffer() const
{ return ge.message_buffer; }
......@@ -1535,6 +1538,7 @@ union element {
std::free(ge.message_buffer);
message_buffer(nullptr, 0);
}
#endif
};
/** \brief Objects that can hold a vector */
......
......@@ -3464,8 +3464,10 @@ INT NS_DIM_PREFIX DisposeNode (GRID *theGrid, NODE *theNode)
else
DECNOOFNODE(theVertex);
#ifdef ModelP
/* free message buffer */
theNode->message_buffer_free();
#endif
/* dispose vector and its matrices from node-vector */
size = sizeof(NODE);
......@@ -3848,8 +3850,10 @@ INT NS_DIM_PREFIX DisposeElement (GRID *theGrid, ELEMENT *theElement, INT dispos
if (DisposeVector (theGrid,EVECTOR(theElement)))
RETURN(1);
#ifdef ModelP
/* free message buffer */
theElement->message_buffer_free();
#endif
/* dispose element */
/* give it a new tag ! (I know this is somewhat ugly) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment