Skip to content

Commit 428e9a0

Browse files
committed
GMG: support prescribed values in parts of domain
1 parent 358b8b3 commit 428e9a0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

source/simulator/core.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,12 +799,11 @@ namespace aspect
799799
if (parameters.include_melt_transport)
800800
melt_handler->add_current_constraints (new_current_constraints);
801801

802-
// Finally update and let the prescribed solution plugins constrain parts of the solution
802+
// Update and let the prescribed solution plugins constrain parts of the solution:
803803
prescribed_solution_manager.update();
804804
prescribed_solution_manager.constrain_solution(new_current_constraints);
805805

806-
// let plugins add more constraints if they so choose, then close the
807-
// constraints object
806+
// Finally, let plugins add more constraints if they so choose:
808807
signals.post_constraints_creation(*this, new_current_constraints);
809808

810809
new_current_constraints.close();

source/simulator/solver/stokes_matrix_free_local_smoothing.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,13 +1610,18 @@ namespace aspect
16101610
sim.compute_initial_velocity_boundary_constraints(constraints_v);
16111611
sim.compute_current_velocity_boundary_constraints(constraints_v);
16121612

1613-
16141613
VectorTools::compute_no_normal_flux_constraints (dof_handler_v,
16151614
/* first_vector_component= */
16161615
0,
16171616
this->get_boundary_velocity_manager().get_tangential_boundary_velocity_indicators(),
16181617
constraints_v,
16191618
this->get_mapping());
1619+
1620+
sim.prescribed_solution_manager.constrain_solution(constraints_v);
1621+
1622+
// Let plugins add more constraints if they so choose:
1623+
sim.signals.post_constraints_creation(*this, constraints_v);
1624+
16201625
constraints_v.close ();
16211626
}
16221627

0 commit comments

Comments
 (0)