diff --git a/opm/core/io/OutputWriter.cpp b/opm/core/io/OutputWriter.cpp index faf2241b..62b8add8 100644 --- a/opm/core/io/OutputWriter.cpp +++ b/opm/core/io/OutputWriter.cpp @@ -4,9 +4,9 @@ #include #include +#include #include #include // unique_ptr -#include using namespace std; using namespace Opm; @@ -17,7 +17,7 @@ namespace { /// Multiplexer over a list of output writers struct MultiWriter : public OutputWriter { /// Shorthand for a list of owned output writers - typedef vector > writers_t; + typedef forward_list > writers_t; typedef writers_t::iterator it_t; typedef unique_ptr ptr_t; @@ -85,7 +85,7 @@ OutputWriter::create (const ParameterGroup& params, // invoke the constructor for the type if we found the keyword // and put the pointer to this writer onto the list if (params.getDefault (name, false)) { - list->push_back (it->second (params, parser, grid)); + list->push_front (it->second (params, parser, grid)); } }