This commit is contained in:
Jørgen Kvalsvik 2016-05-30 14:14:33 +02:00
parent c6fc7f5e30
commit c0b0b0d40a

View File

@ -43,6 +43,10 @@ inline std::vector< double > destripe( const std::vector< double >& v,
return dst;
}
inline std::vector< double >& stripe( const std::vector< double >& v,
size_t stride,
size_t offset,
@ -57,6 +61,12 @@ inline std::vector< double >& stripe( const std::vector< double >& v,
return dst;
}
inline data::Solution sim2solution( const SimulationDataContainer& reservoir,
PhaseUsage phases ) {
using ds = data::Solution::key;
@ -92,6 +102,13 @@ inline data::Solution sim2solution( const SimulationDataContainer& reservoir,
return sol;
}
inline void solution2sim( const data::Solution& sol,
PhaseUsage phases,
SimulationDataContainer& state ) {
@ -129,6 +146,14 @@ inline void solution2sim( const data::Solution& sol,
}
}
inline void wells2state( const data::Wells& wells, WellState& state ) {
state.bhp() = wells.bhp;
state.temperature() = wells.temperature;