Skip to content

Commit

Permalink
rename create_form function
Browse files Browse the repository at this point in the history
  • Loading branch information
ma595 committed Jan 31, 2024
1 parent 2be07ff commit ff5af8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/cgpoisson_problem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ cgpoisson::problem(std::shared_ptr<mesh::Mesh<double>> mesh, int order,
= {form_Poisson_M1, form_Poisson_M2, form_Poisson_M3};

// Define variational forms
auto L = std::make_shared<fem::Form<T>>(fem::create_form<T>(
auto L = std::make_shared<fem::Form<T>>(fem::create_form_factory<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>>>{}, {}, {}));

auto un = std::make_shared<fem::Function<T>>(V);
auto M = std::make_shared<fem::Form<T>>(fem::create_form<T>(
auto M = std::make_shared<fem::Form<T>>(fem::create_form_factory<T>(
*form_poisson_M.at(order - 1), {V}, {{"w0", un}}, {{}}, {}));

// Create la::Vector
Expand Down
4 changes: 2 additions & 2 deletions src/elasticity_problem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ elastic::problem(std::shared_ptr<mesh::Mesh<double>> mesh, int order)
= {form_Elasticity_L1, form_Elasticity_L2, form_Elasticity_L3};
std::vector form_elasticity_a
= {form_Elasticity_a1, form_Elasticity_a2, form_Elasticity_a3};
auto L = std::make_shared<fem::Form<T, double>>(fem::create_form<T>(
auto L = std::make_shared<fem::Form<T, double>>(fem::create_form_factory<T>(
*form_elasticity_L.at(order - 1), {V}, {{"w0", f}}, {}, {}));
auto a = std::make_shared<fem::Form<T, double>>(fem::create_form<T>(
auto a = std::make_shared<fem::Form<T, double>>(fem::create_form_factory<T>(
*form_elasticity_a.at(order - 1), {V, V},
std::vector<std::shared_ptr<const fem::Function<T>>>{}, {}, {}));
t0c.stop();
Expand Down
4 changes: 2 additions & 2 deletions src/poisson_problem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ poisson::problem(std::shared_ptr<mesh::Mesh<double>> mesh, int order)
= {form_Poisson_a1, form_Poisson_a2, form_Poisson_a3};

// Define variational forms
auto L = std::make_shared<fem::Form<T>>(fem::create_form<T>(
auto L = std::make_shared<fem::Form<T>>(fem::create_form_factory<T>(
*form_poisson_L.at(order - 1), {V}, {{"w0", f}, {"w1", g}}, {}, {}));
auto a = std::make_shared<fem::Form<T>>(fem::create_form<T>(
auto a = std::make_shared<fem::Form<T>>(fem::create_form_factory<T>(
*form_poisson_a.at(order - 1), {V, V},
std::vector<std::shared_ptr<const fem::Function<T>>>{}, {}, {}));

Expand Down

0 comments on commit ff5af8f

Please sign in to comment.