mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add a stand alone copy of boost::alignment::aligned_allocator
unfortunately, this is necessary because boost::alignment::aligned_allocator requires a fairly recent version of boost (i.e., 1.56) while the oldest platform supported by OPM (i.e., Ubuntu 14.04LTS) only ships boost 1.54. Anyway, I'm wondering why there is no std:: version of this class in c++-2011...
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include <ewoms/aux/baseauxiliarymodule.hh>
|
||||
#include <ewoms/common/propertysystem.hh>
|
||||
#include <ewoms/common/alignedallocator.hh>
|
||||
|
||||
#include <opm/material/fluidstates/CompositionalFluidState.hpp>
|
||||
#include <opm/material/densead/Evaluation.hpp>
|
||||
@@ -39,8 +40,6 @@
|
||||
#include <dune/common/version.hh>
|
||||
#include <dune/geometry/referenceelements.hh>
|
||||
|
||||
#include <boost/align/aligned_allocator.hpp>
|
||||
|
||||
#include <map>
|
||||
|
||||
namespace Ewoms {
|
||||
@@ -1515,7 +1514,7 @@ protected:
|
||||
|
||||
std::string name_;
|
||||
|
||||
std::vector<DofVariables, boost::alignment::aligned_allocator<DofVariables, alignof(DofVariables)> > dofVarsStore_;
|
||||
std::vector<DofVariables, Ewoms::aligned_allocator<DofVariables, alignof(DofVariables)> > dofVarsStore_;
|
||||
std::map<int, DofVariables*> dofVariables_;
|
||||
|
||||
// the number of times beginIteration*() was called for the current time step
|
||||
|
||||
Reference in New Issue
Block a user