mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #215 from bska/fix-build-gcc44
Don't use 'typename' in non-template context
This commit is contained in:
commit
725a29709e
@ -64,9 +64,9 @@ namespace Opm
|
|||||||
this->a = new block_type[this->nnz];
|
this->a = new block_type[this->nnz];
|
||||||
static_assert(sizeof(block_type) == sizeof(double), "This constructor requires a block type that is the same as a double.");
|
static_assert(sizeof(block_type) == sizeof(double), "This constructor requires a block type that is the same as a double.");
|
||||||
std::copy(sa, sa + this->nnz, reinterpret_cast<double*>(this->a));
|
std::copy(sa, sa + this->nnz, reinterpret_cast<double*>(this->a));
|
||||||
this->j.reset(new typename Super::size_type[this->nnz]);
|
this->j.reset(new Super::size_type[this->nnz]);
|
||||||
std::copy(ja, ja +this-> nnz, this->j.get());
|
std::copy(ja, ja +this-> nnz, this->j.get());
|
||||||
this->r = new typename Super::row_type[rows];
|
this->r = new Super::row_type[rows];
|
||||||
for (int row = 0; row < rows; ++row) {
|
for (int row = 0; row < rows; ++row) {
|
||||||
this->r[row].set(ia[row+1] - ia[row], this->a + ia[row], this->j.get() + ia[row]);
|
this->r[row].set(ia[row+1] - ia[row], this->a + ia[row], this->j.get() + ia[row]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user