Skip to content
Snippets Groups Projects
Commit ac72c3e2 authored by webmanue's avatar webmanue
Browse files

use new Element in AssemblerGroup_Test

parent 512f6ac4
No related branches found
No related tags found
No related merge requests found
......@@ -38,11 +38,12 @@ DEFINE_CONST_ASSEMBLER_PLUGIN(AddOnePlugin, addOne, (double *const output)) {
}
struct AssemblerGroup_Test : Test {
using Element = StrictMock<test::Element>;
using Mesh = cpppetsc::Mesh<cpppetsc::SequentialComputePolicy>;
using Element = StrictMock<test::Element<typename Mesh::value_type>>;
using AssemblerWithPlugin = Assembler<Element, FeaturePlugins<AddOnePlugin>>;
using AssemblerWithoutPlugin = Assembler<Element>;
using Mesh = AssemblerWithoutPlugin::mesh_type;
using Connectivity =
std::array<std::array<AssemblerWithoutPlugin::size_type, 1>, 1>;
Mesh mesh = Mesh::fromConnectivity<Connectivity>(3, {{{{0}}}}, 1, 0);
......@@ -106,7 +107,7 @@ TEST_F(AssemblerGroup_Test, adds_one_twice) {
DEFINE_CONST_ASSEMBLER_PLUGIN(AddEnergyPlugin, addEnergy,
(double *const output)) {
const auto displacements = test::Element::NodalDisplacements();
const auto displacements = typename element_type::NodalDisplacements();
for (const auto &annotatedElement : this->assembler().meshElements()) {
*output += annotatedElement.instance().computeEnergy(displacements, 0.);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment