added Robin BC, disabled cuthill_mckee_reordering for now

This commit is contained in:
jakob.schratter 2026-01-24 20:58:53 +01:00
commit b78c3f9aff
5 changed files with 46 additions and 46 deletions

View file

@ -33,7 +33,7 @@ int main(int argc, char **argv )
//gMesh_Hierarchy ggm(mesh_c, nrefine);
//const Mesh &mesh = ggm.finest();
//mesh.Debug();
//mesh.DebugEdgeBased();
//mesh_c.DebugEdgeBased();
// Initializing FEM matrix !pattern! (only zero entries now)
@ -55,7 +55,7 @@ int main(int argc, char **argv )
// Calculate RHS
SK.CalculateRHS(fv, [](double x, double y) {return 0;});
//SK.CheckRowSum();
SK.CheckMatrix();
//SK.CheckMatrix();
// Initialize temperature
@ -65,7 +65,7 @@ int main(int argc, char **argv )
mesh_c.Init_Solution_mult(uv, 2, [](double x, double y) -> double { return 18; }); // air
// Apply BC
SK.ApplyRobinBC_mult(uv, fv, 18.0);
SK.ApplyRobinBC_mult(fv, 18.0);
// Solve
@ -74,7 +74,7 @@ int main(int argc, char **argv )
auto t3 = system_clock::now(); // start timer
// JacobiSolve(SK, fv, uv ); // solve the system of equations
//JacobiSolve(SK, fv, uv ); // solve the system of equations
auto t4 = system_clock::now(); // stop timer
auto duration = duration_cast<microseconds>(t4 - t3); // duration in microseconds