To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit c7c8da34 authored by Bastian Telgen's avatar Bastian Telgen
Browse files

update output

parent 06bf1c3e
......@@ -127,16 +127,16 @@ int main(int argc, char **argv) {
geometry.number_of_positions(), Element::degrees_of_freedom(), 0);
using DataSource = std::function<void(Mesh::size_type, Mesh::value_type *)>;
auto coordinates = ae108::cpppetsc::createVectorFromSource(
auto coordinates = cpppetsc::createVectorFromSource(
mesh, coordinate_dimension,
DataSource([&](const Mesh::size_type index, Mesh::value_type *const out) {
const auto &position = geometry.position_of_vertex(index);
std::copy(position.begin(), position.end(), out);
}));
ae108::cpppetsc::setName("coordinates", &coordinates);
cpppetsc::setName("coordinates", &coordinates);
auto viewer = Viewer::fromHdf5FilePath(
(output_folder + config.name + ".ae108").c_str(), Viewer::Mode::write);
ae108::cpppetsc::writeToViewer(mesh, coordinates, &viewer);
cpppetsc::writeToViewer(mesh, coordinates, &viewer);
auto assembler = Assembler();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment