mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ifs_tpfa: Prepare for well solution recovery (BHP and perf. fluxes).
Expose new elements '.well_press' and '.well_flux' in the solution structure and update callers accordingly.
This commit is contained in:
@@ -121,7 +121,7 @@ namespace Opm
|
||||
pressure.resize(grid_.number_of_cells);
|
||||
faceflux.resize(grid_.number_of_faces);
|
||||
|
||||
ifs_tpfa_solution soln = { NULL, NULL };
|
||||
ifs_tpfa_solution soln = { NULL, NULL, NULL, NULL };
|
||||
soln.cell_press = &pressure[0];
|
||||
soln.face_flux = &faceflux[0];
|
||||
|
||||
@@ -204,7 +204,7 @@ namespace Opm
|
||||
pressure.resize(grid_.number_of_cells);
|
||||
faceflux.resize(grid_.number_of_faces);
|
||||
|
||||
ifs_tpfa_solution soln = { NULL, NULL };
|
||||
ifs_tpfa_solution soln = { NULL, NULL, NULL, NULL };
|
||||
soln.cell_press = &pressure[0];
|
||||
soln.face_flux = &faceflux[0];
|
||||
|
||||
|
||||
@@ -42,6 +42,9 @@ struct ifs_tpfa_data {
|
||||
struct ifs_tpfa_solution {
|
||||
double *cell_press;
|
||||
double *face_flux ;
|
||||
|
||||
double *well_press; /* BHP */
|
||||
double *well_flux ; /* Perforation (total) fluxes */
|
||||
};
|
||||
|
||||
struct ifs_tpfa_forces {
|
||||
|
||||
Reference in New Issue
Block a user