Skip to content
Snippets Groups Projects
Commit 7bfde47b authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add tests for DiscreteFunctionIntegrator (by zone)

Also fixed a bug related to type conversions
parent fdcfa8f0
No related branches found
No related tags found
1 merge request!138Fix a g++-9 warning
......@@ -46,10 +46,10 @@ DiscreteFunctionIntegrator::_integrateOnZoneList() const
}
}
Array<DataType> array =
IntegrateCellValue<DataType(TinyVector<Dimension>)>::template integrate<MeshType>(m_function_id,
*m_quadrature_descriptor, *p_mesh,
zone_cell_list);
Array<ValueType> array =
IntegrateCellValue<ValueType(TinyVector<Dimension>)>::template integrate<MeshType>(m_function_id,
*m_quadrature_descriptor,
*p_mesh, zone_cell_list);
CellValue<ValueType> cell_value{p_mesh->connectivity()};
if constexpr (is_tiny_vector_v<ValueType> or is_tiny_matrix_v<ValueType>) {
......
......@@ -158,6 +158,7 @@ add_executable (mpi_unit_tests
mpi_test_main.cpp
test_Connectivity.cpp
test_DiscreteFunctionIntegrator.cpp
test_DiscreteFunctionIntegratorByZone.cpp
test_DiscreteFunctionInterpoler.cpp
test_DiscreteFunctionInterpolerByZone.cpp
test_DiscreteFunctionP0.cpp
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment