mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix some sign compare warnings.
This commit is contained in:
parent
fbb24e2a5a
commit
860cfd9fb5
@ -892,7 +892,7 @@ namespace Opm {
|
||||
GasLiftGroupInfo &group_info, GLiftWellStateMap &state_map)
|
||||
{
|
||||
auto comm = ebosSimulator_.vanguard().grid().comm();
|
||||
std::size_t num_procs = comm.size();
|
||||
int num_procs = comm.size();
|
||||
// NOTE: Gas lift optimization stage 1 seems to be difficult
|
||||
// to do in parallel since the wells are optimized on different
|
||||
// processes and each process needs to know the current ALQ allocated
|
||||
@ -918,7 +918,7 @@ namespace Opm {
|
||||
// processes could take ownership of all the wells. Then there
|
||||
// would be no need for synchronization here..
|
||||
//
|
||||
for (std::size_t i = 0; i< num_procs; i++) {
|
||||
for (int i = 0; i< num_procs; i++) {
|
||||
int num_rates_to_sync = 0; // communication variable
|
||||
GLiftSyncGroups groups_to_sync;
|
||||
if (comm.rank() == i) {
|
||||
|
@ -75,6 +75,9 @@ public:
|
||||
std::vector<std::pair<std::string,double>>& getWellGroups(
|
||||
const std::string& well_name);
|
||||
|
||||
// TODO: See comment below for initializeGroupRatesRecursive_() for why
|
||||
// the implementation of initialize() is kept here in the header file instead
|
||||
// of in the .cpp file...
|
||||
template<class Comm>
|
||||
void
|
||||
initialize(const Comm& comm)
|
||||
@ -118,7 +121,7 @@ private:
|
||||
// class since we are also constructing a GasLiftGroupInfo object in the
|
||||
// test file test1_glift.cpp and when the linker tries to find a definition
|
||||
// of the GasLiftGroupInfo(...) constructor in libopmsimulators.a,
|
||||
// the the template type of the MPI communicator (Dune::Communication<..>)
|
||||
// the template type of the MPI communicator (Dune::Communication<..>)
|
||||
// is not of the same type as the one needed by the test case.
|
||||
// The test case needs Dune::Communication<ompi_communicator_t*>, whereas
|
||||
// the one in libopmsimulators.a is Dune::Communication<Dune::No_Comm>.
|
||||
|
@ -41,7 +41,6 @@
|
||||
namespace Opm {
|
||||
template<typename TypeTag> class GasLiftSingleWell;
|
||||
template<typename TypeTag> class BlackoilWellModel;
|
||||
class GasLiftGroupInfo;
|
||||
}
|
||||
#include <opm/simulators/wells/GasLiftGroupInfo.hpp>
|
||||
#include <opm/simulators/wells/GasLiftSingleWell.hpp>
|
||||
|
Loading…
Reference in New Issue
Block a user