68
73
// Create Dirichlet boundary condition
70
75
DirichletBoundary dirichlet_boundary;
71
76
DirichletBC bc0(V, u0, dirichlet_boundary);
73
78
// Create periodic boundary condition
74
79
PeriodicBoundary periodic_boundary;
75
80
PeriodicBC bc1(V, periodic_boundary);
77
82
// Collect boundary conditions
79
84
bcs.push_back(&bc0); bcs.push_back(&bc1);
82
87
VariationalProblem pde(a, L, bcs);