Commit 1236202d authored by Andreas Dedner's avatar Andreas Dedner

[!116] add outputType parameter to write method on subsamplingvtkwriter

Merge branch 'feature/addStringPreambleToBuilder' into 'master'

See merge request [!116]

  [!116]: Nonestaging/dune-python/merge_requests/116
parents 47bd2682 7556ba47
Pipeline #12097 passed with stage
in 5 minutes and 57 seconds
......@@ -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