mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix to error in Clang: use 'template' keyword to treat 'data' ...
This commit is contained in:
parent
b0ee6b9c94
commit
80e00f4516
@ -354,18 +354,18 @@ computeTrans_(const std::unordered_map<int,int>& cartesianToActive,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (gc2 - gc1 == 1 && cartDims[0] > 1 ) {
|
if (gc2 - gc1 == 1 && cartDims[0] > 1 ) {
|
||||||
tranx.data<double>()[gc1] = globalTrans().transmissibility(c1, c2);
|
tranx.template data<double>()[gc1] = globalTrans().transmissibility(c1, c2);
|
||||||
continue; // skip other if clauses as they are false, last one needs some computation
|
continue; // skip other if clauses as they are false, last one needs some computation
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gc2 - gc1 == cartDims[0] && cartDims[1] > 1) {
|
if (gc2 - gc1 == cartDims[0] && cartDims[1] > 1) {
|
||||||
trany.data<double>()[gc1] = globalTrans().transmissibility(c1, c2);
|
trany.template data<double>()[gc1] = globalTrans().transmissibility(c1, c2);
|
||||||
continue; // skipt next if clause as it needs some computation
|
continue; // skipt next if clause as it needs some computation
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( gc2 - gc1 == cartDims[0]*cartDims[1] ||
|
if ( gc2 - gc1 == cartDims[0]*cartDims[1] ||
|
||||||
directVerticalNeighbors(cartDims, cartesianToActive, gc1, gc2))
|
directVerticalNeighbors(cartDims, cartesianToActive, gc1, gc2))
|
||||||
tranz.data<double>()[gc1] = globalTrans().transmissibility(c1, c2);
|
tranz.template data<double>()[gc1] = globalTrans().transmissibility(c1, c2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user