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:
parent
55975a085a
commit
ca0f46736e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user