This commit is contained in:
jakob.schratter 2026-01-27 17:17:40 +01:00
commit a052937ec3
3 changed files with 23 additions and 6 deletions

View file

@ -111,13 +111,22 @@ int main(int argc, char **argv )
vector<int> wetNodes = mesh_c.TopNodes();
int numberOfVertices = wetNodes.size();
cout << numberOfVertices << " TOP NODES " << endl;
// Determine coordinates of "wet" vertices
std::vector<double> allCoords = mesh_c.GetCoords();
std::vector<double> coords(numberOfVertices*meshDim);
for (size_t i = 0; i < numberOfVertices*meshDim; ++i)
for (size_t i = 0; i < numberOfVertices; ++i)
{
coords.push_back(allCoords[2*wetNodes[i]]); // x-coord of node
coords.push_back(allCoords[2*wetNodes[i + 1]]); // y-coord of node
int currentNode = wetNodes[i];
double x = allCoords[2*wetNodes[i]]; // x-coord of node
double y = allCoords[2*wetNodes[i] + 1]; // y-coord of node
// cout << "x: " << x << " y: " << y << endl;
coords[2*i] = x;
coords[2*i + 1] = y;
}
std::vector<int> vertexIDs(numberOfVertices);
@ -159,6 +168,8 @@ int main(int argc, char **argv )
vector<double> G(Mdt.Nrows(), 0.0);
Mdt.Mult(G, uv); // G = M/dt * u_{n}
vector<double> H = fv;
for (size_t i = 0; i < Mdt.Nrows(); ++i)
{