Commit 7556ba47 authored by Andreas Dedner's avatar Andreas Dedner

add outputType parameter to write method on subsamplingvtkwriter

parent caace360
Pipeline #12096 passed with stage
in 6 minutes and 1 second
......@@ -117,6 +117,14 @@ namespace Dune
std::stringstream s; s << name << std::setw(5) << std::setfill('0') << number;
writer.write( s.str() );
});
cls.def( "write",
[] ( Writer &writer, const std::string &name, int number, Dune::VTK::OutputType outputType ) {
std::stringstream s; s << name << std::setw(5) << std::setfill('0') << number;
writer.write( s.str(), outputType );
},
pybind11::arg("name"),
pybind11::arg("number"),
pybind11::arg("outputType")=VTK::ascii );
}
}
......
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