Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Elasticity.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def eps(v):
return 0.5*(grad(v) + grad(v).T)

def sigma(v):
return 2.0*mu*eps(v) + lmbda*tr(eps(v))*Identity(cell.geometric_dimension())
return 2.0*mu*eps(v) + lmbda*tr(eps(v))*Identity(3)

# Add forms to namespace with names a1, a2, a3 etc.
aname = 'a' + str(degree)
Expand Down
3 changes: 1 addition & 2 deletions src/elasticity_problem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ elastic::problem(std::shared_ptr<mesh::Mesh<double>> mesh, int order)
auto L = std::make_shared<fem::Form<T, double>>(fem::create_form<T>(
*form_elasticity_L.at(order - 1), {V}, {{"w0", f}}, {}, {}));
auto a = std::make_shared<fem::Form<T, double>>(fem::create_form<T>(
*form_elasticity_a.at(order - 1), {V, V},
std::vector<std::shared_ptr<const fem::Function<T>>>{}, {}, {}));
*form_elasticity_a.at(order - 1), {V, V}, {}, {}, {}));
t0c.stop();

// Create matrices and vector, and assemble system
Expand Down
3 changes: 1 addition & 2 deletions src/poisson_problem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ poisson::problem(std::shared_ptr<mesh::Mesh<double>> mesh, int order)
auto L = std::make_shared<fem::Form<T>>(fem::create_form<T>(
*form_poisson_L.at(order - 1), {V}, {{"w0", f}, {"w1", g}}, {}, {}));
auto a = std::make_shared<fem::Form<T>>(fem::create_form<T>(
*form_poisson_a.at(order - 1), {V, V},
std::vector<std::shared_ptr<const fem::Function<T>>>{}, {}, {}));
*form_poisson_a.at(order - 1), {V, V}, {}, {}, {}));

// Create matrices and vector, and assemble system
std::shared_ptr<la::petsc::Matrix> A = std::make_shared<la::petsc::Matrix>(
Expand Down